|
|
@ -25,30 +25,68 @@ Layout/AccessModifierIndentation:
|
|
|
|
Layout/EmptyLineAfterMagicComment:
|
|
|
|
Layout/EmptyLineAfterMagicComment:
|
|
|
|
Enabled: false
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Layout/EmptyLineAfterGuardClause:
|
|
|
|
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Layout/EmptyLinesAroundAttributeAccessor:
|
|
|
|
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Layout/HashAlignment:
|
|
|
|
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
# EnforcedHashRocketStyle: table
|
|
|
|
|
|
|
|
# EnforcedColonStyle: table
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Layout/SpaceAroundMethodCallOperator:
|
|
|
|
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
|
|
|
|
Layout/SpaceInsideHashLiteralBraces:
|
|
|
|
Layout/SpaceInsideHashLiteralBraces:
|
|
|
|
EnforcedStyle: space
|
|
|
|
EnforcedStyle: space
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Lint/DeprecatedOpenSSLConstant:
|
|
|
|
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Lint/DuplicateElsifCondition:
|
|
|
|
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Lint/MixedRegexpCaptureTypes:
|
|
|
|
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Lint/RaiseException:
|
|
|
|
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Lint/StructNewOverride:
|
|
|
|
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
|
|
|
|
Lint/UselessAccessModifier:
|
|
|
|
Lint/UselessAccessModifier:
|
|
|
|
ContextCreatingMethods:
|
|
|
|
ContextCreatingMethods:
|
|
|
|
- class_methods
|
|
|
|
- class_methods
|
|
|
|
|
|
|
|
|
|
|
|
Metrics/AbcSize:
|
|
|
|
Metrics/AbcSize:
|
|
|
|
Max: 100
|
|
|
|
Max: 100
|
|
|
|
|
|
|
|
Exclude:
|
|
|
|
|
|
|
|
- 'lib/mastodon/*_cli.rb'
|
|
|
|
|
|
|
|
|
|
|
|
Metrics/BlockLength:
|
|
|
|
Metrics/BlockLength:
|
|
|
|
Max: 35
|
|
|
|
Max: 55
|
|
|
|
Exclude:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/tasks/**/*'
|
|
|
|
- 'lib/tasks/**/*'
|
|
|
|
|
|
|
|
- 'lib/mastodon/*_cli.rb'
|
|
|
|
|
|
|
|
|
|
|
|
Metrics/BlockNesting:
|
|
|
|
Metrics/BlockNesting:
|
|
|
|
Max: 3
|
|
|
|
Max: 3
|
|
|
|
|
|
|
|
Exclude:
|
|
|
|
|
|
|
|
- 'lib/mastodon/*_cli.rb'
|
|
|
|
|
|
|
|
|
|
|
|
Metrics/ClassLength:
|
|
|
|
Metrics/ClassLength:
|
|
|
|
CountComments: false
|
|
|
|
CountComments: false
|
|
|
|
Max: 300
|
|
|
|
Max: 400
|
|
|
|
|
|
|
|
Exclude:
|
|
|
|
|
|
|
|
- 'lib/mastodon/*_cli.rb'
|
|
|
|
|
|
|
|
|
|
|
|
Metrics/CyclomaticComplexity:
|
|
|
|
Metrics/CyclomaticComplexity:
|
|
|
|
Max: 25
|
|
|
|
Max: 25
|
|
|
|
|
|
|
|
Exclude:
|
|
|
|
|
|
|
|
- 'lib/mastodon/*_cli.rb'
|
|
|
|
|
|
|
|
|
|
|
|
Layout/LineLength:
|
|
|
|
Layout/LineLength:
|
|
|
|
AllowURI: true
|
|
|
|
AllowURI: true
|
|
|
@ -56,7 +94,9 @@ Layout/LineLength:
|
|
|
|
|
|
|
|
|
|
|
|
Metrics/MethodLength:
|
|
|
|
Metrics/MethodLength:
|
|
|
|
CountComments: false
|
|
|
|
CountComments: false
|
|
|
|
Max: 55
|
|
|
|
Max: 65
|
|
|
|
|
|
|
|
Exclude:
|
|
|
|
|
|
|
|
- 'lib/mastodon/*_cli.rb'
|
|
|
|
|
|
|
|
|
|
|
|
Metrics/ModuleLength:
|
|
|
|
Metrics/ModuleLength:
|
|
|
|
CountComments: false
|
|
|
|
CountComments: false
|
|
|
@ -67,24 +107,29 @@ Metrics/ParameterLists:
|
|
|
|
CountKeywordArgs: true
|
|
|
|
CountKeywordArgs: true
|
|
|
|
|
|
|
|
|
|
|
|
Metrics/PerceivedComplexity:
|
|
|
|
Metrics/PerceivedComplexity:
|
|
|
|
Max: 20
|
|
|
|
Max: 25
|
|
|
|
|
|
|
|
|
|
|
|
Naming/MemoizedInstanceVariableName:
|
|
|
|
Naming/MemoizedInstanceVariableName:
|
|
|
|
Enabled: false
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Naming/MethodParameterName:
|
|
|
|
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
|
|
|
|
Rails:
|
|
|
|
Rails:
|
|
|
|
Enabled: true
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
|
|
|
|
Rails/EnumHash:
|
|
|
|
Rails/ApplicationController:
|
|
|
|
Enabled: false
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Exclude:
|
|
|
|
|
|
|
|
- 'app/controllers/well_known/**/*.rb'
|
|
|
|
|
|
|
|
|
|
|
|
Rails/HasAndBelongsToMany:
|
|
|
|
Rails/BelongsTo:
|
|
|
|
Enabled: false
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
|
|
|
|
Rails/SkipsModelValidations:
|
|
|
|
Rails/ContentTag:
|
|
|
|
Enabled: false
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
|
|
|
|
Rails/HttpStatus:
|
|
|
|
Rails/EnumHash:
|
|
|
|
Enabled: false
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
|
|
|
|
Rails/Exit:
|
|
|
|
Rails/Exit:
|
|
|
@ -92,9 +137,60 @@ Rails/Exit:
|
|
|
|
- 'lib/mastodon/*'
|
|
|
|
- 'lib/mastodon/*'
|
|
|
|
- 'lib/cli.rb'
|
|
|
|
- 'lib/cli.rb'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Rails/FilePath:
|
|
|
|
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Rails/HasAndBelongsToMany:
|
|
|
|
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Rails/HasManyOrHasOneDependent:
|
|
|
|
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
|
|
|
|
Rails/HelperInstanceVariable:
|
|
|
|
Rails/HelperInstanceVariable:
|
|
|
|
Enabled: false
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Rails/HttpStatus:
|
|
|
|
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Rails/IndexBy:
|
|
|
|
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Rails/InverseOf:
|
|
|
|
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Rails/LexicallyScopedActionFilter:
|
|
|
|
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Rails/OutputSafety:
|
|
|
|
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Rails/RakeEnvironment:
|
|
|
|
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Rails/RedundantForeignKey:
|
|
|
|
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Rails/SkipsModelValidations:
|
|
|
|
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Rails/UniqueValidationWithoutIndex:
|
|
|
|
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Style/AccessorGrouping:
|
|
|
|
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Style/AccessModifierDeclarations:
|
|
|
|
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Style/ArrayCoercion:
|
|
|
|
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Style/BisectedAttrAccessor:
|
|
|
|
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Style/CaseLikeIf:
|
|
|
|
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
|
|
|
|
Style/ClassAndModuleChildren:
|
|
|
|
Style/ClassAndModuleChildren:
|
|
|
|
Enabled: false
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
|
|
|
@ -109,6 +205,15 @@ Style/Documentation:
|
|
|
|
Style/DoubleNegation:
|
|
|
|
Style/DoubleNegation:
|
|
|
|
Enabled: true
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Style/ExpandPathArguments:
|
|
|
|
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Style/ExponentialNotation:
|
|
|
|
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Style/FormatString:
|
|
|
|
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
|
|
|
|
Style/FormatStringToken:
|
|
|
|
Style/FormatStringToken:
|
|
|
|
Enabled: false
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
|
|
|
@ -118,9 +223,33 @@ Style/FrozenStringLiteralComment:
|
|
|
|
Style/GuardClause:
|
|
|
|
Style/GuardClause:
|
|
|
|
Enabled: false
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Style/HashAsLastArrayItem:
|
|
|
|
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Style/HashEachMethods:
|
|
|
|
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Style/HashLikeCase:
|
|
|
|
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Style/HashTransformKeys:
|
|
|
|
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Style/HashTransformValues:
|
|
|
|
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Style/IfUnlessModifier:
|
|
|
|
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Style/InverseMethods:
|
|
|
|
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
|
|
|
|
Style/Lambda:
|
|
|
|
Style/Lambda:
|
|
|
|
Enabled: false
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Style/MutableConstant:
|
|
|
|
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
|
|
|
|
Style/PercentLiteralDelimiters:
|
|
|
|
Style/PercentLiteralDelimiters:
|
|
|
|
PreferredDelimiters:
|
|
|
|
PreferredDelimiters:
|
|
|
|
'%i': '()'
|
|
|
|
'%i': '()'
|
|
|
@ -129,9 +258,36 @@ Style/PercentLiteralDelimiters:
|
|
|
|
Style/PerlBackrefs:
|
|
|
|
Style/PerlBackrefs:
|
|
|
|
AutoCorrect: false
|
|
|
|
AutoCorrect: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Style/RedundantAssignment:
|
|
|
|
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Style/RedundantFetchBlock:
|
|
|
|
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Style/RedundantFileExtensionInRequire:
|
|
|
|
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Style/RedundantRegexpCharacterClass:
|
|
|
|
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Style/RedundantRegexpEscape:
|
|
|
|
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Style/RedundantReturn:
|
|
|
|
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
|
|
|
|
Style/RegexpLiteral:
|
|
|
|
Style/RegexpLiteral:
|
|
|
|
Enabled: false
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Style/RescueStandardError:
|
|
|
|
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Style/SignalException:
|
|
|
|
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Style/SlicingWithRange:
|
|
|
|
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
|
|
|
|
Style/SymbolArray:
|
|
|
|
Style/SymbolArray:
|
|
|
|
Enabled: false
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
|
|
|
@ -140,3 +296,6 @@ Style/TrailingCommaInArrayLiteral:
|
|
|
|
|
|
|
|
|
|
|
|
Style/TrailingCommaInHashLiteral:
|
|
|
|
Style/TrailingCommaInHashLiteral:
|
|
|
|
EnforcedStyleForMultiline: 'comma'
|
|
|
|
EnforcedStyleForMultiline: 'comma'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Style/UnpackFirst:
|
|
|
|
|
|
|
|
Enabled: false
|
|
|
|