brew/Library/Homebrew/.rubocop.yml
Mike McQuaid f39ab585b9
Further adjust HOMEBREW_AUTO_UPDATE_SECS
Add another case to update once an hour when developer commands have
been run.
2023-02-15 17:37:12 +00:00

92 lines
1.7 KiB
YAML

inherit_from:
- ../.rubocop_rspec.yml
Homebrew/MoveToExtendOS:
Enabled: true
Exclude:
- "{extend,test,requirements}/**/*"
- "os.rb"
# make rspec formatting more flexible
Layout/MultilineMethodCallIndentation:
Exclude:
- "**/*_spec.rb"
# `formula do` uses nested method definitions
Lint/NestedMethodDefinition:
Exclude:
- "test/**/*"
# TODO: Try to bring down all metrics maximums.
Metrics/AbcSize:
Max: 241
Metrics/BlockLength:
Max: 86
Exclude:
# TODO: extract more of the bottling logic
- "dev-cmd/bottle.rb"
- "test/**/*"
- "cmd/install.rb"
Metrics/BlockNesting:
Max: 5
Metrics/ClassLength:
Max: 736
Exclude:
- "formula.rb"
- "formula_installer.rb"
Metrics/CyclomaticComplexity:
Max: 68
Metrics/PerceivedComplexity:
Max: 84
Metrics/MethodLength:
Max: 232
Metrics/ModuleLength:
Max: 481
Exclude:
# TODO: extract more of the bottling logic
- "dev-cmd/bottle.rb"
# TODO: try break this down
- "utils/github.rb"
- "test/**/*"
Naming/PredicateName:
# Can't rename these.
AllowedMethods:
- is_a?
- is_32_bit?
- is_64_bit?
Style/Documentation:
AllowedConstants:
- Homebrew
Exclude:
- "extend/**/*.rb"
- "test/**/*.rb"
- "cask/macos.rb"
- "cli/args.rb"
- "cli/parser.rb"
- "cmd/list.rb"
- "cmd/update-report.rb"
- "dev-cmd/irb.rb"
- "dev-cmd/pr-pull.rb"
- "keg_relocate.rb"
- "os/mac/keg.rb"
- "software_spec.rb"
- "utils.rb"
- "utils/fork.rb"
- "utils/git_repository.rb"
- "utils/popen.rb"
- "utils/shell.rb"
Style/HashAsLastArrayItem:
Exclude:
- "test/utils/spdx_spec.rb"
Style/BlockDelimiters:
BracesRequiredMethods:
- "sig"
Bundler/GemFilename:
Exclude:
- "utils/gems.rb"