Redgate Flyway

Flyway Check Rules Config Setting

This is available in Flyway CLI only

Description

You can configure the file path for the SQLFluff configuration file to customize SQLFluff behavior during code review. This setting allows you to specify the exact file path containing the SQLFluff configuration file.

This parameter interacts with the workingDirectory setting.

See Code Review for more information.

Type

String

Default

Flyway’s Redgate Bundle version of SQLFluff will look for sqlfluff.cfg in the conf/ folder of the Flyway installation.

If you're using your own installed version of SQLFluff, Flyway will not attempt to load any default configuration file.

Note

Setting this parameter isn't the only way Flyway ends up ignoring local configuration files such as .sqlfluff. Flyway's Redgate Bundle version of SQLFluff does this whenever it finds sqlfluff.cfg in the conf/ folder and the bundled engine is present, whether or not you set this parameter.

See Which configuration is used for the full precedence between this setting, the default conf/sqlfluff.cfg, and SQLFluff's own configuration searching and nesting behavior.

Usage

Command-line

./flyway check -code -check.rulesConfig=/path/to/sqlfluff.cfg

TOML Configuration File

[flyway.check]
rulesConfig = "/path/to/sqlfluff.cfg"

This documentation contains proprietary information and is protected by copyright law.
Copyright © 2026 Red Gate Software Limited. All rights reserved


Didn't find what you were looking for?