From d2eb9db380510cb6cb94614085ea3d3fc2ec82ab Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Fri, 24 May 2024 14:24:53 +0000 Subject: [PATCH] .rubocop.yml: update to match main configuration --- .rubocop.yml | 161 ++++++++++++++++++++++++--------------------------- 1 file changed, 77 insertions(+), 84 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index fdf35a6..a35001a 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,87 +1,80 @@ -require: - - rubocop-performance - - rubocop-rake - - rubocop-rspec +inherit_from: + - ../.rubocop.yml -AllCops: - NewCops: enable +Bundler/GemFilename: + Enabled: false -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: 60 - -Metrics/BlockLength: - Max: 50 - -Metrics/ClassLength: - Max: 500 - -Metrics/CyclomaticComplexity: - Max: 20 - -Metrics/PerceivedComplexity: - Max: 20 - -Metrics/MethodLength: - Max: 50 - -Metrics/ParameterLists: - CountKeywordArgs: false - -Style/AndOr: - EnforcedStyle: always - -Style/AutoResourceCleanup: - Enabled: true - -Style/CollectionMethods: - Enabled: true - -Style/MutableConstant: - EnforcedStyle: strict - -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"