Flyway Check Minor Rules Setting
Published 15 January 2025
This is available in Flyway CLI only
Description
You can configure your pipeline to fail when specified static code analysis rules beyond a given tolerance level are violated.
minorRules
should contain an array of rules which are considered to be minor.
If the total number of minorRules
violations exceeds the minorTolerance
, Flyway will fail.
Type
String array
Default
No rules are regarded as minor violations
Usage
Flyway Desktop
This can't be set in a config file via Flyway Desktop, although it will be honoured, and it can be configured as an advanced parameter in operations on the Migrations page.
Command-line
./flyway check -code -check.minorRules=L002
TOML Configuration File
[flyway.check]
minorRules = ["L002"]
Configuration File
flyway.check.minorRules=L002