summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThom May <thom@may.lt>2017-08-25 10:11:27 +0100
committerGitHub <noreply@github.com>2017-08-25 10:11:27 +0100
commit0ce218b674346e5d1d94cebaf6a36b1b85d91350 (patch)
treee48cd76ec47e1ecec30e7a18bfb7497a765e64c1
parent6eed4eec4ac4e34d97fad8cd96552cddf5b8eaad (diff)
parent4a3955f962805122b576b33082ee56637a31eb3d (diff)
downloadchef-0ce218b674346e5d1d94cebaf6a36b1b85d91350.tar.gz
Merge pull request #6347 from chef/lcg/rubocop.yml
add more rubocop.yml config to disable some Lint and the Security/Eval cop for now
-rw-r--r--.rubocop.yml24
-rw-r--r--spec/unit/knife/client_delete_spec.rb2
2 files changed, 25 insertions, 1 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index 3c2a48e548..ec28184845 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -4,3 +4,27 @@ AllCops:
- "vendor/**/*"
- "pkg/**/*"
- "chef-config/pkg/**/*"
+Security/Eval:
+ Enabled: false
+Lint/UselessAssignment:
+ Enabled: false
+Lint/DeprecatedClassMethods:
+ Enabled: false
+Lint/ParenthesesAsGroupedExpression:
+ Enabled: false
+Lint/AmbiguousRegexpLiteral:
+ Enabled: false
+Lint/AssignmentInCondition:
+ Enabled: false
+Lint/AmbiguousBlockAssociation:
+ Enabled: false
+Lint/UnneededSplatExpansion:
+ Enabled: false
+Lint/ShadowingOuterLocalVariable:
+ Enabled: false
+Lint/EmptyWhen:
+ Enabled: false
+Lint/IneffectiveAccessModifier:
+ Enabled: false
+Lint/ShadowedException:
+ Enabled: false
diff --git a/spec/unit/knife/client_delete_spec.rb b/spec/unit/knife/client_delete_spec.rb
index f20b25f5e6..b05a487d62 100644
--- a/spec/unit/knife/client_delete_spec.rb
+++ b/spec/unit/knife/client_delete_spec.rb
@@ -35,7 +35,7 @@ describe Chef::Knife::ClientDelete do
end
context "receives multiple clients" do
- let(:clients) { %w{ "adam", "ben", "charlie" } }
+ let(:clients) { %w{ adam ben charlie } }
before(:each) do
@knife.name_args = clients