Files
chromebrew/.rubocop.yml
Satadru Pramanik, DO, MPH, MEng 2f578f414c Adjust linter rule... (#8860)
* chdir before using git

* fix rubocop complaint

* adjust lint rule

* expand logic of path env.d check

* bump
2023-10-31 21:16:27 -05:00

206 lines
3.5 KiB
YAML

---
# The behavior of RuboCop can be controlled via the .rubocop.yml
# configuration file. It makes it possible to enable/disable
# certain cops (checks) and to alter their behavior if they accept
# any parameters. The file can be placed either in your home
# directory or in some project directory.
#
# RuboCop will start looking for the configuration file in the directory
# where the inspected file is and continue its way up to the root directory.
#
# See https://docs.rubocop.org/rubocop/configuration
AllCops:
NewCops: enable
TargetRubyVersion: 3.1
Exclude:
- 'lib/docopt.rb'
# These cops have been temporarily disabled and should be reenabled asap
Security/Eval:
Enabled: false
Naming/ClassAndModuleCamelCase:
# Disable this cop for every file in packages/
Enabled: false
Naming/MethodParameterName:
Enabled: false
Naming/MethodName:
Enabled: false
Naming/VariableName:
Enabled: false
Naming/PredicateName:
Enabled: false
Metrics/AbcSize:
Enabled: false
Metrics/MethodLength:
Enabled: false
Metrics/ModuleLength:
Enabled: false
Metrics/BlockLength:
Enabled: false
Metrics/ClassLength:
Enabled: false
Metrics/CyclomaticComplexity:
Enabled: false
Metrics/PerceivedComplexity:
Enabled: false
Metrics/BlockNesting:
Enabled: false
Metrics/ParameterLists:
Enabled: false
Layout/LineContinuationLeadingSpace:
Enabled: false
Lint/ConstantDefinitionInBlock:
Enabled: false
Lint/EmptyBlock:
Enabled: false
Lint/ImplicitStringConcatenation:
Enabled: false
Lint/UnreachableCode:
Enabled: false
Lint/DuplicateBranch:
Enabled: false
Lint/AssignmentInCondition:
Enabled: false
Lint/LiteralAsCondition:
Enabled: false
Lint/UnderscorePrefixedVariableName:
Enabled: false
Lint/EmptyWhen:
Enabled: false
Lint/UselessAssignment:
Enabled: false
Lint/MissingSuper:
Enabled: false
Lint/ShadowingOuterLocalVariable:
Enabled: false
Lint/SuppressedException:
Enabled: false
Layout/LineLength:
AllowedPatterns:
- '#'
- 'description'
# When this is reenabled, keep the AllowedPatterns configuration
Enabled: false
Layout/HashAlignment:
EnforcedHashRocketStyle:
- separator
EnforcedColonStyle:
- separator
# When this is reenabled, keep the EnforcedHashRocketStyle and EnforcedColonStyle configuration
Enabled: false
# End temporarily disabled cops
Layout/CommentIndentation:
Enabled: false
Layout/EmptyLineAfterGuardClause:
Enabled: false
Layout/FirstHashElementIndentation:
Enabled: false
# EnforcedStyle: consistent
Layout/IndentationStyle:
EnforcedStyle: spaces
Layout/LeadingCommentSpace:
Enabled: false
Layout/SpaceInsideBlockBraces:
Enabled: false
Layout/SpaceInsideParens:
Enabled: false
Layout/TrailingEmptyLines:
Enabled: false
Style/RedundantReturn:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
Style/MutableConstant:
Enabled: false
Style/Documentation:
Enabled: false
Style/GuardClause:
Enabled: false
Style/DocumentDynamicEvalDefinition:
Enabled: false
Style/OptionalBooleanParameter:
Enabled: false
Style/ClassVars:
Enabled: false
Style/GlobalVars:
Enabled: false
Style/FormatStringToken:
Enabled: false
Style/MultilineBlockChain:
Enabled: false
Style/NumericLiterals:
Enabled: false
Style/RedundantCapitalW:
Enabled: false
Style/RedundantLineContinuation:
Enabled: false
Style/RedundantStringEscape:
Enabled: false
Naming/AccessorMethodName:
Enabled: false
Naming/BlockParameterName:
Enabled: false
Naming/VariableNumber:
Enabled: false
Naming/HeredocDelimiterNaming:
Enabled: false