summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2020-08-12 10:28:35 -0700
committerGitHub <noreply@github.com>2020-08-12 10:28:35 -0700
commit14e2ac6a159685fcf31fc8ca8c6a1e57766a2c2d (patch)
treedb30d93e0d22c8fa9fc6cbb3e6cb97b8d928819c
parente9aeb984211b41602d5c2a968ab1aa619d07f4b6 (diff)
parent95d0af0a2be2ac1fb67bd6b5fb0cb99e41b14064 (diff)
downloadohai-14e2ac6a159685fcf31fc8ca8c6a1e57766a2c2d.tar.gz
Merge pull request #1495 from chef/rubocop_performance
Use rubocop-performance to enforce some best practices
-rw-r--r--.rubocop.yml5
-rw-r--r--Gemfile1
2 files changed, 6 insertions, 0 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index 5a772c5f..425a9e8c 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -1,3 +1,5 @@
+require: rubocop-performance
+
AllCops:
TargetRubyVersion: 2.5
Exclude:
@@ -10,3 +12,6 @@ Layout/IndentationStyle:
Exclude:
- "lib/ohai/plugins/mono.rb"
- "lib/ohai/plugins/darwin/hardware.rb"
+
+Performance/Caller:
+ Enabled: false \ No newline at end of file
diff --git a/Gemfile b/Gemfile
index caf6652c..d6ab3750 100644
--- a/Gemfile
+++ b/Gemfile
@@ -5,6 +5,7 @@ gemspec
# NOTE: do not submit PRs to add pry as a dep, add to your Gemfile.local
group :development do
gem "chefstyle", git: "https://github.com/chef/chefstyle.git", branch: "master"
+ gem "rubocop-performance", "1.7.1"
gem "rake", ">= 10.1.0"
gem "rspec-core", "~> 3.0"
gem "rspec-expectations", "~> 3.0"