2016-09-17 16:13:48 +01:00
|
|
|
# This configuration was generated by
|
2016-09-20 22:03:08 +02:00
|
|
|
# `rubocop --auto-gen-config --exclude-limit 100`
|
|
|
|
|
# on 2016-09-20 22:03:20 +0200 using RuboCop version 0.43.0.
|
2016-09-17 16:13:48 +01:00
|
|
|
# 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: 4
|
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
|
# Configuration parameters: AlignWith, SupportedStyles, AutoCorrect.
|
|
|
|
|
# SupportedStyles: keyword, variable, start_of_line
|
|
|
|
|
Lint/EndAlignment:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'Homebrew/download_strategy.rb'
|
|
|
|
|
- 'Homebrew/keg.rb'
|
|
|
|
|
- 'Homebrew/os/mac/cctools_mach.rb'
|
|
|
|
|
|
|
|
|
|
# Offense count: 18
|
|
|
|
|
Lint/HandleExceptions:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'Homebrew/cmd/install.rb'
|
|
|
|
|
- 'Homebrew/cmd/reinstall.rb'
|
|
|
|
|
- 'Homebrew/cmd/tap.rb'
|
|
|
|
|
- 'Homebrew/cmd/update-report.rb'
|
|
|
|
|
- 'Homebrew/cmd/upgrade.rb'
|
|
|
|
|
- 'Homebrew/cmd/uses.rb'
|
|
|
|
|
- 'Homebrew/descriptions.rb'
|
|
|
|
|
- 'Homebrew/dev-cmd/test-bot.rb'
|
|
|
|
|
- 'Homebrew/diagnostic.rb'
|
|
|
|
|
- 'Homebrew/extend/ENV/super.rb'
|
|
|
|
|
- 'Homebrew/extend/pathname.rb'
|
|
|
|
|
- 'Homebrew/formula.rb'
|
|
|
|
|
- 'Homebrew/formula_versions.rb'
|
|
|
|
|
- 'Homebrew/test/test_ENV.rb'
|
|
|
|
|
|
|
|
|
|
# Offense count: 3
|
|
|
|
|
Lint/IneffectiveAccessModifier:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'Homebrew/formula.rb'
|
|
|
|
|
- 'Homebrew/version.rb'
|
|
|
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
|
Lint/Loop:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'Homebrew/patch.rb'
|
|
|
|
|
|
|
|
|
|
# Offense count: 6
|
|
|
|
|
Lint/NestedMethodDefinition:
|
|
|
|
|
Exclude:
|
2016-09-18 14:27:09 +01:00
|
|
|
- 'Homebrew/test/**/*'
|
2016-09-17 16:13:48 +01:00
|
|
|
- 'Homebrew/dev-cmd/bottle.rb'
|
|
|
|
|
- 'Homebrew/dev-cmd/test-bot.rb'
|
|
|
|
|
|
|
|
|
|
# Offense count: 2
|
|
|
|
|
Lint/NonLocalExitFromIterator:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'Homebrew/extend/pathname.rb'
|
|
|
|
|
|
|
|
|
|
# Offense count: 28
|
|
|
|
|
Lint/RescueException:
|
2016-09-18 14:27:09 +01:00
|
|
|
Exclude:
|
|
|
|
|
- 'Homebrew/brew.rb'
|
|
|
|
|
- 'Homebrew/build.rb'
|
|
|
|
|
- 'Homebrew/cmd/fetch.rb'
|
|
|
|
|
- 'Homebrew/cmd/reinstall.rb'
|
|
|
|
|
- 'Homebrew/cmd/update-report.rb'
|
|
|
|
|
- 'Homebrew/debrew.rb'
|
|
|
|
|
- 'Homebrew/dev-cmd/pull.rb'
|
|
|
|
|
- 'Homebrew/dev-cmd/test.rb'
|
|
|
|
|
- 'Homebrew/formula.rb'
|
|
|
|
|
- 'Homebrew/formula_installer.rb'
|
|
|
|
|
- 'Homebrew/migrator.rb'
|
|
|
|
|
- 'Homebrew/postinstall.rb'
|
|
|
|
|
- 'Homebrew/readall.rb'
|
|
|
|
|
- 'Homebrew/test.rb'
|
|
|
|
|
- 'Homebrew/test/test_ENV.rb'
|
|
|
|
|
- 'Homebrew/utils/fork.rb'
|
2016-09-17 16:13:48 +01:00
|
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
|
Lint/ShadowedException:
|
|
|
|
|
Exclude:
|
2016-09-20 22:03:08 +02:00
|
|
|
- 'Homebrew/utils/fork.rb'
|
2016-09-17 16:13:48 +01:00
|
|
|
|
|
|
|
|
# Offense count: 18
|
|
|
|
|
Metrics/BlockNesting:
|
|
|
|
|
Max: 5
|
|
|
|
|
|
|
|
|
|
# Offense count: 20
|
|
|
|
|
# Configuration parameters: CountComments.
|
|
|
|
|
Metrics/ModuleLength:
|
2016-09-20 22:03:08 +02:00
|
|
|
Max: 373
|
2016-09-17 16:13:48 +01:00
|
|
|
|
2016-09-20 22:03:08 +02:00
|
|
|
# Offense count: 2
|
2016-09-17 16:13:48 +01:00
|
|
|
# Configuration parameters: CountKeywordArgs.
|
|
|
|
|
Metrics/ParameterLists:
|
|
|
|
|
Max: 6
|
|
|
|
|
|
|
|
|
|
# Offense count: 2
|
|
|
|
|
Performance/FixedSize:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'Homebrew/dev-cmd/audit.rb'
|
|
|
|
|
- 'Homebrew/dev-cmd/bottle.rb'
|
|
|
|
|
|
|
|
|
|
# Offense count: 8
|
|
|
|
|
Style/AccessorMethodName:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'Homebrew/download_strategy.rb'
|
|
|
|
|
- 'Homebrew/extend/ENV/std.rb'
|
|
|
|
|
- 'Homebrew/formula.rb'
|
|
|
|
|
- 'Homebrew/formula_lock.rb'
|
|
|
|
|
- 'Homebrew/formulary.rb'
|
|
|
|
|
- 'Homebrew/migrator.rb'
|
|
|
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
|
|
|
# SupportedStyles: prefer_alias, prefer_alias_method
|
|
|
|
|
Style/Alias:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'Homebrew/blacklist.rb'
|
|
|
|
|
|
2016-09-20 22:03:08 +02:00
|
|
|
# Offense count: 1
|
2016-09-17 16:13:48 +01:00
|
|
|
Style/CaseEquality:
|
2016-09-18 14:27:09 +01:00
|
|
|
Exclude:
|
|
|
|
|
- 'Homebrew/compilers.rb'
|
2016-09-17 16:13:48 +01:00
|
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
|
# Configuration parameters: IndentWhenRelativeTo, SupportedStyles, IndentOneStep, IndentationWidth.
|
|
|
|
|
# SupportedStyles: case, end
|
|
|
|
|
Style/CaseIndentation:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'Homebrew/keg.rb'
|
|
|
|
|
|
|
|
|
|
# Offense count: 11
|
|
|
|
|
Style/ClassVars:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'Homebrew/cleanup.rb'
|
|
|
|
|
- 'Homebrew/dev-cmd/audit.rb'
|
|
|
|
|
- 'Homebrew/dev-cmd/test-bot.rb'
|
|
|
|
|
- 'Homebrew/formula_installer.rb'
|
|
|
|
|
- 'Homebrew/test/testing_env.rb'
|
|
|
|
|
- 'Homebrew/utils.rb'
|
|
|
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
|
Style/ConstantName:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'Homebrew/os/mac.rb'
|
|
|
|
|
|
|
|
|
|
# Offense count: 10
|
|
|
|
|
Style/DoubleNegation:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'Homebrew/os/mac/cctools_keg.rb'
|
|
|
|
|
- 'Homebrew/os/mac/ruby_keg.rb'
|
|
|
|
|
- 'Homebrew/os/mac/xcode.rb'
|
|
|
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
|
|
|
# SupportedStyles: format, sprintf, percent
|
|
|
|
|
Style/FormatString:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'Homebrew/formula.rb'
|
|
|
|
|
|
|
|
|
|
# Offense count: 13
|
|
|
|
|
# Configuration parameters: AllowedVariables.
|
|
|
|
|
Style/GlobalVars:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'Homebrew/diagnostic.rb'
|
|
|
|
|
- 'Homebrew/utils.rb'
|
|
|
|
|
|
2016-09-20 22:03:08 +02:00
|
|
|
# Offense count: 97
|
|
|
|
|
# Configuration parameters: MinBodyLength.
|
|
|
|
|
Style/GuardClause:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'Taps/**/*'
|
|
|
|
|
- 'Homebrew/brew.rb'
|
|
|
|
|
- 'Homebrew/build.rb'
|
|
|
|
|
- 'Homebrew/caveats.rb'
|
|
|
|
|
- 'Homebrew/cleaner.rb'
|
|
|
|
|
- 'Homebrew/cmd/cleanup.rb'
|
|
|
|
|
- 'Homebrew/cmd/diy.rb'
|
|
|
|
|
- 'Homebrew/cmd/info.rb'
|
|
|
|
|
- 'Homebrew/cmd/install.rb'
|
|
|
|
|
- 'Homebrew/cmd/reinstall.rb'
|
|
|
|
|
- 'Homebrew/cmd/search.rb'
|
|
|
|
|
- 'Homebrew/cmd/update-report.rb'
|
|
|
|
|
- 'Homebrew/dependency_collector.rb'
|
|
|
|
|
- 'Homebrew/dev-cmd/audit.rb'
|
|
|
|
|
- 'Homebrew/dev-cmd/bottle.rb'
|
|
|
|
|
- 'Homebrew/dev-cmd/pull.rb'
|
|
|
|
|
- 'Homebrew/dev-cmd/test-bot.rb'
|
|
|
|
|
- 'Homebrew/download_strategy.rb'
|
|
|
|
|
- 'Homebrew/extend/ARGV.rb'
|
|
|
|
|
- 'Homebrew/extend/ENV/shared.rb'
|
|
|
|
|
- 'Homebrew/extend/ENV/std.rb'
|
|
|
|
|
- 'Homebrew/extend/ENV/super.rb'
|
|
|
|
|
- 'Homebrew/extend/fileutils.rb'
|
|
|
|
|
- 'Homebrew/extend/os/mac/extend/ENV/std.rb'
|
|
|
|
|
- 'Homebrew/extend/os/mac/formula_cellar_checks.rb'
|
|
|
|
|
- 'Homebrew/extend/os/mac/utils/bottles.rb'
|
|
|
|
|
- 'Homebrew/extend/string.rb'
|
|
|
|
|
- 'Homebrew/formula.rb'
|
|
|
|
|
- 'Homebrew/formula_installer.rb'
|
|
|
|
|
- 'Homebrew/formula_lock.rb'
|
|
|
|
|
- 'Homebrew/formulary.rb'
|
|
|
|
|
- 'Homebrew/keg.rb'
|
|
|
|
|
- 'Homebrew/migrator.rb'
|
|
|
|
|
- 'Homebrew/os/mac/xcode.rb'
|
|
|
|
|
- 'Homebrew/patch.rb'
|
|
|
|
|
- 'Homebrew/requirement.rb'
|
|
|
|
|
- 'Homebrew/tap.rb'
|
|
|
|
|
- 'Homebrew/test/test_cmd_testbot.rb'
|
|
|
|
|
- 'Homebrew/test/test_integration_cmds.rb'
|
|
|
|
|
- 'Homebrew/test/testing_env.rb'
|
|
|
|
|
- 'Homebrew/utils.rb'
|
|
|
|
|
- 'Homebrew/utils/popen.rb'
|
|
|
|
|
- 'Homebrew/version.rb'
|
|
|
|
|
|
2016-09-17 16:13:48 +01:00
|
|
|
# Offense count: 2
|
|
|
|
|
Style/IdenticalConditionalBranches:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'Homebrew/formula_lock.rb'
|
|
|
|
|
|
2016-09-20 22:03:08 +02:00
|
|
|
# Offense count: 52
|
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
|
# Configuration parameters: MaxLineLength.
|
|
|
|
|
Style/IfUnlessModifier:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'Taps/**/*'
|
|
|
|
|
- 'Homebrew/dev-cmd/audit.rb'
|
|
|
|
|
- 'Homebrew/dev-cmd/bottle.rb'
|
|
|
|
|
- 'Homebrew/dev-cmd/edit.rb'
|
|
|
|
|
- 'Homebrew/dev-cmd/mirror.rb'
|
|
|
|
|
- 'Homebrew/dev-cmd/pull.rb'
|
|
|
|
|
- 'Homebrew/dev-cmd/test-bot.rb'
|
|
|
|
|
- 'Homebrew/extend/ENV/std.rb'
|
|
|
|
|
- 'Homebrew/extend/ENV/super.rb'
|
|
|
|
|
- 'Homebrew/extend/os/blacklist.rb'
|
|
|
|
|
- 'Homebrew/extend/os/bottles.rb'
|
|
|
|
|
- 'Homebrew/extend/os/cleaner.rb'
|
|
|
|
|
- 'Homebrew/extend/os/development_tools.rb'
|
|
|
|
|
- 'Homebrew/extend/os/diagnostic.rb'
|
|
|
|
|
- 'Homebrew/extend/os/emoji.rb'
|
|
|
|
|
- 'Homebrew/extend/os/extend/ENV/shared.rb'
|
|
|
|
|
- 'Homebrew/extend/os/extend/ENV/std.rb'
|
|
|
|
|
- 'Homebrew/extend/os/extend/ENV/super.rb'
|
|
|
|
|
- 'Homebrew/extend/os/formula_cellar_checks.rb'
|
|
|
|
|
- 'Homebrew/extend/os/keg_relocate.rb'
|
|
|
|
|
- 'Homebrew/extend/os/mac/extend/ENV/shared.rb'
|
|
|
|
|
- 'Homebrew/extend/os/system_config.rb'
|
|
|
|
|
- 'Homebrew/formula.rb'
|
|
|
|
|
- 'Homebrew/formula_installer.rb'
|
|
|
|
|
- 'Homebrew/formula_versions.rb'
|
|
|
|
|
- 'Homebrew/formulary.rb'
|
|
|
|
|
- 'Homebrew/language/haskell.rb'
|
|
|
|
|
- 'Homebrew/migrator.rb'
|
|
|
|
|
- 'Homebrew/os/mac/cctools_mach.rb'
|
|
|
|
|
- 'Homebrew/tab.rb'
|
|
|
|
|
- 'Homebrew/utils/git.rb'
|
|
|
|
|
|
|
|
|
|
# Offense count: 2
|
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
|
# Configuration parameters: SupportedStyles, IndentationWidth.
|
|
|
|
|
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
|
|
|
|
|
Style/IndentArray:
|
|
|
|
|
EnforcedStyle: special_inside_parentheses
|
|
|
|
|
|
2016-09-17 16:13:48 +01:00
|
|
|
# Offense count: 5
|
|
|
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
|
|
|
# SupportedStyles: snake_case, camelCase
|
|
|
|
|
Style/MethodName:
|
|
|
|
|
Exclude:
|
2016-09-18 14:27:09 +01:00
|
|
|
- 'Homebrew/compat/**/*'
|
2016-09-17 16:13:48 +01:00
|
|
|
- 'Homebrew/cleanup.rb'
|
|
|
|
|
- 'Homebrew/diagnostic.rb'
|
|
|
|
|
- 'Homebrew/formula_cellar_checks.rb'
|
|
|
|
|
- 'Homebrew/formula_installer.rb'
|
|
|
|
|
- 'Homebrew/os/mac/cctools_mach.rb'
|
|
|
|
|
|
|
|
|
|
# Offense count: 7
|
|
|
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
|
|
|
# SupportedStyles: module_function, extend_self
|
|
|
|
|
Style/ModuleFunction:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'Homebrew/global.rb'
|
|
|
|
|
- 'Homebrew/os/mac.rb'
|
|
|
|
|
- 'Homebrew/os/mac/xcode.rb'
|
|
|
|
|
- 'Homebrew/os/mac/xquartz.rb'
|
|
|
|
|
- 'Homebrew/utils/github.rb'
|
|
|
|
|
- 'Homebrew/utils/json.rb'
|
|
|
|
|
|
|
|
|
|
# Offense count: 8
|
|
|
|
|
Style/MultilineBlockChain:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'Homebrew/cmd/search.rb'
|
|
|
|
|
- 'Homebrew/dev-cmd/aspell-dictionaries.rb'
|
|
|
|
|
- 'Homebrew/dev-cmd/audit.rb'
|
|
|
|
|
- 'Homebrew/dev-cmd/man.rb'
|
|
|
|
|
- 'Homebrew/diagnostic.rb'
|
|
|
|
|
- 'Homebrew/test/test_patching.rb'
|
|
|
|
|
|
|
|
|
|
# Offense count: 4
|
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
|
Style/MutableConstant:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'Homebrew/dependency_collector.rb'
|
|
|
|
|
- 'Homebrew/formulary.rb'
|
|
|
|
|
- 'Homebrew/tab.rb'
|
|
|
|
|
- 'Homebrew/tap.rb'
|
|
|
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
|
# Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles.
|
|
|
|
|
# SupportedStyles: skip_modifier_ifs, always
|
|
|
|
|
Style/Next:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'Homebrew/dev-cmd/test-bot.rb'
|
|
|
|
|
|
2016-09-20 22:03:08 +02:00
|
|
|
# Offense count: 1
|
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
|
Style/NumericLiterals:
|
|
|
|
|
MinDigits: 6
|
|
|
|
|
|
2016-09-17 16:13:48 +01:00
|
|
|
# Offense count: 9
|
|
|
|
|
Style/OpMethod:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'Homebrew/compilers.rb'
|
|
|
|
|
- 'Homebrew/dependencies.rb'
|
|
|
|
|
- 'Homebrew/install_renamed.rb'
|
|
|
|
|
- 'Homebrew/options.rb'
|
|
|
|
|
|
|
|
|
|
# Offense count: 4
|
|
|
|
|
# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist.
|
|
|
|
|
# NamePrefix: is_, has_, have_
|
|
|
|
|
# NamePrefixBlacklist: is_, has_, have_
|
|
|
|
|
# NameWhitelist: is_a?
|
|
|
|
|
Style/PredicateName:
|
|
|
|
|
Exclude:
|
2016-09-18 14:27:09 +01:00
|
|
|
- 'Homebrew/compat/**/*'
|
2016-09-17 16:13:48 +01:00
|
|
|
- 'Homebrew/download_strategy.rb'
|
|
|
|
|
- 'Homebrew/hardware.rb'
|
|
|
|
|
|
|
|
|
|
# Offense count: 7
|
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
|
|
|
|
|
# SupportedStyles: slashes, percent_r, mixed
|
|
|
|
|
Style/RegexpLiteral:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'Homebrew/diagnostic.rb'
|
|
|
|
|
- 'Homebrew/keg.rb'
|
|
|
|
|
- 'Homebrew/version.rb'
|
|
|
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
|
# Configuration parameters: AllowAsExpressionSeparator.
|
|
|
|
|
Style/Semicolon:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'Homebrew/descriptions.rb'
|
|
|
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
|
# Configuration parameters: Methods.
|
|
|
|
|
# Methods: {"reduce"=>["a", "e"]}, {"inject"=>["a", "e"]}
|
|
|
|
|
Style/SingleLineBlockParams:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'Homebrew/diagnostic.rb'
|
2016-09-20 22:03:08 +02:00
|
|
|
|
|
|
|
|
# Offense count: 2
|
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
|
# Configuration parameters: SupportedStyles.
|
|
|
|
|
# SupportedStyles: use_perl_names, use_english_names
|
|
|
|
|
Style/SpecialGlobalVars:
|
|
|
|
|
EnforcedStyle: use_perl_names
|
|
|
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowSafeAssignment.
|
|
|
|
|
# SupportedStyles: require_parentheses, require_no_parentheses
|
|
|
|
|
Style/TernaryParentheses:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'Homebrew/formula.rb'
|