Redgate Flyway

For PostgreSQL users - where are your DBs hosted?

Flyway Check Major Rules Setting

Flyway Teams

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.

majorRules should contain an array of rules which are considered to be major.

If the total number of majorRules violations exceeds the majorTolerance, Flyway will fail.

Type

String array

Default

No rules are regarded as major 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.majorRules=L001

TOML Configuration File

[flyway.check]
majorRules = ["L001"]

Configuration File

flyway.check.majorRules=L001

Didn't find what you were looking for?