Skip to content

Commit

Permalink
fix: limit to initializers
Browse files Browse the repository at this point in the history
  • Loading branch information
markokajzer committed Jan 10, 2024
1 parent 651df38 commit b6d243b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion changelog/change_fix_do_not_allow.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* [#1229](https://github.com/rubocop/rubocop-rails/pull/1229): fix: do not allow EnvironmentVariableAccess in Ruby files within config. ([@markokajzer][])
* [#1229](https://github.com/rubocop/rubocop-rails/pull/1229): fix: do not allow EnvironmentVariableAccess within initializers. ([@markokajzer][])
2 changes: 1 addition & 1 deletion config/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ Rails/EnvironmentVariableAccess:
VersionChanged: '2.24'
Include:
- app/**/*.rb
- config/**/*.rb
- config/initializers/**/*.rb
- lib/**/*.rb
Exclude:
- lib/**/*.rake
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/cops_rails.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2068,7 +2068,7 @@ ENV["FOO"] = "bar"
| Name | Default value | Configurable values
| Include
| `+app/**/*.rb+`, `+config/**/*.rb+`, `+lib/**/*.rb+`
| `+app/**/*.rb+`, `+config/initializers/**/*.rb+`, `+lib/**/*.rb+`
| Array
| Exclude
Expand Down

0 comments on commit b6d243b

Please sign in to comment.