Skip to content

Commit

Permalink
Update default_config_spec.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
corsonknowles committed Feb 9, 2025
1 parent fbc7cca commit 8469323
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/project/default_config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ def cop_configuration(config_key)
it 'is expected that all cops documented with `@safety` are `Safe: false` ' \
'or `SafeAutoCorrect: false`' do
unsafe_cop_names.each do |cop_name|
next if default_config[cop_name].nil?

unsafe = default_config[cop_name]['Safe'] == false ||
default_config[cop_name]['SafeAutoCorrect'] == false
expect(unsafe).to(
Expand Down

0 comments on commit 8469323

Please sign in to comment.