Skip to content

Commit

Permalink
.rubocop.yml: update to match main configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
BrewTestBot committed May 24, 2024
1 parent 57ed617 commit 661894b
Showing 1 changed file with 76 additions and 91 deletions.
167 changes: 76 additions & 91 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,95 +1,80 @@
require:
- rubocop-performance
inherit_from:
- ../.rubocop.yml

AllCops:
TargetRubyVersion: 3.3
NewCops: enable

Layout/CaseIndentation:
EnforcedStyle: end

Layout/EndAlignment:
EnforcedStyleAlignWith: start_of_line

Layout/FirstArrayElementIndentation:
EnforcedStyle: consistent

Layout/FirstHashElementIndentation:
EnforcedStyle: consistent

Layout/HashAlignment:
EnforcedHashRocketStyle: table
EnforcedColonStyle: table

Layout/LineLength:
Max: 118

Metrics/AbcSize:
Max: 150

Metrics/BlockLength:
Max: 100

Metrics/ClassLength:
Max: 500

Metrics/CyclomaticComplexity:
Max: 30

Metrics/PerceivedComplexity:
Max: 30

Metrics/MethodLength:
Max: 100

Metrics/ParameterLists:
CountKeywordArgs: false

Style/AndOr:
EnforcedStyle: always

Style/AutoResourceCleanup:
Enabled: true

Style/CollectionMethods:
Enabled: true

Style/MutableConstant:
EnforcedStyle: strict

Style/NumericLiterals:
Enabled: false

Style/RescueStandardError:
Enabled: false

Style/StderrPuts:
Bundler/GemFilename:
Enabled: false

Style/StringLiterals:
EnforcedStyle: double_quotes

Style/StringLiteralsInInterpolation:
EnforcedStyle: double_quotes

Style/StringMethods:
Enabled: true

Style/SymbolArray:
EnforcedStyle: brackets

Style/TernaryParentheses:
EnforcedStyle: require_parentheses_when_complex

Style/TrailingCommaInArguments:
EnforcedStyleForMultiline: comma

Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: comma

Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: comma

Style/UnlessLogicalOperators:
Homebrew/MoveToExtendOS:
Enabled: true
EnforcedStyle: forbid_logical_operators
Exclude:
- "{extend,test,requirements}/**/*"
- "os.rb"

Naming/PredicateName:
inherit_mode:
merge:
- AllowedMethods
AllowedMethods:
- is_32_bit?
- is_64_bit?

# Only enforce documentation for public APIs.
# Checked by the tests.yml syntax job
Style/Documentation:
AllowedConstants:
- Homebrew
Include:
- cask/cask.rb
- cask/dsl.rb
- cask/dsl/version.rb
- cask/url.rb
- development_tools.rb
- download_strategy.rb
- extend/ENV/super.rb
- extend/kernel.rb
- extend/pathname.rb
- formula.rb
- formula_assertions.rb
- formula_free_port.rb
- language/go.rb
- language/java.rb
- language/node.rb
- language/perl.rb
- language/python.rb
- livecheck/strategy/apache.rb
- livecheck/strategy/bitbucket.rb
- livecheck/strategy/cpan.rb
- livecheck/strategy/crate.rb
- livecheck/strategy/extract_plist.rb
- livecheck/strategy/git.rb
- livecheck/strategy/github_latest.rb
- livecheck/strategy/github_releases.rb
- livecheck/strategy/gnome.rb
- livecheck/strategy/gnu.rb
- livecheck/strategy/hackage.rb
- livecheck/strategy/json.rb
- livecheck/strategy/launchpad.rb
- livecheck/strategy/npm.rb
- livecheck/strategy/page_match.rb
- livecheck/strategy/pypi.rb
- livecheck/strategy/sourceforge.rb
- livecheck/strategy/sparkle.rb
- livecheck/strategy/xml.rb
- livecheck/strategy/xorg.rb
- livecheck/strategy/yaml.rb
- os.rb
- resource.rb
- utils/inreplace.rb
- utils/shebang.rb
- utils/string_inreplace_extension.rb
- version.rb
- tap.rb

Homebrew/NegateInclude:
Exclude:
# YARD runs stand-alone.
- yard/docstring_parser.rb

Style/DocumentationMethod:
Include:
- "formula.rb"

0 comments on commit 661894b

Please sign in to comment.