Created
November 30, 2015 19:21
-
-
Save tas50/521ba2f75358bfaeb4dd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This configuration was generated by | |
# `rubocop --auto-gen-config` | |
# on 2015-11-30 11:17:29 -0800 using RuboCop version 0.35.1. | |
# The point is for the user to remove these configuration records | |
# one by one as the offenses are removed from the code base. | |
# Note that changes in the inspected code, or installation of new | |
# versions of RuboCop, may require this file to be generated again. | |
# Offense count: 2 | |
Lint/AmbiguousOperator: | |
Exclude: | |
- 'chef/spec/unit/mixin/securable_spec.rb' | |
# Offense count: 80 | |
Lint/AmbiguousRegexpLiteral: | |
Enabled: false | |
# Offense count: 103 | |
# Configuration parameters: AllowSafeAssignment. | |
Lint/AssignmentInCondition: | |
Enabled: false | |
# Offense count: 36 | |
# Cop supports --auto-correct. | |
Lint/BlockAlignment: | |
Enabled: false | |
# Offense count: 2 | |
Lint/CircularArgumentReference: | |
Exclude: | |
- 'chef-dk/lib/chef-dk/command/diff.rb' | |
- 'chef/lib/chef/data_bag_item.rb' | |
# Offense count: 3 | |
# Cop supports --auto-correct. | |
# Configuration parameters: AlignWith, SupportedStyles, AutoCorrect. | |
Lint/DefEndAlignment: | |
Enabled: false | |
# Offense count: 201 | |
# Cop supports --auto-correct. | |
Lint/DeprecatedClassMethods: | |
Enabled: false | |
# Offense count: 2 | |
Lint/DuplicateMethods: | |
Exclude: | |
- 'chef/lib/chef/user_v1.rb' | |
- 'chef/lib/chef/win32/registry.rb' | |
# Offense count: 2 | |
Lint/DuplicatedKey: | |
Exclude: | |
- 'chef/spec/unit/provider/service/aixinit_service_spec.rb' | |
# Offense count: 1 | |
Lint/EmptyEnsure: | |
Exclude: | |
- 'chef/spec/unit/chef_fs/parallelizer.rb' | |
# Offense count: 53 | |
# Cop supports --auto-correct. | |
# Configuration parameters: AlignWith, SupportedStyles, AutoCorrect. | |
Lint/EndAlignment: | |
Enabled: false | |
# Offense count: 8 | |
Lint/Eval: | |
Exclude: | |
- 'chef/Gemfile' | |
- 'chef/chef-config/lib/chef-config/package_task.rb' | |
- 'chef/chef-windows.gemspec' | |
- 'chef/spec/unit/formatters/error_inspectors/resource_failure_inspector_spec.rb' | |
- 'knife-azure/Rakefile' | |
- 'knife-terremark/Rakefile' | |
- 'ohai/features/steps/common.rb' | |
- 'ohai/lib/ohai/loader.rb' | |
# Offense count: 59 | |
Lint/HandleExceptions: | |
Enabled: false | |
# Offense count: 1 | |
Lint/LiteralInCondition: | |
Exclude: | |
- 'chef/spec/functional/run_lock_spec.rb' | |
# Offense count: 5 | |
Lint/Loop: | |
Exclude: | |
- 'knife-azure/lib/azure/certificate.rb' | |
- 'knife-azure/lib/chef/knife/azure_server_create.rb' | |
# Offense count: 7 | |
Lint/NestedMethodDefinition: | |
Exclude: | |
- 'chef/lib/chef/cookbook_site_streaming_uploader.rb' | |
- 'chef/lib/chef/knife/cookbook_show.rb' | |
- 'ohai/platform_simulation_specs/common/ohai_plugin_common.rb' | |
- 'ohai/spec/support/integration_helper.rb' | |
# Offense count: 2 | |
Lint/NonLocalExitFromIterator: | |
Exclude: | |
- 'chef/lib/chef/mixin/why_run.rb' | |
- 'knife-azure/lib/chef/knife/azure_server_delete.rb' | |
# Offense count: 122 | |
Lint/ParenthesesAsGroupedExpression: | |
Enabled: false | |
# Offense count: 75 | |
Lint/RescueException: | |
Enabled: false | |
# Offense count: 23 | |
Lint/ShadowingOuterLocalVariable: | |
Enabled: false | |
# Offense count: 3 | |
# Cop supports --auto-correct. | |
Lint/SpaceBeforeFirstArg: | |
Exclude: | |
- 'chef/spec/functional/resource/aixinit_service_spec.rb' | |
- 'chef/spec/unit/encrypted_data_bag_item_spec.rb' | |
- 'chef/spec/unit/provider/group/pw_spec.rb' | |
# Offense count: 101 | |
# Cop supports --auto-correct. | |
Lint/StringConversionInInterpolation: | |
Enabled: false | |
# Offense count: 6 | |
Lint/UnderscorePrefixedVariableName: | |
Exclude: | |
- 'chef/spec/unit/provider/package/freebsd/port_spec.rb' | |
- 'chef/spec/unit/resource/freebsd_package_spec.rb' | |
- 'ohai/lib/ohai/plugins/rackspace.rb' | |
- 'ohai/lib/ohai/plugins/windows/network.rb' | |
# Offense count: 3 | |
Lint/UnreachableCode: | |
Exclude: | |
- 'chef/spec/data/invalid-metadata-chef-repo/invalid-metadata/metadata.rb' | |
- 'cookbook-quality-metrics/Rakefile' | |
- 'ohai/platform_simulation_specs/common/ohai_plugin_common.rb' | |
# Offense count: 218 | |
# Cop supports --auto-correct. | |
# Configuration parameters: IgnoreEmptyBlocks. | |
Lint/UnusedBlockArgument: | |
Enabled: false | |
# Offense count: 246 | |
# Cop supports --auto-correct. | |
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods. | |
Lint/UnusedMethodArgument: | |
Enabled: false | |
# Offense count: 5 | |
Lint/UselessAccessModifier: | |
Exclude: | |
- 'chef/lib/chef/key.rb' | |
- 'chef/lib/chef/resource.rb' | |
- 'chef/spec/integration/recipes/resource_action_spec.rb' | |
- 'ohai/lib/ohai/config.rb' | |
# Offense count: 247 | |
Lint/UselessAssignment: | |
Enabled: false | |
# Offense count: 10 | |
Lint/Void: | |
Exclude: | |
- 'chef/spec/support/shared/functional/securable_resource.rb' | |
- 'chef/spec/unit/chef_fs/parallelizer.rb' | |
- 'chef/spec/unit/mixin/deprecation_spec.rb' | |
- 'chef/spec/unit/provider/package/yum_spec.rb' | |
- 'ohai/platform_simulation_specs/common/ohai_plugin_common.rb' | |
# Offense count: 933 | |
Metrics/AbcSize: | |
Max: 297 | |
# Offense count: 71 | |
Metrics/BlockNesting: | |
Max: 6 | |
# Offense count: 167 | |
# Configuration parameters: CountComments. | |
Metrics/ClassLength: | |
Max: 1032 | |
# Offense count: 301 | |
Metrics/CyclomaticComplexity: | |
Max: 51 | |
# Offense count: 19029 | |
# Configuration parameters: AllowURI, URISchemes. | |
Metrics/LineLength: | |
Max: 804 | |
# Offense count: 1183 | |
# Configuration parameters: CountComments. | |
Metrics/MethodLength: | |
Max: 218 | |
# Offense count: 19 | |
# Configuration parameters: CountComments. | |
Metrics/ModuleLength: | |
Max: 864 | |
# Offense count: 15 | |
# Configuration parameters: CountKeywordArgs. | |
Metrics/ParameterLists: | |
Max: 11 | |
# Offense count: 269 | |
Metrics/PerceivedComplexity: | |
Max: 64 | |
# Offense count: 2 | |
# Cop supports --auto-correct. | |
Performance/CaseWhenSplat: | |
Exclude: | |
- 'chef/lib/chef/formatters/error_inspectors/cookbook_sync_error_inspector.rb' | |
- 'chef/lib/chef/formatters/error_inspectors/node_load_error_inspector.rb' | |
# Offense count: 1 | |
# Cop supports --auto-correct. | |
Performance/Count: | |
Exclude: | |
- 'chef/spec/integration/solo/solo_spec.rb' | |
# Offense count: 16 | |
# Cop supports --auto-correct. | |
Performance/Detect: | |
Exclude: | |
- 'chef/lib/chef/chef_fs/file_system/acl_dir.rb' | |
- 'chef/lib/chef/chef_fs/file_system/acls_dir.rb' | |
- 'chef/lib/chef/chef_fs/file_system/chef_server_root_dir.rb' | |
- 'chef/lib/chef/chef_fs/file_system/cookbook_dir.rb' | |
- 'chef/lib/chef/chef_fs/file_system/cookbooks_dir.rb' | |
- 'chef/lib/chef/chef_fs/file_system/data_bags_dir.rb' | |
- 'chef/lib/chef/chef_fs/file_system/memory_dir.rb' | |
- 'chef/lib/chef/chef_fs/file_system/rest_list_dir.rb' | |
- 'chef/lib/chef/provider/package/rubygems.rb' | |
- 'chef/spec/functional/resource/user/useradd_spec.rb' | |
- 'knife-ec2/lib/chef/knife/ec2_server_list.rb' | |
- 'ohai/lib/ohai/plugins/c.rb' | |
- 'ohai/lib/ohai/plugins/linux/network.rb' | |
- 'ohai/lib/ohai/plugins/network.rb' | |
# Offense count: 5 | |
# Cop supports --auto-correct. | |
Performance/ReverseEach: | |
Exclude: | |
- 'chef/chef-config/lib/chef-config/package_task.rb' | |
- 'chef/lib/chef/knife/cookbook_metadata.rb' | |
- 'chef/lib/chef/knife/cookbook_test.rb' | |
- 'chef/spec/unit/knife/cookbook_test_spec.rb' | |
# Offense count: 24 | |
# Cop supports --auto-correct. | |
Performance/StringReplacement: | |
Enabled: false | |
# Offense count: 9 | |
# Cop supports --auto-correct. | |
# Configuration parameters: EnforcedStyle, SupportedStyles. | |
Style/AccessModifierIndentation: | |
Enabled: false | |
# Offense count: 99 | |
Style/AccessorMethodName: | |
Enabled: false | |
# Offense count: 101 | |
# Cop supports --auto-correct. | |
Style/Alias: | |
Enabled: false | |
# Offense count: 117 | |
# Cop supports --auto-correct. | |
Style/AlignArray: | |
Enabled: false | |
# Offense count: 315 | |
# Cop supports --auto-correct. | |
# Configuration parameters: EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle, SupportedLastArgumentHashStyles. | |
Style/AlignHash: | |
Enabled: false | |
# Offense count: 961 | |
# Cop supports --auto-correct. | |
# Configuration parameters: EnforcedStyle, SupportedStyles. | |
Style/AlignParameters: | |
Enabled: false | |
# Offense count: 252 | |
# Cop supports --auto-correct. | |
# Configuration parameters: EnforcedStyle, SupportedStyles. | |
Style/AndOr: | |
Enabled: false | |
# Offense count: 7 | |
Style/AsciiComments: | |
Exclude: | |
- 'chef/lib/chef/provider/package/zypper.rb' | |
- 'chef/lib/chef/win32/api.rb' | |
- 'ohai/lib/ohai/mixin/string.rb' | |
# Offense count: 76 | |
# Cop supports --auto-correct. | |
# Configuration parameters: EnforcedStyle, SupportedStyles. | |
Style/BarePercentLiterals: | |
Enabled: false | |
# Offense count: 47 | |
# Cop supports --auto-correct. | |
Style/BlockComments: | |
Exclude: | |
- 'chef/lib/chef/win32/api/error.rb' | |
- 'chef/lib/chef/win32/api/file.rb' | |
- 'chef/lib/chef/win32/api/installer.rb' | |
- 'chef/lib/chef/win32/api/memory.rb' | |
- 'chef/lib/chef/win32/api/synchronization.rb' | |
- 'chef/lib/chef/win32/api/system.rb' | |
- 'chef/lib/chef/win32/api/unicode.rb' | |
# Offense count: 871 | |
# Cop supports --auto-correct. | |
# Configuration parameters: EnforcedStyle, SupportedStyles, ProceduralMethods, FunctionalMethods, IgnoredMethods. | |
Style/BlockDelimiters: | |
Enabled: false | |
# Offense count: 65 | |
# Cop supports --auto-correct. | |
Style/BlockEndNewline: | |
Enabled: false | |
# Offense count: 1032 | |
# Cop supports --auto-correct. | |
# Configuration parameters: EnforcedStyle, SupportedStyles. | |
Style/BracesAroundHashParameters: | |
Enabled: false | |
# Offense count: 32 | |
Style/CaseEquality: | |
Exclude: | |
- 'chef/lib/chef/application/windows_service.rb' | |
- 'chef/lib/chef/http/basic_client.rb' | |
- 'chef/lib/chef/mixin/command/unix.rb' | |
- 'chef/lib/chef/mixin/params_validate.rb' | |
- 'chef/lib/chef/provider/remote_file/ftp.rb' | |
- 'chef/spec/tiny_server.rb' | |
- 'chef/spec/unit/lwrp_spec.rb' | |
- 'ohai/lib/ohai/mixin/command.rb' | |
- 'ohai/lib/ohai/plugins/network.rb' | |
# Offense count: 56 | |
# Cop supports --auto-correct. | |
# Configuration parameters: IndentWhenRelativeTo, SupportedStyles, IndentOneStep. | |
Style/CaseIndentation: | |
Enabled: false | |
# Offense count: 23 | |
Style/ClassAndModuleCamelCase: | |
Exclude: | |
- 'chef/lib/chef/win32/api/crypto.rb' | |
- 'chef/lib/chef/win32/api/file.rb' | |
- 'chef/lib/chef/win32/api/net.rb' | |
- 'chef/lib/chef/win32/api/psapi.rb' | |
- 'chef/lib/chef/win32/api/security.rb' | |
# Offense count: 110 | |
# Configuration parameters: EnforcedStyle, SupportedStyles. | |
Style/ClassAndModuleChildren: | |
Enabled: false | |
# Offense count: 179 | |
# Cop supports --auto-correct. | |
# Configuration parameters: EnforcedStyle, SupportedStyles. | |
Style/ClassCheck: | |
Enabled: false | |
# Offense count: 27 | |
Style/ClassVars: | |
Exclude: | |
- 'chef/chef-config/lib/chef-config/path_helper.rb' | |
- 'chef/lib/chef/audit/audit_event_proxy.rb' | |
- 'chef/lib/chef/chef_fs/parallelizer.rb' | |
- 'chef/lib/chef/knife.rb' | |
- 'chef/lib/chef/mixin/descendants_tracker.rb' | |
- 'chef/lib/chef/resource.rb' | |
- 'chef/lib/chef/util/dsc/resource_store.rb' | |
- 'chef/lib/chef/util/selinux.rb' | |
- 'chef/spec/unit/util/selinux_spec.rb' | |
# Offense count: 19 | |
# Cop supports --auto-correct. | |
Style/ClosingParenthesisIndentation: | |
Exclude: | |
- 'chef-dk/lib/chef-dk/command/push_archive.rb' | |
- 'chef/lib/chef/provider/reboot.rb' | |
- 'chef/lib/chef/resource/mount.rb' | |
- 'chef/lib/chef/resource/package.rb' | |
- 'chef/spec/support/shared/functional/http.rb' | |
- 'chef/spec/support/shared/integration/app_server_support.rb' | |
- 'chef/spec/unit/mixin/params_validate_spec.rb' | |
- 'chef/spec/unit/provider/group_spec.rb' | |
- 'chef/spec/unit/provider/ifconfig/debian_spec.rb' | |
- 'knife-ec2/lib/chef/knife/ec2_server_list.rb' | |
- 'ohai/lib/ohai/plugins/linux/network.rb' | |
- 'ohai/lib/ohai/plugins/windows/network.rb' | |
# Offense count: 115 | |
# Cop supports --auto-correct. | |
Style/ColonMethodCall: | |
Enabled: false | |
# Offense count: 52 | |
# Cop supports --auto-correct. | |
# Configuration parameters: Keywords. | |
Style/CommentAnnotation: | |
Enabled: false | |
# Offense count: 85 | |
# Cop supports --auto-correct. | |
Style/CommentIndentation: | |
Enabled: false | |
# Offense count: 18 | |
Style/ConstantName: | |
Exclude: | |
- 'chef/lib/chef/cookbook_site_streaming_uploader.rb' | |
- 'chef/lib/chef/win32/api/error.rb' | |
- 'chef/lib/chef/win32/api/net.rb' | |
- 'chef/lib/chef/win32/eventlog.rb' | |
- 'chef/spec/support/shared/functional/securable_resource.rb' | |
- 'ohai/lib/ohai/common/dmi.rb' | |
# Offense count: 22 | |
# Cop supports --auto-correct. | |
Style/DefWithParentheses: | |
Exclude: | |
- 'chef-dk/lib/chef-dk/exceptions.rb' | |
- 'chef/lib/chef/formatters/error_descriptor.rb' | |
- 'chef/lib/chef/knife/core/cookbook_scm_repo.rb' | |
- 'chef/lib/chef/provider/package/zypper.rb' | |
- 'chef/lib/chef/provider/service/arch.rb' | |
- 'chef/lib/chef/provider/service/gentoo.rb' | |
- 'chef/lib/chef/provider/service/insserv.rb' | |
- 'chef/lib/chef/provider/service/redhat.rb' | |
- 'knife-azure/lib/azure/connection.rb' | |
- 'knife-azure/lib/azure/rest.rb' | |
- 'knife-azure/lib/chef/knife/azure_server_create.rb' | |
- 'knife-azure/spec/integration/azure_spec.rb' | |
- 'knife-azure/spec/unit/azure_base_spec.rb' | |
- 'ohai/lib/ohai/mixin/ec2_metadata.rb' | |
- 'ohai/lib/ohai/plugins/rackspace.rb' | |
# Offense count: 238 | |
# Cop supports --auto-correct. | |
Style/DeprecatedHashMethods: | |
Enabled: false | |
# Offense count: 1024 | |
# Configuration parameters: Exclude. | |
Style/Documentation: | |
Enabled: false | |
# Offense count: 529 | |
# Cop supports --auto-correct. | |
# Configuration parameters: EnforcedStyle, SupportedStyles. | |
Style/DotPosition: | |
Enabled: false | |
# Offense count: 84 | |
Style/DoubleNegation: | |
Enabled: false | |
# Offense count: 70 | |
Style/EachWithObject: | |
Enabled: false | |
# Offense count: 40 | |
# Cop supports --auto-correct. | |
Style/ElseAlignment: | |
Enabled: false | |
# Offense count: 39 | |
# Cop supports --auto-correct. | |
# Configuration parameters: EnforcedStyle, SupportedStyles. | |
Style/EmptyElse: | |
Enabled: false | |
# Offense count: 145 | |
# Cop supports --auto-correct. | |
# Configuration parameters: AllowAdjacentOneLineDefs. | |
Style/EmptyLineBetweenDefs: | |
Enabled: false | |
# Offense count: 409 | |
# Cop supports --auto-correct. | |
Style/EmptyLines: | |
Enabled: false | |
# Offense count: 32 | |
# Cop supports --auto-correct. | |
Style/EmptyLinesAroundAccessModifier: | |
Enabled: false | |
# Offense count: 3067 | |
# Cop supports --auto-correct. | |
# Configuration parameters: EnforcedStyle, SupportedStyles. | |
Style/EmptyLinesAroundBlockBody: | |
Enabled: false | |
# Offense count: 937 | |
# Cop supports --auto-correct. | |
# Configuration parameters: EnforcedStyle, SupportedStyles. | |
Style/EmptyLinesAroundClassBody: | |
Enabled: false | |
# Offense count: 56 | |
# Cop supports --auto-correct. | |
Style/EmptyLinesAroundMethodBody: | |
Enabled: false | |
# Offense count: 249 | |
# Cop supports --auto-correct. | |
# Configuration parameters: EnforcedStyle, SupportedStyles. | |
Style/EmptyLinesAroundModuleBody: | |
Enabled: false | |
# Offense count: 240 | |
# Cop supports --auto-correct. | |
Style/EmptyLiteral: | |
Enabled: false | |
# Offense count: 5 | |
Style/EndOfLine: | |
Exclude: | |
- 'chef/lib/chef/resource/dsc_resource.rb' | |
- 'chef/lib/chef/util/windows/net_group.rb' | |
- 'chef/lib/chef/win32/api/crypto.rb' | |
- 'chef/lib/chef/win32/crypto.rb' | |
- 'knife-ec2/knife-ec2.gemspec' | |
# Offense count: 1 | |
# Cop supports --auto-correct. | |
Style/EvenOdd: | |
Exclude: | |
- 'chef/lib/chef/chef_fs/file_pattern.rb' | |
# Offense count: 259 | |
# Cop supports --auto-correct. | |
# Configuration parameters: AllowForAlignment. | |
Style/ExtraSpacing: | |
Enabled: false | |
# Offense count: 22 | |
# Configuration parameters: Exclude. | |
Style/FileName: | |
Enabled: false | |
# Offense count: 33 | |
# Cop supports --auto-correct. | |
# Configuration parameters: EnforcedStyle, SupportedStyles. | |
Style/FirstParameterIndentation: | |
Enabled: false | |
# Offense count: 4 | |
# Configuration parameters: EnforcedStyle, SupportedStyles. | |
Style/For: | |
Enabled: false | |
# Offense count: 13 | |
# Configuration parameters: EnforcedStyle, SupportedStyles. | |
Style/FormatString: | |
Exclude: | |
- 'chef/lib/chef/file_access_control/windows.rb' | |
- 'chef/lib/chef/monologger.rb' | |
- 'chef/lib/chef/util/backup.rb' | |
- 'chef/spec/unit/provider/directory_spec.rb' | |
- 'ohai/lib/ohai/mixin/seconds_to_human.rb' | |
- 'ohai/lib/ohai/plugins/mono.rb' | |
- 'ohai/lib/ohai/plugins/python.rb' | |
- 'ohai/lib/ohai/plugins/windows/network.rb' | |
# Offense count: 32 | |
# Configuration parameters: AllowedVariables. | |
Style/GlobalVars: | |
Exclude: | |
- 'chef/spec/data/lwrp/providers/inline_compiler.rb' | |
- 'chef/spec/data/null_config.rb' | |
- 'chef/spec/functional/knife/exec_spec.rb' | |
- 'chef/spec/functional/provider/whyrun_safe_ruby_block_spec.rb' | |
- 'chef/spec/scripts/ssl-serve.rb' | |
- 'chef/spec/support/shared/integration/knife_support.rb' | |
- 'chef/spec/unit/handler_spec.rb' | |
- 'chef/spec/unit/key_spec.rb' | |
- 'chef/spec/unit/lwrp_spec.rb' | |
- 'chef/spec/unit/provider/ruby_block_spec.rb' | |
- 'chef/spec/unit/provider/whyrun_safe_ruby_block_spec.rb' | |
# Offense count: 318 | |
# Configuration parameters: MinBodyLength. | |
Style/GuardClause: | |
Enabled: false | |
# Offense count: 6772 | |
# Cop supports --auto-correct. | |
# Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues. | |
Style/HashSyntax: | |
Enabled: false | |
# Offense count: 312 | |
# Cop supports --auto-correct. | |
# Configuration parameters: MaxLineLength. | |
Style/IfUnlessModifier: | |
Enabled: false | |
# Offense count: 36 | |
# Cop supports --auto-correct. | |
Style/IndentArray: | |
Enabled: false | |
# Offense count: 132 | |
# Cop supports --auto-correct. | |
# Configuration parameters: EnforcedStyle, SupportedStyles. | |
Style/IndentHash: | |
Enabled: false | |
# Offense count: 240 | |
# Cop supports --auto-correct. | |
# Configuration parameters: EnforcedStyle, SupportedStyles. | |
Style/IndentationConsistency: | |
Enabled: false | |
# Offense count: 208 | |
# Cop supports --auto-correct. | |
# Configuration parameters: Width. | |
Style/IndentationWidth: | |
Enabled: false | |
# Offense count: 1 | |
# Cop supports --auto-correct. | |
Style/InfiniteLoop: | |
Exclude: | |
- 'chef/spec/functional/run_lock_spec.rb' | |
# Offense count: 97 | |
# Cop supports --auto-correct. | |
Style/Lambda: | |
Enabled: false | |
# Offense count: 386 | |
# Cop supports --auto-correct. | |
Style/LeadingCommentSpace: | |
Enabled: false | |
# Offense count: 122 | |
# Cop supports --auto-correct. | |
Style/LineEndConcatenation: | |
Enabled: false | |
# Offense count: 245 | |
# Cop supports --auto-correct. | |
Style/MethodCallParentheses: | |
Enabled: false | |
# Offense count: 8 | |
# Cop supports --auto-correct. | |
# Configuration parameters: EnforcedStyle, SupportedStyles. | |
Style/MethodDefParentheses: | |
Enabled: false | |
# Offense count: 68 | |
# Configuration parameters: EnforcedStyle, SupportedStyles. | |
Style/MethodName: | |
Enabled: false | |
# Offense count: 10 | |
Style/ModuleFunction: | |
Exclude: | |
- 'chef-dk/lib/chef-dk/helpers.rb' | |
- 'chef/lib/chef/mixin/command.rb' | |
- 'chef/lib/chef/mixin/convert_to_class_name.rb' | |
- 'chef/lib/chef/mixin/deep_merge.rb' | |
- 'chef/lib/chef/mixin/xml_escape.rb' | |
- 'chef/spec/integration/recipes/recipe_dsl_spec.rb' | |
- 'chef/spec/integration/recipes/resource_converge_if_changed_spec.rb' | |
- 'chef/spec/integration/recipes/resource_load_spec.rb' | |
- 'chef/spec/support/lib/library_load_order.rb' | |
# Offense count: 6 | |
Style/MultilineBlockChain: | |
Exclude: | |
- 'chef/lib/chef/knife/core/gem_glob_loader.rb' | |
- 'chef/lib/chef/node_map.rb' | |
- 'chef/lib/chef/util/backup.rb' | |
- 'ohai/lib/ohai/plugins/linux/network.rb' | |
- 'ohai/platform_simulation_specs/common/ohai_plugin_common.rb' | |
# Offense count: 84 | |
# Cop supports --auto-correct. | |
Style/MultilineBlockLayout: | |
Enabled: false | |
# Offense count: 6 | |
# Cop supports --auto-correct. | |
Style/MultilineIfThen: | |
Exclude: | |
- 'chef/lib/chef/formatters/doc.rb' | |
- 'chef/lib/chef/knife/core/gem_glob_loader.rb' | |
- 'chef/lib/chef/provider/package.rb' | |
- 'chef/lib/chef/provider/service/solaris.rb' | |
# Offense count: 230 | |
# Cop supports --auto-correct. | |
# Configuration parameters: EnforcedStyle, SupportedStyles. | |
Style/MultilineOperationIndentation: | |
Enabled: false | |
# Offense count: 12 | |
Style/MultilineTernaryOperator: | |
Exclude: | |
- 'chef/lib/chef/knife/ssh.rb' | |
- 'chef/lib/chef/mixin/windows_architecture_helper.rb' | |
- 'chef/lib/chef/platform/provider_mapping.rb' | |
- 'chef/lib/chef/provider/cron.rb' | |
- 'chef/lib/chef/provider/service/upstart.rb' | |
- 'chef/lib/chef/provider/windows_script.rb' | |
- 'chef/lib/chef/util/powershell/cmdlet.rb' | |
- 'ohai/features/steps/common.rb' | |
- 'ohai/lib/ohai/config.rb' | |
- 'ohai/lib/ohai/plugins/windows/cpu.rb' | |
# Offense count: 184 | |
# Cop supports --auto-correct. | |
Style/NegatedIf: | |
Enabled: false | |
# Offense count: 9 | |
# Cop supports --auto-correct. | |
Style/NegatedWhile: | |
Exclude: | |
- 'chef-dk/lib/chef-dk/command/verify.rb' | |
- 'chef/lib/chef/audit/audit_event_proxy.rb' | |
- 'chef/lib/chef/chef_fs/parallelizer.rb' | |
- 'chef/lib/chef/chef_fs/parallelizer/parallel_enumerable.rb' | |
- 'chef/spec/functional/run_lock_spec.rb' | |
- 'chef/spec/unit/chef_fs/parallelizer.rb' | |
- 'ohai/lib/ohai/runner.rb' | |
# Offense count: 61 | |
# Cop supports --auto-correct. | |
# Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles. | |
Style/Next: | |
Enabled: false | |
# Offense count: 27 | |
# Cop supports --auto-correct. | |
Style/NilComparison: | |
Enabled: false | |
# Offense count: 17 | |
# Cop supports --auto-correct. | |
# Configuration parameters: IncludeSemanticChanges. | |
Style/NonNilCheck: | |
Exclude: | |
- 'chef/lib/chef/node.rb' | |
- 'chef/lib/chef/provider/git.rb' | |
- 'chef/lib/chef/provider/package.rb' | |
- 'chef/lib/chef/provider/service/freebsd.rb' | |
- 'chef/lib/chef/provider/service/openbsd.rb' | |
- 'chef/lib/chef/win32/memory.rb' | |
- 'chef/lib/chef/win32/security/sid.rb' | |
- 'knife-azure/lib/azure/deploy.rb' | |
- 'knife-azure/lib/azure/disk.rb' | |
- 'knife-azure/lib/azure/role.rb' | |
- 'knife-azure/lib/chef/knife/azure_base.rb' | |
- 'knife-azure/lib/chef/knife/azure_server_create.rb' | |
- 'ohai/lib/ohai/plugins/windows/network.rb' | |
# Offense count: 41 | |
# Cop supports --auto-correct. | |
Style/Not: | |
Enabled: false | |
# Offense count: 113 | |
# Cop supports --auto-correct. | |
Style/NumericLiterals: | |
MinDigits: 19 | |
# Offense count: 3 | |
Style/OneLineConditional: | |
Exclude: | |
- 'knife-azure/lib/azure/role.rb' | |
- 'ohai/platform_simulation_specs/common/ohai_plugin_common.rb' | |
# Offense count: 6 | |
Style/OpMethod: | |
Exclude: | |
- 'chef/lib/chef/cookbook_version.rb' | |
- 'chef/lib/chef/node.rb' | |
- 'chef/lib/chef/provider/package/yum.rb' | |
- 'chef/lib/chef/version_class.rb' | |
- 'chef/lib/chef/version_constraint.rb' | |
# Offense count: 1 | |
Style/OptionalArguments: | |
Exclude: | |
- 'chef/lib/chef/dsl/powershell.rb' | |
# Offense count: 67 | |
# Cop supports --auto-correct. | |
Style/ParallelAssignment: | |
Enabled: false | |
# Offense count: 54 | |
# Cop supports --auto-correct. | |
# Configuration parameters: AllowSafeAssignment. | |
Style/ParenthesesAroundCondition: | |
Enabled: false | |
# Offense count: 532 | |
# Cop supports --auto-correct. | |
# Configuration parameters: PreferredDelimiters. | |
Style/PercentLiteralDelimiters: | |
Enabled: false | |
# Offense count: 3 | |
# Cop supports --auto-correct. | |
# Configuration parameters: EnforcedStyle, SupportedStyles. | |
Style/PercentQLiterals: | |
Exclude: | |
- 'chef/lib/chef/exceptions.rb' | |
- 'chef/spec/unit/formatters/error_inspectors/cookbook_resolve_error_inspector_spec.rb' | |
- 'chef/spec/unit/key_spec.rb' | |
# Offense count: 879 | |
# Cop supports --auto-correct. | |
Style/PerlBackrefs: | |
Enabled: false | |
# Offense count: 82 | |
# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist. | |
Style/PredicateName: | |
Enabled: false | |
# Offense count: 122 | |
# Cop supports --auto-correct. | |
Style/Proc: | |
Enabled: false | |
# Offense count: 33 | |
# Configuration parameters: EnforcedStyle, SupportedStyles. | |
Style/RaiseArgs: | |
Enabled: false | |
# Offense count: 72 | |
# Cop supports --auto-correct. | |
Style/RedundantBegin: | |
Enabled: false | |
# Offense count: 8 | |
# Cop supports --auto-correct. | |
Style/RedundantException: | |
Exclude: | |
- 'chef/lib/chef/cookbook/cookbook_version_loader.rb' | |
- 'chef/lib/chef/file_cache.rb' | |
- 'chef/lib/chef/util/dsc/configuration_generator.rb' | |
- 'chef/lib/chef/util/selinux.rb' | |
- 'chef/spec/functional/resource/deploy_revision_spec.rb' | |
- 'chef/spec/support/platform_helpers.rb' | |
- 'chef/spec/unit/provider/package/rubygems_spec.rb' | |
# Offense count: 101 | |
# Cop supports --auto-correct. | |
# Configuration parameters: AllowMultipleReturnValues. | |
Style/RedundantReturn: | |
Enabled: false | |
# Offense count: 207 | |
# Cop supports --auto-correct. | |
Style/RedundantSelf: | |
Enabled: false | |
# Offense count: 208 | |
# Cop supports --auto-correct. | |
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes. | |
Style/RegexpLiteral: | |
Enabled: false | |
# Offense count: 7 | |
# Cop supports --auto-correct. | |
Style/RescueEnsureAlignment: | |
Exclude: | |
- 'knife-azure/lib/chef/knife/azure_server_create.rb' | |
- 'knife-ec2/lib/chef/knife/ec2_server_create.rb' | |
# Offense count: 12 | |
# Cop supports --auto-correct. | |
Style/RescueModifier: | |
Exclude: | |
- 'chef/lib/chef/monologger.rb' | |
- 'chef/lib/chef/provider/service/openbsd.rb' | |
- 'chef/lib/chef/provider/service/windows.rb' | |
- 'chef/lib/chef/provider/user/solaris.rb' | |
- 'chef/spec/support/shared/unit/provider/file.rb' | |
- 'chef/spec/unit/provider/cron/unix_spec.rb' | |
- 'chef/spec/unit/provider/service/windows_spec.rb' | |
# Offense count: 9 | |
# Cop supports --auto-correct. | |
Style/SelfAssignment: | |
Exclude: | |
- 'chef/lib/chef/chef_fs/chef_fs_data_store.rb' | |
- 'chef/lib/chef/encrypted_data_bag_item.rb' | |
- 'chef/lib/chef/environment.rb' | |
- 'chef/lib/chef/knife/core/ui.rb' | |
- 'chef/lib/chef/mixin/deep_merge.rb' | |
- 'chef/lib/chef/mixin/wide_string.rb' | |
- 'chef/spec/functional/resource/user/useradd_spec.rb' | |
- 'knife-azure/spec/integration/azure_spec.rb' | |
# Offense count: 93 | |
# Cop supports --auto-correct. | |
# Configuration parameters: AllowAsExpressionSeparator. | |
Style/Semicolon: | |
Enabled: false | |
# Offense count: 736 | |
# Cop supports --auto-correct. | |
# Configuration parameters: EnforcedStyle, SupportedStyles. | |
Style/SignalException: | |
Enabled: false | |
# Offense count: 16 | |
# Configuration parameters: Methods. | |
Style/SingleLineBlockParams: | |
Exclude: | |
- 'chef-dk/lib/chef-dk/policyfile/dsl.rb' | |
- 'chef/lib/chef/chef_fs/file_system/organization_invites_entry.rb' | |
- 'chef/lib/chef/cookbook_site_streaming_uploader.rb' | |
- 'chef/lib/chef/cookbook_uploader.rb' | |
- 'chef/lib/chef/cookbook_version.rb' | |
- 'chef/lib/chef/data_bag.rb' | |
- 'chef/lib/chef/encrypted_data_bag_item.rb' | |
- 'chef/lib/chef/exceptions.rb' | |
- 'chef/lib/chef/http/auth_credentials.rb' | |
- 'chef/lib/chef/knife/cookbook_bulk_delete.rb' | |
- 'chef/lib/chef/run_list.rb' | |
- 'chef/lib/chef/shell_out.rb' | |
- 'chef/lib/chef/win32/security/acl.rb' | |
- 'chef/spec/unit/cookbook/synchronizer_spec.rb' | |
# Offense count: 26 | |
# Cop supports --auto-correct. | |
# Configuration parameters: AllowIfMethodIsEmpty. | |
Style/SingleLineMethods: | |
Exclude: | |
- 'chef/lib/chef/mash.rb' | |
- 'chef/spec/integration/recipes/recipe_dsl_spec.rb' | |
- 'chef/spec/integration/recipes/resource_converge_if_changed_spec.rb' | |
- 'chef/spec/integration/recipes/resource_load_spec.rb' | |
- 'ohai/lib/ohai/mash.rb' | |
# Offense count: 248 | |
# Cop supports --auto-correct. | |
Style/SingleSpaceBeforeFirstArg: | |
Enabled: false | |
# Offense count: 4 | |
# Cop supports --auto-correct. | |
Style/SpaceAfterColon: | |
Exclude: | |
- 'chef/lib/chef/knife/ssh.rb' | |
- 'chef/lib/chef/run_list/run_list_item.rb' | |
- 'chef/spec/functional/event_loggers/windows_eventlog_spec.rb' | |
- 'knife-azure/spec/unit/azure_vnet_create_spec.rb' | |
# Offense count: 975 | |
# Cop supports --auto-correct. | |
Style/SpaceAfterComma: | |
Enabled: false | |
# Offense count: 27 | |
# Cop supports --auto-correct. | |
Style/SpaceAfterControlKeyword: | |
Enabled: false | |
# Offense count: 4 | |
# Cop supports --auto-correct. | |
Style/SpaceAfterMethodName: | |
Exclude: | |
- 'chef/lib/chef/provider/batch.rb' | |
- 'chef/lib/chef/provider/powershell_script.rb' | |
- 'knife-azure/lib/azure/certificate.rb' | |
- 'knife-azure/spec/unit/query_azure_mock.rb' | |
# Offense count: 34 | |
# Cop supports --auto-correct. | |
Style/SpaceAfterNot: | |
Enabled: false | |
# Offense count: 7 | |
# Cop supports --auto-correct. | |
Style/SpaceAfterSemicolon: | |
Exclude: | |
- 'chef/lib/chef/http/auth_credentials.rb' | |
- 'chef/lib/chef/knife/cookbook_bulk_delete.rb' | |
- 'chef/spec/unit/provider/mount/mount_spec.rb' | |
# Offense count: 114 | |
# Cop supports --auto-correct. | |
# Configuration parameters: EnforcedStyleInsidePipes, SupportedStyles. | |
Style/SpaceAroundBlockParameters: | |
Enabled: false | |
# Offense count: 778 | |
# Cop supports --auto-correct. | |
# Configuration parameters: EnforcedStyle, SupportedStyles. | |
Style/SpaceAroundEqualsInParameterDefault: | |
Enabled: false | |
# Offense count: 1469 | |
# Cop supports --auto-correct. | |
# Configuration parameters: MultiSpaceAllowedForOperators. | |
Style/SpaceAroundOperators: | |
Enabled: false | |
# Offense count: 250 | |
# Cop supports --auto-correct. | |
# Configuration parameters: EnforcedStyle, SupportedStyles. | |
Style/SpaceBeforeBlockBraces: | |
Enabled: false | |
# Offense count: 19 | |
# Cop supports --auto-correct. | |
Style/SpaceBeforeComma: | |
Exclude: | |
- 'chef/lib/chef/provider/package/freebsd/pkg.rb' | |
- 'chef/spec/functional/resource/bff_spec.rb' | |
- 'chef/spec/functional/resource/rpm_spec.rb' | |
- 'chef/spec/integration/knife/chef_fs_data_store_spec.rb' | |
- 'chef/spec/unit/audit/runner_spec.rb' | |
- 'chef/spec/unit/provider/service/redhat_spec.rb' | |
- 'chef/spec/unit/resource_reporter_spec.rb' | |
- 'chef/spec/unit/resource_spec.rb' | |
- 'knife-azure/spec/integration/azure_spec.rb' | |
- 'ohai/lib/ohai/plugins/darwin/network.rb' | |
- 'ohai/platform_simulation_specs/plugins/c_spec.rb' | |
# Offense count: 5 | |
# Cop supports --auto-correct. | |
Style/SpaceBeforeComment: | |
Exclude: | |
- 'chef/spec/functional/knife/exec_spec.rb' | |
- 'chef/spec/support/pedant/run_pedant.rb' | |
- 'chef/spec/support/shared/functional/securable_resource.rb' | |
- 'chef/spec/unit/knife/cookbook_site_share_spec.rb' | |
# Offense count: 14 | |
# Cop supports --auto-correct. | |
Style/SpaceBeforeSemicolon: | |
Exclude: | |
- 'chef/lib/chef/cookbook_uploader.rb' | |
- 'chef/lib/chef/cookbook_version.rb' | |
- 'chef/lib/chef/exceptions.rb' | |
- 'chef/lib/chef/run_list.rb' | |
- 'chef/spec/functional/file_content_management/deploy_strategies_spec.rb' | |
- 'chef/spec/unit/file_access_control_spec.rb' | |
- 'chef/spec/unit/knife/node_environment_set_spec.rb' | |
- 'chef/spec/unit/knife/node_run_list_set_spec.rb' | |
# Offense count: 1215 | |
# Cop supports --auto-correct. | |
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters. | |
Style/SpaceInsideBlockBraces: | |
Enabled: false | |
# Offense count: 3998 | |
# Cop supports --auto-correct. | |
Style/SpaceInsideBrackets: | |
Enabled: false | |
# Offense count: 2696 | |
# Cop supports --auto-correct. | |
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles. | |
Style/SpaceInsideHashLiteralBraces: | |
Enabled: false | |
# Offense count: 821 | |
# Cop supports --auto-correct. | |
Style/SpaceInsideParens: | |
Enabled: false | |
# Offense count: 2 | |
# Cop supports --auto-correct. | |
Style/SpaceInsideRangeLiteral: | |
Exclude: | |
- 'ohai/lib/ohai/plugins/solaris2/filesystem.rb' | |
# Offense count: 16 | |
# Cop supports --auto-correct. | |
# Configuration parameters: EnforcedStyle, SupportedStyles. | |
Style/SpaceInsideStringInterpolation: | |
Exclude: | |
- 'chef/lib/chef/provider/package/easy_install.rb' | |
- 'chef/lib/chef/provider/route.rb' | |
- 'chef/spec/integration/recipes/resource_load_spec.rb' | |
- 'ohai/lib/ohai/plugins/darwin/platform.rb' | |
- 'ohai/lib/ohai/plugins/dragonflybsd/network.rb' | |
- 'ohai/lib/ohai/plugins/freebsd/network.rb' | |
- 'ohai/lib/ohai/plugins/freebsd/virtualization.rb' | |
- 'ohai/lib/ohai/plugins/netbsd/network.rb' | |
- 'ohai/lib/ohai/plugins/openbsd/network.rb' | |
- 'ohai/lib/ohai/plugins/uptime.rb' | |
- 'ohai/lib/ohai/runner.rb' | |
- 'ohai/platform_simulation_specs/common/ohai_plugin_common.rb' | |
# Offense count: 121 | |
# Cop supports --auto-correct. | |
Style/SpecialGlobalVars: | |
Enabled: false | |
# Offense count: 44281 | |
# Cop supports --auto-correct. | |
# Configuration parameters: EnforcedStyle, SupportedStyles. | |
Style/StringLiterals: | |
Enabled: false | |
# Offense count: 162 | |
# Cop supports --auto-correct. | |
# Configuration parameters: EnforcedStyle, SupportedStyles. | |
Style/StringLiteralsInInterpolation: | |
Enabled: false | |
# Offense count: 2 | |
Style/StructInheritance: | |
Exclude: | |
- 'chef/lib/chef/resource_reporter.rb' | |
- 'ohai/lib/ohai/loader.rb' | |
# Offense count: 137 | |
# Cop supports --auto-correct. | |
# Configuration parameters: IgnoredMethods. | |
Style/SymbolProc: | |
Enabled: false | |
# Offense count: 269 | |
# Cop supports --auto-correct. | |
Style/Tab: | |
Exclude: | |
- 'chef/lib/chef/resource/package.rb' | |
- 'chef/spec/functional/resource/directory_spec.rb' | |
- 'chef/spec/unit/provider/service/debian_service_spec.rb' | |
- 'knife-azure/spec/unit/azure_base_spec.rb' | |
- 'knife-azure/spec/unit/azure_server_delete_spec.rb' | |
- 'knife-terremark/lib/chef/knife/terremark_image_list.rb' | |
- 'knife-terremark/lib/chef/knife/terremark_server_create.rb' | |
- 'knife-terremark/lib/chef/knife/terremark_server_delete.rb' | |
- 'knife-terremark/lib/chef/knife/terremark_server_list.rb' | |
- 'ohai/lib/ohai/mixin/command.rb' | |
- 'ohai/lib/ohai/plugins/aix/cpu.rb' | |
- 'ohai/spec/unit/plugins/c_spec.rb' | |
# Offense count: 304 | |
# Cop supports --auto-correct. | |
# Configuration parameters: EnforcedStyle, SupportedStyles. | |
Style/TrailingBlankLines: | |
Enabled: false | |
# Offense count: 259 | |
# Cop supports --auto-correct. | |
# Configuration parameters: EnforcedStyleForMultiline, SupportedStyles. | |
Style/TrailingComma: | |
Enabled: false | |
# Offense count: 1 | |
# Cop supports --auto-correct. | |
# Configuration parameters: AllowNamedUnderscoreVariables. | |
Style/TrailingUnderscoreVariable: | |
Exclude: | |
- 'chef/lib/chef/knife/core/status_presenter.rb' | |
# Offense count: 335 | |
# Cop supports --auto-correct. | |
Style/TrailingWhitespace: | |
Enabled: false | |
# Offense count: 54 | |
# Cop supports --auto-correct. | |
# Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, Whitelist. | |
Style/TrivialAccessors: | |
Enabled: false | |
# Offense count: 35 | |
Style/UnlessElse: | |
Enabled: false | |
# Offense count: 1 | |
# Cop supports --auto-correct. | |
Style/UnneededCapitalW: | |
Exclude: | |
- 'chef/spec/unit/application/knife_spec.rb' | |
# Offense count: 91 | |
# Cop supports --auto-correct. | |
Style/UnneededPercentQ: | |
Enabled: false | |
# Offense count: 12 | |
# Cop supports --auto-correct. | |
Style/VariableInterpolation: | |
Exclude: | |
- 'chef/lib/chef/cookbook/chefignore.rb' | |
- 'chef/lib/chef/cookbook/cookbook_version_loader.rb' | |
- 'chef/lib/chef/file_access_control/unix.rb' | |
- 'chef/lib/chef/knife/cookbook_site_install.rb' | |
- 'chef/lib/chef/scan_access_control.rb' | |
# Offense count: 50 | |
# Configuration parameters: EnforcedStyle, SupportedStyles. | |
Style/VariableName: | |
Enabled: false | |
# Offense count: 7 | |
# Cop supports --auto-correct. | |
Style/WhileUntilDo: | |
Exclude: | |
- 'chef/lib/chef/application/windows_service.rb' | |
- 'chef/lib/chef/chef_fs/path_utils.rb' | |
- 'chef/lib/chef/win32/security/sid.rb' | |
- 'chef/lib/chef/win32/unicode.rb' | |
- 'chef/spec/functional/resource/package_spec.rb' | |
- 'chef/spec/support/platforms/win32/spec_service.rb' | |
- 'ohai/lib/ohai/mixin/ec2_metadata.rb' | |
# Offense count: 8 | |
# Cop supports --auto-correct. | |
# Configuration parameters: MaxLineLength. | |
Style/WhileUntilModifier: | |
Exclude: | |
- 'chef/lib/chef/chef_fs/parallelizer/parallel_enumerable.rb' | |
- 'chef/lib/chef/resource_collection/stepable_iterator.rb' | |
- 'chef/spec/functional/run_lock_spec.rb' | |
- 'chef/spec/support/shared/functional/win32_service.rb' | |
- 'chef/spec/support/shared/integration/app_server_support.rb' | |
- 'chef/spec/unit/chef_fs/parallelizer.rb' | |
# Offense count: 424 | |
# Cop supports --auto-correct. | |
# Configuration parameters: WordRegex. | |
Style/WordArray: | |
MinSize: 25 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment