Revision b0bddc2d584cdafa9b8751d30eb494770c801714 authored by Filippo Giunchedi on 06 June 2017, 12:56:49 UTC, committed by Filippo Giunchedi on 06 June 2017, 13:51:22 UTC
Change-Id: I6d3c0200c232536a902716e894686e770ee35ca7
1 parent f928aa5
.rubocop_todo.yml
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2015-11-23 13:21:11 +0100 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: 7
# Configuration parameters: AllowSafeAssignment.
Lint/AssignmentInCondition:
Exclude:
- 'modules/wmflib/lib/hiera/backend/nuyaml_backend.rb'
- 'modules/wmflib/lib/hiera/backend/role_backend.rb'
- 'modules/wmflib/lib/puppet/parser/functions/secret.rb'
# Offense count: 2
Lint/HandleExceptions:
Exclude:
- 'modules/trebuchet/lib/puppet/provider/package/trebuchet.rb'
- 'modules/wmflib/lib/puppet/parser/functions/require_package.rb'
# Offense count: 2
Lint/RescueException:
Exclude:
- 'modules/puppetmaster/lib/puppet/reports/logstash.rb'
- 'modules/puppetmaster/lib/puppet/reports/servermon.rb'
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
Lint/UnusedMethodArgument:
Exclude:
- 'modules/wmflib/lib/hiera/backend/*_backend.rb'
- 'modules/wmflib/lib/hiera/*cache.rb'
# Offense count: 10
Lint/UselessAssignment:
Exclude:
- 'modules/base/files/monitoring/check_puppetrun'
- 'modules/ganeti/lib/facter/ganeti.rb'
- 'modules/puppet_statsd/lib/puppet/reports/statsd.rb'
- 'modules/service/Rakefile'
- 'modules/wmflib/lib/hiera/backend/nuyaml_backend.rb'
- 'modules/wmflib/lib/puppet/parser/functions/validate_array_re.rb'
# Offense count: 187
# Configuration parameters: AllowURI, URISchemes.
Metrics/LineLength:
Max: 159
# Offense count: 1
Style/AsciiComments:
Exclude:
- 'modules/puppetmaster/lib/puppet/reports/logstash.rb'
- 'modules/puppetmaster/lib/puppet/reports/servermon.rb'
# Offense count: 58
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, ProceduralMethods, FunctionalMethods, IgnoredMethods.
Style/BlockDelimiters:
Enabled: false
# Offense count: 4
Style/ClassAndModuleCamelCase:
Exclude:
- 'modules/wmflib/lib/hiera/backend/*_backend.rb'
# Offense count: 4
Style/ClassVars:
Exclude:
- 'modules/labstore/lib/puppet/parser/functions/mount_nfs_volume.rb'
# Offense count: 2
# Cop supports --auto-correct.
Style/ColonMethodCall:
Exclude:
- 'modules/base/lib/facter/physicalcorecount.rb'
- 'modules/puppetmaster/lib/puppet/reports/logstash.rb'
# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerBackticks.
Style/CommandLiteral:
Exclude:
- 'modules/apt/lib/facter/apt.rb'
- 'modules/ganeti/lib/facter/ganeti.rb'
- 'modules/gridengine/lib/puppet/provider/gridengine_resource/parsed.rb'
# Offense count: 1
# Cop supports --auto-correct.
Style/DefWithParentheses:
Exclude:
- 'utils/hiera_lookup'
# Offense count: 16
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/DotPosition:
Enabled: false
# Offense count: 2
# Cop supports --auto-correct.
Style/EmptyLiteral:
Exclude:
- 'modules/admin/lib/puppet/parser/functions/unique_users.rb'
- 'modules/wmflib/lib/puppet/parser/functions/array_concat.rb'
# Offense count: 1
# Configuration parameters: Exclude.
Style/FileName:
Exclude:
- 'modules/bacula/spec/defines/mysql-bpipe_spec.rb'
# Offense count: 1
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/For:
Enabled: false
# Offense count: 80
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/FormatString:
Exclude:
- 'modules/backup/Rakefile'
- 'modules/bacula/Rakefile'
- 'modules/base/Rakefile'
- 'modules/base/lib/facter/lldp.rb'
- 'modules/install_server/Rakefile'
- 'modules/mirrors/Rakefile'
- 'modules/nrpe/Rakefile'
- 'modules/osm/Rakefile'
- 'modules/postgresql/Rakefile'
- 'modules/servermon/Rakefile'
- 'modules/squid3/Rakefile'
- 'modules/strongswan/Rakefile'
- 'modules/wmflib/Rakefile'
# Offense count: 8
# Configuration parameters: AllowedVariables.
Style/GlobalVars:
Exclude:
- 'utils/expanderb.rb'
- 'utils/hiera_lookup'
# Offense count: 375
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues.
Style/HashSyntax:
Enabled: false
# Offense count: 22
# Cop supports --auto-correct.
# Configuration parameters: MaxLineLength.
Style/IfUnlessModifier:
Enabled: false
# Offense count: 276
# Cop supports --auto-correct.
# Configuration parameters: Width.
Style/IndentationWidth:
Enabled: false
# Offense count: 6
# Cop supports --auto-correct.
Style/LeadingCommentSpace:
Exclude:
- 'modules/base/lib/facter/lldp.rb'
- 'modules/base/spec/defines/service_unit_spec.rb'
- 'modules/wmflib/lib/hiera/backend/nuyaml_backend.rb'
- 'modules/wmflib/lib/hiera/backend/proxy_backend.rb'
- 'modules/wmflib/lib/hiera/mwcache.rb'
# Offense count: 15
# Cop supports --auto-correct.
Style/MethodCallParentheses:
Exclude:
- 'modules/base/lib/facter/physicalcorecount.rb'
- 'modules/base/spec/defines/service_unit_spec.rb'
- 'modules/install_server/spec/classes/install_server_preseed_server_spec.rb'
- 'modules/squid3/spec/classes/squid3_spec.rb'
- 'modules/wmflib/lib/puppet/parser/functions/ipresolve.rb'
- 'modules/wmflib/lib/puppet/parser/functions/secret.rb'
- 'modules/wmflib/spec/functions/role_spec.rb'
- 'modules/wmflib/spec/hiera/proxy_backend_spec.rb'
- 'modules/wmflib/spec/hiera/role_backend_spec.rb'
- 'utils/hiera_lookup'
# Offense count: 1
# Cop supports --auto-correct.
Style/MultilineIfThen:
Exclude:
- 'modules/ganeti/lib/facter/ganeti.rb'
# Offense count: 20
# Cop supports --auto-correct.
Style/NegatedIf:
Enabled: false
# Offense count: 1
Style/NestedTernaryOperator:
Exclude:
- 'modules/graphite/lib/puppet/parser/functions/configparser_format.rb'
# Offense count: 6
# Cop supports --auto-correct.
Style/Not:
Exclude:
- 'modules/base/files/monitoring/check_puppetrun'
- 'modules/wmflib/lib/hiera/backend/proxy_backend.rb'
- 'modules/wmflib/lib/puppet/parser/functions/role.rb'
- 'utils/hiera_lookup'
# Offense count: 3
# Cop supports --auto-correct.
Style/NumericLiterals:
MinDigits: 6
# Offense count: 1
# Cop supports --auto-correct.
Style/ParallelAssignment:
Exclude:
- 'modules/wmflib/lib/puppet/parser/functions/to_milliseconds.rb'
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: AllowSafeAssignment.
Style/ParenthesesAroundCondition:
Exclude:
- 'modules/wmflib/lib/puppet/parser/functions/ipresolve.rb'
# Offense count: 2
# Cop supports --auto-correct.
Style/PerlBackrefs:
Exclude:
- 'modules/wmflib/lib/puppet/parser/functions/to_milliseconds.rb'
# Offense count: 2
# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist.
Style/PredicateName:
Exclude:
- 'modules/wmflib/lib/puppet/parser/functions/ipresolve.rb'
# Offense count: 15
# Cop supports --auto-correct.
# Configuration parameters: AllowMultipleReturnValues.
Style/RedundantReturn:
Exclude:
- 'modules/graphite/lib/puppet/parser/functions/configparser_format.rb'
- 'modules/wmflib/lib/hiera/backend/mwyaml_backend.rb'
- 'modules/wmflib/lib/hiera/backend/nuyaml_backend.rb'
- 'modules/wmflib/lib/hiera/backend/role_backend.rb'
- 'modules/wmflib/lib/hiera/mwcache.rb'
- 'modules/wmflib/lib/puppet/parser/functions/ipresolve.rb'
# Offense count: 20
# Cop supports --auto-correct.
Style/RedundantSelf:
Exclude:
- 'modules/puppet_statsd/lib/puppet/reports/statsd.rb'
- 'modules/puppetmaster/lib/puppet/reports/logstash.rb'
- 'modules/puppetmaster/lib/puppet/reports/servermon.rb'
- 'modules/wmflib/lib/hiera/backend/proxy_backend.rb'
# Offense count: 23
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
Style/RegexpLiteral:
Exclude:
- 'modules/bacula/spec/classes/bacula_client_spec.rb'
- 'modules/bacula/spec/classes/bacula_director_spec.rb'
- 'modules/bacula/spec/classes/bacula_storage_spec.rb'
- 'modules/bacula/spec/defines/fileset_spec.rb'
- 'modules/bacula/spec/defines/storage_device_spec.rb'
- 'modules/servermon/spec/classes/servermon_app_spec.rb'
- 'modules/trebuchet/lib/puppet/provider/package/trebuchet.rb'
- 'modules/wmflib/lib/hiera/backend/nuyaml_backend.rb'
- 'modules/wmflib/lib/hiera/backend/role_backend.rb'
- 'utils/hiera_lookup'
# Offense count: 7
# Cop supports --auto-correct.
Style/RescueModifier:
Exclude:
- 'modules/librenms/lib/puppet/parser/functions/phpdump.rb'
- 'modules/wmflib/lib/puppet/parser/functions/ini.rb'
- 'modules/wmflib/lib/puppet/parser/functions/ordered_json.rb'
- 'modules/wmflib/lib/puppet/parser/functions/ordered_yaml.rb'
- 'modules/wmflib/lib/puppet/parser/functions/php_ini.rb'
- 'modules/wmflib/lib/puppet/parser/functions/require_package.rb'
# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: AllowAsExpressionSeparator.
Style/Semicolon:
Exclude:
- 'modules/gridengine/lib/puppet/provider/gridengine_resource/parsed.rb'
- 'modules/wmflib/lib/puppet/parser/functions/ordered_yaml.rb'
# Offense count: 23
# Cop supports --auto-correct.
Style/SpaceAfterComma:
Exclude:
- 'modules/base/lib/facter/labsproject.rb'
- 'modules/base/lib/facter/physicalcorecount.rb'
- 'modules/graphite/lib/puppet/parser/functions/configparser_format.rb'
- 'modules/puppet_statsd/lib/puppet/reports/statsd.rb'
- 'modules/puppetmaster/lib/puppet/reports/logstash.rb'
- 'modules/strongswan/spec/functions/ipresolve_spec.rb'
- 'modules/wmflib/lib/hiera/backend/mwyaml_backend.rb'
- 'modules/wmflib/lib/hiera/backend/nuyaml_backend.rb'
- 'modules/wmflib/lib/hiera/backend/proxy_backend.rb'
- 'modules/wmflib/lib/hiera/backend/role_backend.rb'
- 'modules/wmflib/lib/hiera/mwcache.rb'
- 'modules/wmflib/lib/puppet/parser/functions/ini.rb'
- 'modules/wmflib/spec/hiera/proxy_backend_spec.rb'
- 'modules/wmflib/spec/hiera/role_backend_spec.rb'
# Offense count: 6
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/SpaceAroundEqualsInParameterDefault:
Enabled: false
# Offense count: 11
# Cop supports --auto-correct.
# Configuration parameters: MultiSpaceAllowedForOperators.
Style/SpaceAroundOperators:
Exclude:
- 'modules/librenms/lib/puppet/parser/functions/phpdump.rb'
- 'modules/wmflib/lib/hiera/backend/proxy_backend.rb'
- 'modules/wmflib/spec/hiera/role_backend_spec.rb'
# Offense count: 39
# Cop supports --auto-correct.
Style/SpaceInsideBrackets:
Enabled: false
# Offense count: 36
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles.
Style/SpaceInsideHashLiteralBraces:
Enabled: false
# Offense count: 7
# Cop supports --auto-correct.
Style/SpaceInsideParens:
Exclude:
- 'modules/graphite/lib/puppet/parser/functions/configparser_format.rb'
- 'utils/expanderb.rb'
# Offense count: 4
# Cop supports --auto-correct.
Style/SpecialGlobalVars:
Exclude:
- 'utils/expanderb.rb'
# Offense count: 188
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/StringLiterals:
Enabled: false
# Offense count: 117
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
Style/TrailingComma:
Enabled: false
# Offense count: 1
Style/UnlessElse:
Exclude:
- 'modules/base/files/monitoring/check_puppetrun'
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...