diff options
author | Tim Smith <tsmith@chef.io> | 2020-08-12 10:28:35 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-12 10:28:35 -0700 |
commit | 14e2ac6a159685fcf31fc8ca8c6a1e57766a2c2d (patch) | |
tree | db30d93e0d22c8fa9fc6cbb3e6cb97b8d928819c | |
parent | e9aeb984211b41602d5c2a968ab1aa619d07f4b6 (diff) | |
parent | 95d0af0a2be2ac1fb67bd6b5fb0cb99e41b14064 (diff) | |
download | ohai-14e2ac6a159685fcf31fc8ca8c6a1e57766a2c2d.tar.gz |
Merge pull request #1495 from chef/rubocop_performance
Use rubocop-performance to enforce some best practices
-rw-r--r-- | .rubocop.yml | 5 | ||||
-rw-r--r-- | Gemfile | 1 |
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 @@ -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" |