Hi! We're currently migrating some of our builds over to Bitbucket Pipelines and looking at retiring our old Jenkins/Octopus setup, with the goal of reducing the infrastructure we're maintaining and flattening the CI processes down a bit. We've got some basic build scripts set up that can run our tests, linters, build and deployment - had some "learning experiences" but nothing insurmountable.
We've hit a bit of a snag when it comes to one of our processes at the moment - the short version of the rule is "your branch should introduce no new Eslint warnings".
The longer version is that we've inherited legacy code, and are slowly working down a "not small" number of warnings from existing code. As such, we've got a policy that developers should be leaving code no worse than they found it - so we've got a reasonably strict policy of ensuring warnings can't increase.
Any suggestions on how to implement this when building with Bitbucket Pipelines?
With Jenkins, we've used the Warnings plugin (https://plugins.jenkins.io/warnings-ng/), which is configured to track when individual warnings were introduced by comparing against the commit where a given branch started against the current build commit. This works really well, but I'm aware might not be doable without a decent amount of infrastructure behind it, so something like a running tally of the number of warnings and making sure a given branch/PR doesn't increase it.
Any ideas would be much appreciated 