.rubocop.yml in puppet-debugger-0.19.0 vs .rubocop.yml in puppet-debugger-1.0.0

- old
+ new

@@ -1,240 +1,72 @@ inherit_from: .rubocop_todo.yml -# This configuration was generated by -# `rubocop --auto-gen-config` -# on 2016-11-22 23:40:05 -0800 using RuboCop version 0.45.0. -# 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. -AllCops: - Include: - - spec - - lib/puppet - - lib/puppet-debugger - - lib/awesome_print - - lib/version.rb - - lib/puppet-debugger.rb - - bin -# Offense count: 7 -# Configuration parameters: AllowSafeAssignment. -Lint/AssignmentInCondition: +#inherit_from: .rubocop_todo.yml + +# The behavior of RuboCop can be controlled via the .rubocop.yml +# configuration file. It makes it possible to enable/disable +# certain cops (checks) and to alter their behavior if they accept +# any parameters. The file can be placed either in your home +# directory or in some project directory. +# +# RuboCop will start looking for the configuration file in the directory +# where the inspected file is and continue its way up to the root directory. +# +# See https://docs.rubocop.org/rubocop/configuration +AllCops: + StyleGuideBaseURL: https://rubystyle.guide + TargetRubyVersion: 2.4 Exclude: - - 'lib/puppet-debugger/cli.rb' - - 'lib/puppet-debugger/support.rb' - - 'lib/puppet-debugger/support/input_responders.rb' + - 'spec/fixtures/**/*' + - 'vendor/**/*' + - 'test_matrix.rb' + - 'lib/puppet-debugger/trollop.rb' +Style/ClassAndModuleChildren: + Exclude: + - 'lib/puppet-debugger/monkey_patches.rb' - 'lib/puppet/application/debugger.rb' + - 'spec/spec_helper.rb' +Style/DoubleNegation: + Exclude: + - 'lib/puppet-debugger/debugger_code.rb' -# Offense count: 23 -# Cop supports --auto-correct. +Metrics/MethodLength: + Max: 45 Lint/Debugger: + Enabled: false +Layout/LineLength: + Max: 129 +Style/NumericPredicate: Exclude: - - spec/**/*.rb + - 'spec/**/*' + - lib/puppet-debugger/plugin_test_helper.rb +Metrics/BlockLength: + Max: 277 -Style/NumericPredicate: - Enabled: false -# Offense count: 1 -# Cop supports --auto-correct. -# Configuration parameters: AlignWith, SupportedStyles, AutoCorrect. -# SupportedStyles: start_of_line, def -#Lint/DefEndAlignment: -# Exclude: -# - 'lib/puppet-debugger/support/errors.rb' -# -## Offense count: 1 -#Lint/ElseLayout: -# Exclude: -# - 'lib/puppet-debugger/support/play.rb' -# -## Offense count: 10 -## Cop supports --auto-correct. -## Configuration parameters: AlignWith, SupportedStyles, AutoCorrect. -## SupportedStyles: keyword, variable, start_of_line -#Lint/EndAlignment: -# Exclude: -# - 'lib/puppet-debugger/code/code_file.rb' -# - 'lib/puppet-debugger/code/code_range.rb' -# - 'lib/puppet-debugger/code/loc.rb' -# - 'lib/trollop.rb' -# -## Offense count: 3 -#Lint/HandleExceptions: -# Exclude: -# - 'lib/puppet-debugger/support.rb' -# - 'lib/trollop.rb' -# -## Offense count: 1 -#Lint/NestedMethodDefinition: -# Exclude: -# - 'lib/trollop.rb' -# -## Offense count: 1 -#Lint/ShadowingOuterLocalVariable: -# Exclude: -# - 'lib/puppet-debugger/support/input_responders.rb' -# -## Offense count: 18 -#Lint/UselessAssignment: -# Exclude: -# - 'lib/puppet-debugger/support.rb' -# - 'lib/puppet-debugger/support/environment.rb' -# - 'lib/puppet-debugger/support/errors.rb' -# - 'lib/puppet-debugger/support/functions.rb' -# - 'lib/puppet-debugger/support/input_responders.rb' -# - 'lib/puppet-debugger/support/node.rb' -# - 'lib/puppet-debugger/support/play.rb' -# - 'lib/puppet/application/debugger.rb' -# - 'spec/support_spec.rb' -# -## Offense count: 22 -#Metrics/AbcSize: -# Max: 150 -# -## Offense count: 4 -## Configuration parameters: CountComments. -#Metrics/BlockLength: -# Max: 31 -# -## Offense count: 3 -#Metrics/BlockNesting: -# Max: 6 -# -## Offense count: 4 -## Configuration parameters: CountComments. -#Metrics/ClassLength: -# Max: 491 -# -## Offense count: 12 -#Metrics/CyclomaticComplexity: -# Max: 59 -# -## Offense count: 152 -## Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives. -## URISchemes: http, https -# Metrics/LineLength: -# Max: 586 - -## Offense count: 30 -## Configuration parameters: CountComments. -#Metrics/MethodLength: -# Max: 100 -## Offense count: 2 -## Configuration parameters: CountComments. -#Metrics/ModuleLength: -# Max: 115 -# -## Offense count: 10 -#Metrics/PerceivedComplexity: -# Max: 46 -# -## Offense count: 1 -## Cop supports --auto-correct. -#Performance/RedundantMatch: -# Exclude: -# - 'lib/awesome_print/ext/awesome_puppet.rb' -# -## Offense count: 8 -#Style/AccessorMethodName: -# Exclude: -# - 'lib/puppet-debugger/support/compiler.rb' -# - 'lib/puppet-debugger/support/environment.rb' -# - 'lib/puppet-debugger/support/facts.rb' -# - 'lib/puppet-debugger/support/input_responders.rb' -# - 'lib/puppet-debugger/support/node.rb' -# - 'lib/puppet-debugger/support/scope.rb' -# -## Offense count: 2 -## Configuration parameters: EnforcedStyle, SupportedStyles. -## SupportedStyles: nested, compact -#Style/ClassAndModuleChildren: -# Exclude: -# - 'lib/puppet/application/debugger.rb' -# - 'spec/spec_helper.rb' -# -## Offense count: 21 -#Style/Documentation: -# Exclude: -# - 'spec/**/*' -# - 'test/**/*' -# - 'lib/awesome_print/ext/awesome_puppet.rb' -# - 'lib/puppet-debugger/cli.rb' -# - 'lib/puppet-debugger/code/code_file.rb' -# - 'lib/puppet-debugger/support.rb' -# - 'lib/puppet-debugger/support/compiler.rb' -# - 'lib/puppet-debugger/support/environment.rb' -# - 'lib/puppet-debugger/support/errors.rb' -# - 'lib/puppet-debugger/support/facts.rb' -# - 'lib/puppet-debugger/support/functions.rb' -# - 'lib/puppet-debugger/support/input_responders.rb' -# - 'lib/puppet-debugger/support/node.rb' -# - 'lib/puppet-debugger/support/play.rb' -# - 'lib/puppet-debugger/support/scope.rb' -# - 'lib/puppet/application/debugger.rb' -# - 'lib/trollop.rb' -# -## Offense count: 2 -#Style/DoubleNegation: -# Exclude: -# - 'lib/puppet-debugger/debugger_code.rb' -# -## Offense count: 1 -## Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts. -#Style/FileName: -# Exclude: -# - 'lib/puppet-debugger.rb' -# -## Offense count: 11 -## Configuration parameters: MinBodyLength. -#Style/GuardClause: -# Exclude: -# - 'lib/puppet-debugger/cli.rb' -# - 'lib/puppet-debugger/support.rb' -# - 'lib/puppet-debugger/support/input_responders.rb' -# - 'lib/puppet-debugger/support/play.rb' -# - 'lib/trollop.rb' -# - 'puppet-debugger.gemspec' -# -## Offense count: 2 -#Style/IdenticalConditionalBranches: -# Exclude: -# - 'lib/puppet-debugger/support/play.rb' -# -## Offense count: 1 -## Cop supports --auto-correct. -#Style/MethodCallParentheses: -# Exclude: -# - 'spec/support_spec.rb' -# -## Offense count: 2 -#Style/MethodMissing: -# Exclude: -# - 'lib/puppet-debugger/debugger_code.rb' -# - 'lib/trollop.rb' -# -## Offense count: 1 -#Style/MultilineTernaryOperator: -# Exclude: -# - 'lib/puppet/application/debugger.rb' -# -## Offense count: 2 -## Cop supports --auto-correct. -## Configuration parameters: AutoCorrect, EnforcedStyle, SupportedStyles. -## SupportedStyles: predicate, comparison -#Style/NumericPredicate: -# Exclude: -# - 'spec/**/*' -# - 'lib/puppet-debugger/code/code_range.rb' -# -## Offense count: 1 -## Cop supports --auto-correct. -## Configuration parameters: AllowAsExpressionSeparator. -#Style/Semicolon: -# Exclude: -# - 'lib/puppet/application/debugger.rb' -# -## Offense count: 1 -## Cop supports --auto-correct. -## Configuration parameters: AllowForAlignment. -#Style/SpaceAroundOperators: -# Exclude: -# - 'spec/support_spec.rb' +# Layout/EmptyLinesAroundAttributeAccessor: +# Enabled: false +# Layout/SpaceAroundMethodCallOperator: +# Enabled: false +# Lint/DeprecatedOpenSSLConstant: +# Enabled: false +# Lint/MixedRegexpCaptureTypes: +# Enabled: false +# Lint/RaiseException: +# Enabled: false +# Lint/StructNewOverride: +# Enabled: false +# Style/ExponentialNotation: +# Enabled: false +# Style/HashEachMethods: +# Enabled: false +# Style/HashTransformKeys: +# Enabled: false +# Style/HashTransformValues: +# Enabled: false +# Style/RedundantFetchBlock: +# Enabled: false +# Style/RedundantRegexpCharacterClass: +# Enabled: false +# Style/RedundantRegexpEscape: +# Enabled: false +# Style/SlicingWithRange: +# Enabled: false