config/chefstyle.yml in chefstyle-1.3.2 vs config/chefstyle.yml in chefstyle-1.4.0

- old
+ new

@@ -631,10 +631,42 @@ # make sure we catch this Ruby 3.0 breaking change now Lint/DeprecatedOpenSSLConstant: Enabled: true +# alert on invalid ruby synatx +Lint/Syntax: + Enabled: true + +# remove extra requires like 'thread' +Lint/RedundantRequireStatement: + Enabled: true + +# simplify stripping strings +Style/Strip: + Enabled: true + +# simplify getting min/max +Style/RedundantSort: + Enabled: true + +# no need for .rb in requires +Style/RedundantFileExtensionInRequire: + Enabled: true + +# more code you don't need +Style/RedundantCondition: + Enabled: true + +# Use __dir__ to simplify things +Style/Dir: + Enabled: true + +# Use __FILE__ or __dir__ to simplify expand_paths +Style/ExpandPathArguments: + 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' @@ -653,6 +685,6 @@ - '**/*.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' + VersionAdded: '1.3.0' \ No newline at end of file