config/chefstyle.yml in chefstyle-1.4.5 vs config/chefstyle.yml in chefstyle-1.5.0
- old
+ new
@@ -667,28 +667,44 @@
# more code you don't need
Lint/RedundantSafeNavigation:
Enabled: true
-ChefRuby/Ruby27KeywordArgumentWarnings:
+# 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
VersionAdded: '1.3.0'
-ChefRuby/UnlessDefinedRequire:
+Chef/Ruby/UnlessDefinedRequire:
Description: Workaround RubyGems' slow requires by only running require if the constant isn't already defined
Enabled: true
VersionAdded: '1.3.0'
Include:
- 'lib/**/*'
-ChefRuby/GemspecRequireRubygems:
+Chef/Ruby/GemspecRequireRubygems:
Description: Rubygems does not need to be required in a Gemspec
Enabled: true
VersionAdded: '1.3.0'
Include:
- '**/*.gemspec'
-ChefRuby/RequireNetHttps:
+Chef/Ruby/RequireNetHttps:
Description: net/https is deprecated and just includes net/http and openssl. We should include those directly instead
Enabled: true
VersionAdded: '1.3.0'
\ No newline at end of file