Skip to content

Commit

Permalink
Enable new cops
Browse files Browse the repository at this point in the history
These are all fixed in chef and ohai.

Signed-off-by: Tim Smith <tsmith@chef.io>
  • Loading branch information
tas50 committed Nov 5, 2020
1 parent 8a7b0dc commit 3e47984
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions config/chefstyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,22 @@ Style/ExpandPathArguments:
Lint/RedundantSafeNavigation:
Enabled: true

# Eases readability
Lint/RedundantStringCoercion:
Enabled: true

# unnecessary complexity
Lint/RedundantWithObject:
Enabled: true

# unnecessary complexity
Lint/RedundantWithIndex:
Enabled: true

# avoid requiring twice
Lint/DuplicateRequire:
Enabled: true

Chef/Ruby/Ruby27KeywordArgumentWarnings:
Description: Pass options to shell_out helpers without the brackets to avoid Ruby 2.7 deprecation warnings.
Enabled: true
Expand Down

0 comments on commit 3e47984

Please sign in to comment.