Files
chromebrew/.rubocop.yml
SupeChicken666 9f77502974 Reimplementing #8890 (lib/const: Simplify + cleanup) (#8901)
* lib/const: Simplify + cleanup

* Fix nil issue

* Update const.rb

* Always convert result to boolean

* Always convert result to boolean

* Use File.join to prevent duplicate slashes

* rubocop: Disable `Lint/RedundantSafeNavigation` rule

* ruby_rubocop: Update checksum

* Fix logic

* Change `CREW_DLL_PREFIX` to `CREW_WINE_PREFIX`

* Use `&&` to concatenate commands

* Update const.rb

* Remove redundant `nil`

* Bump version

* Align + more cleanup

* Don't use ENV.fetch when default value is not needed

---------

Co-authored-by: Satadru Pramanik, DO, MPH, MEng <satadru@gmail.com>
2023-11-08 10:24:46 -05:00

209 lines
3.6 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
Lint/RedundantSafeNavigation:
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