config/cookstyle.yml in cookstyle-5.21.9 vs config/cookstyle.yml in cookstyle-5.22.6

- old
+ new

@@ -715,10 +715,19 @@ Enabled: true VersionAdded: '5.20.0' Include: - '**/spec/**/*.rb' +ChefDeprecations/WindowsFeatureServermanagercmd: + Description: The `windows_feature` resource no longer supports setting the `install_method` to `:servermanagercmd`. `:windows_feature_dism` or `:windows_feature_powershell` should be used instead. + Enabled: true + VersionAdded: '5.22.0' + Exclude: + - '**/metadata.rb' + - '**/attributes/*.rb' + - '**/Berksfile' + ############################### # ChefModernize: Cleaning up legacy code and using new built-in resources ############################### ChefModernize/LegacyBerksfileSource: @@ -1113,10 +1122,36 @@ Exclude: - '**/metadata.rb' - '**/attributes/*.rb' - '**/Berksfile' +ChefModernize/UseRequireRelative: + Description: Instead of using require with a File.expand_path and __FILE__ use the simpler require_relative method. + Enabled: true + VersionAdded: '5.22.0' + Exclude: + - '**/metadata.rb' + - '**/attributes/*.rb' + - '**/Berksfile' + +ChefModernize/NodeInitPackage: + Description: Use node['init_package'] to check for systemd instead of reading the contents of '/proc/1/comm' + Enabled: true + VersionAdded: '5.22.0' + Exclude: + - '**/metadata.rb' + - '**/Berksfile' + +ChefModernize/WindowsRegistryUAC: + Description: Chef Infra Client 15.0 and later includes a windows_uac resource that should be used to set Windows UAC values instead of setting registry keys directly. + Enabled: true + VersionAdded: '5.22.0' + Exclude: + - '**/metadata.rb' + - '**/attributes/*.rb' + - '**/Berksfile' + ############################### # ChefRedundantCode: Cleanup unnecessary code in your cookbooks regardless of Chef Infra Client release ############################### ChefRedundantCode/ConflictsMetadata: @@ -1470,12 +1505,10 @@ Enabled: true Style/MethodCallParentheses: Enabled: true Style/MethodDefParentheses: Enabled: true -Naming/MethodName: - Enabled: true Style/MultilineBlockChain: Enabled: true Layout/MultilineBlockLayout: Enabled: true Style/MultilineIfThen: @@ -1621,11 +1654,9 @@ Style/UnneededPercentQ: Enabled: true Style/TrailingUnderscoreVariable: Enabled: true Style/VariableInterpolation: - Enabled: true -Naming/VariableName: Enabled: true Style/WhenThen: Enabled: true Style/WhileUntilDo: Enabled: true \ No newline at end of file