Skip to content

Commit 0fc7ed6

Browse files
committed
update rubocop configuration for CI
1 parent 8b1029c commit 0fc7ed6

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

.rubocop.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,19 @@ inherit_gem:
22
rubocop-github:
33
- config/default.yml
44
require: rubocop-performance
5+
6+
AllCops:
7+
TargetRubyVersion: 2.6
8+
9+
# Disable cops that are not consistently available across all Ruby versions
10+
Style/ClassMethodsDefinitions:
11+
Enabled: false
12+
13+
Style/OrAssignment:
14+
Enabled: false
15+
16+
Layout/SpaceInsideHashLiteralBraces:
17+
Enabled: false
18+
19+
Lint/ParenthesesAsGroupedExpression:
20+
Enabled: false

spec/lib/secure_headers/configuration_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ module SecureHeaders
2222
configuration = Configuration.dup
2323
expect(original_configuration).not_to be(configuration)
2424
Configuration::CONFIG_ATTRIBUTES.each do |attr|
25-
expect(original_configuration.send(attr)).to eq(configuration.send(attr))
25+
# rubocop:disable GitHub/AvoidObjectSendWithDynamicMethod
26+
expect(original_configuration.public_send(attr)).to eq(configuration.public_send(attr))
27+
# rubocop:enable GitHub/AvoidObjectSendWithDynamicMethod
2628
end
2729
end
2830

0 commit comments

Comments
 (0)