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.
1 parent e0b4fce commit 53dbc7aCopy full SHA for 53dbc7a
spec/project_spec.rb
@@ -66,14 +66,21 @@
66
raise errors.join("\n") unless errors.empty?
67
end
68
69
- it 'does not have nay duplication' do
+ it 'does not have any duplication' do
70
fname = File.expand_path('../config/default.yml', __dir__)
71
content = File.read(fname)
72
RuboCop::YAMLDuplicationChecker.check(content, fname) do |key1, key2|
73
raise "#{fname} has duplication of #{key1.value} " \
74
"on line #{key1.start_line} and line #{key2.start_line}"
75
76
77
+
78
+ it 'does not include `Safe: true`' do
79
+ cop_names.each do |name|
80
+ safe = config[name]['Safe']
81
+ expect(safe).not_to eq(true), "`#{name}` has unnecessary `Safe: true` config."
82
+ end
83
84
85
86
shared_examples 'has Changelog format' do
0 commit comments