config/chefstyle.yml in chefstyle-1.2.1 vs config/chefstyle.yml in chefstyle-1.3.2
- old
+ new
@@ -552,11 +552,11 @@
# Resulted in a bit of a bikeshed over names with unicode chars vs silently hidden unicode chars in comments
Style/AsciiComments:
Enabled: false
-# Parens around ternaries often make them more readable and reduces cognitive load over operator precidence
+# Parens around ternaries often make them more readable and reduces cognitive load over operator precedence
Style/TernaryParentheses:
Enabled: false
# Underscores in numbers are super ugly for port numbers, freebsd versions, etc.
# If we could mandate that this gets turned on only for numbers >= 1e9 which require three _'s then maybe.
@@ -629,6 +629,30 @@
Style/CommentedKeyword:
Enabled: false
# make sure we catch this Ruby 3.0 breaking change now
Lint/DeprecatedOpenSSLConstant:
- Enabled: true
\ No newline at end of file
+ Enabled: true
+
+ChefRuby/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:
+ 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:
+ Description: Rubygems does not need to be required in a Gemspec
+ Enabled: true
+ VersionAdded: '1.3.0'
+ Include:
+ - '**/*.gemspec'
+
+ChefRuby/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'