Flyway Check Major Tolerance 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.
majorTolerance
sets the number of major rules violations to be tolerated before throwing an error
If the total number of majorRules
violations exceeds the majorTolerance
, Flyway will fail.
Type
Integer
Default
There is no maximum tolerance (i.e. violations will not cause a failure)
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.majorTolerance=3
TOML Configuration File
[flyway.check]
majorTolerance = 3
Configuration File
flyway.check.majorTolerance=3