We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
SafeAutoCorrect: false
1 parent 3873c3e commit c0af87aCopy full SHA for c0af87a
spec/project/default_config_spec.rb
@@ -81,4 +81,17 @@ def cop_configuration(config_key)
81
expect(cop_configuration('Enabled'))
82
.to all be(true).or(be(false)).or(eq('pending'))
83
end
84
+
85
+ it 'does not include unnecessary `SafeAutoCorrect: false`' do
86
+ cop_names.each do |cop_name|
87
+ next unless default_config.dig(cop_name, 'Safe') == false
88
89
+ safe_autocorrect = default_config.dig(cop_name, 'SafeAutoCorrect')
90
91
+ expect(safe_autocorrect).not_to(
92
+ be(false),
93
+ "`#{cop_name}` has unnecessary `SafeAutoCorrect: false` config."
94
+ )
95
+ end
96
97
0 commit comments