diff --git a/config/default.yml b/config/default.yml index c7f3cb0cf7..2c37d8beea 100644 --- a/config/default.yml +++ b/config/default.yml @@ -336,6 +336,7 @@ Rails/Present: Rails/RakeEnvironment: Description: 'Set `:environment` task as a dependency to all rake task.' Enabled: true + Safe: false VersionAdded: '2.4' Include: - '**/Rakefile' diff --git a/manual/cops_rails.md b/manual/cops_rails.md index c4e7a97c22..e1c1b09491 100644 --- a/manual/cops_rails.md +++ b/manual/cops_rails.md @@ -1664,7 +1664,7 @@ UnlessBlank | `true` | Boolean Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged --- | --- | --- | --- | --- -Enabled | Yes | No | 2.4 | - +Enabled | No | No | 2.4 | - This cop checks rake task definition without `environment` dependency. `environment` dependency is important because it loads application code