Flyway Check Code Fail On Error Setting
Published 04 September 2025
This is available in Flyway CLI only
Description
You can configure this parameter to control whether the code analysis should fail the operation based on the violation severity level. This parameter works in conjunction with the severity
field in code analysis rules configuration to determine which violations should be treated as failures.
When enabled, only code analysis violations with severity level error
will cause the check command to fail. Violations with severity level warning
will be reported but will not cause the operation to fail.
Note: Enabling this mode is incompatible with setting the deprecated code analysis majorTolerance
and minorTolerance
parameters.
See Code Analysis for more information.
Type
Boolean
Default
false
Usage
Command-line
./flyway check -code "-check.code.failOnError=true"
TOML Configuration File
[flyway.check.code]
failOnError = true