mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2025-12-23 22:18:36 -05:00
* Speed up precommit hook by only checking staged files with eslint and using eslint cache * Linting test * Add rubocop cache to gitignore * Try to speed up flow
95 lines
1.7 KiB
YAML
95 lines
1.7 KiB
YAML
AllCops:
|
|
NewCops: enable
|
|
UseCache: true
|
|
CacheRootDirectory: tmp/rubocop_cache
|
|
MaxFilesInCache: 5000
|
|
|
|
Layout/ArgumentAlignment:
|
|
EnforcedStyle: with_fixed_indentation
|
|
IndentationWidth: 2
|
|
|
|
Layout/CaseIndentation:
|
|
EnforcedStyle: end
|
|
|
|
Layout/EndAlignment:
|
|
EnforcedStyleAlignWith: start_of_line
|
|
|
|
Layout/DotPosition:
|
|
EnforcedStyle: trailing
|
|
|
|
Layout/LineEndStringConcatenationIndentation:
|
|
EnforcedStyle: indented
|
|
|
|
Layout/MultilineAssignmentLayout:
|
|
EnforcedStyle: same_line
|
|
|
|
Layout/MultilineMethodCallIndentation:
|
|
EnforcedStyle: indented
|
|
|
|
Layout/MultilineOperationIndentation:
|
|
EnforcedStyle: indented
|
|
|
|
Layout/SpaceInsideBlockBraces:
|
|
SpaceBeforeBlockParameters: false
|
|
|
|
Layout/SpaceAroundBlockParameters:
|
|
# This is weird, but without it you get a conflict / infinite loop with
|
|
# SpaceInsideParens
|
|
EnforcedStyleInsidePipes: space
|
|
|
|
Layout/SpaceInsideParens:
|
|
EnforcedStyle: space
|
|
|
|
Lint/NoReturnInBeginEndBlocks:
|
|
Enabled: false
|
|
|
|
Metrics/AbcSize:
|
|
Enabled: false
|
|
|
|
Metrics/BlockLength:
|
|
Enabled: false
|
|
|
|
Metrics/ClassLength:
|
|
Enabled: false
|
|
|
|
Metrics/CyclomaticComplexity:
|
|
Enabled: false
|
|
|
|
Metrics/MethodLength:
|
|
Enabled: false
|
|
|
|
Metrics/ModuleLength:
|
|
Enabled: false
|
|
|
|
Metrics/PerceivedComplexity:
|
|
Enabled: false
|
|
|
|
Naming/AccessorMethodName:
|
|
Enabled: false
|
|
|
|
Naming/VariableNumber:
|
|
Enabled: false
|
|
|
|
Style/Documentation:
|
|
Enabled: false
|
|
|
|
Style/IfUnlessModifier:
|
|
Enabled: false
|
|
|
|
Style/PercentLiteralDelimiters:
|
|
PreferredDelimiters:
|
|
"%w": "()"
|
|
|
|
# Not sure why but this causes some weird failures
|
|
Style/RedundantSort:
|
|
Enabled: false
|
|
|
|
Style/SymbolArray:
|
|
Enabled: false
|
|
|
|
Style/StringLiterals:
|
|
EnforcedStyle: double_quotes
|
|
|
|
Style/WordArray:
|
|
Enabled: false
|