From ee4f5dc538aad021c7e157d3cb533fee75638de4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Tue, 7 Jul 2020 10:43:02 +0200 Subject: [PATCH] Add a note about the `--config` flag --- docs/modules/ROOT/pages/configuration.adoc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/modules/ROOT/pages/configuration.adoc b/docs/modules/ROOT/pages/configuration.adoc index 9fb44942b10..efa060ebff7 100644 --- a/docs/modules/ROOT/pages/configuration.adoc +++ b/docs/modules/ROOT/pages/configuration.adoc @@ -51,6 +51,10 @@ files: * `~/.config/rubocop/config.yml` * https://github.com/rubocop-hq/rubocop/blob/master/config/default.yml[RuboCop's default configuration] +All the previous logic does not apply if a specific configuration file is passed +on the command line through the `--config` flag. In that case, the resolved +configuration file will be the one passed to the CLI. + == Inheritance All configuration inherits from https://github.com/rubocop-hq/rubocop/blob/master/config/default.yml[RuboCop's default configuration] (See