Files
chromebrew/.rubocop.yml
Maximilian Downey Twiss 33901368d7 Enable more rubocop cops (#9980)
* Remove self.check in python3.rb as tests were not actuallly being run

* Enable Lint/ImplicitStringConcatenation cop

* Enable Layout/CommentIndentation cop

* Remove unnecessary configuration of Layout/IndentationStyle to EnforcedStyle: spaces, as this is already the default

* Enable Layout/LeadingCommentSpace cop

* Enable Layout/SpaceInsideBlockBraces cop

* Enable Layout/SpaceInsideParens cop

* Enable Layout/TrailingEmptyLines cop

* Enable Lint/LiteralAsCondition cop

* Document the current issue stopping us from enabling Style/OptionalBooleanParameter

* Stop downloading our rubocop config when installing ruby_rubocop
2024-06-17 16:19:11 -04:00

119 lines
2.3 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.3
Exclude:
- 'lib/docopt.rb'
# These cops have been temporarily disabled and should be reenabled asap
Security/Eval:
Enabled: false
Lint/ShadowingOuterLocalVariable:
Enabled: false
Lint/SuppressedException:
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/EmptyLineAfterGuardClause:
Enabled: false
Layout/FirstHashElementIndentation:
Enabled: false
# EnforcedStyle: consistent
Layout/LineLength:
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
# https://github.com/rubocop/rubocop/issues/12132
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
Metrics:
Enabled: false
Naming/AccessorMethodName:
Enabled: false
Naming/BlockParameterName:
Enabled: false
Naming/ClassAndModuleCamelCase:
Exclude:
- 'packages/*'
Naming/VariableName:
EnforcedStyle: snake_case
# Allow variable names which are in all caps (with optional numbers and underscores)
AllowedPatterns:
- '^@?[A-Z0-9_]+$'
Naming/VariableNumber:
Enabled: false
Naming/HeredocDelimiterNaming:
Enabled: false