2019-06-06 13:31:48 +03:00
|
|
|
require:
|
|
|
|
- rubocop-rails
|
|
|
|
|
2017-06-01 18:24:30 +03:00
|
|
|
AllCops:
|
2021-01-07 10:40:55 +02:00
|
|
|
TargetRubyVersion: 2.5
|
|
|
|
NewCops: disable
|
2017-06-01 18:24:30 +03:00
|
|
|
Exclude:
|
|
|
|
- 'spec/**/*'
|
|
|
|
- 'db/**/*'
|
|
|
|
- 'app/views/**/*'
|
|
|
|
- 'config/**/*'
|
|
|
|
- 'bin/*'
|
|
|
|
- 'Rakefile'
|
|
|
|
- 'node_modules/**/*'
|
|
|
|
- 'Vagrantfile'
|
|
|
|
- 'vendor/**/*'
|
2017-08-26 14:47:38 +03:00
|
|
|
- 'lib/json_ld/*'
|
2018-08-13 14:40:01 +03:00
|
|
|
- 'lib/templates/**/*'
|
2016-09-29 22:28:21 +03:00
|
|
|
|
2017-06-01 18:24:30 +03:00
|
|
|
Bundler/OrderedGems:
|
2016-09-29 22:28:21 +03:00
|
|
|
Enabled: false
|
|
|
|
|
2017-06-01 18:24:30 +03:00
|
|
|
Layout/AccessModifierIndentation:
|
|
|
|
EnforcedStyle: indent
|
2016-10-22 20:38:47 +03:00
|
|
|
|
2017-06-08 14:24:28 +03:00
|
|
|
Layout/EmptyLineAfterMagicComment:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-09-01 04:04:00 +03:00
|
|
|
Layout/EmptyLineAfterGuardClause:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Layout/EmptyLinesAroundAttributeAccessor:
|
|
|
|
Enabled: true
|
|
|
|
|
2022-02-25 01:34:14 +02:00
|
|
|
Layout/FirstHashElementIndentation:
|
|
|
|
EnforcedStyle: consistent
|
|
|
|
|
2020-09-01 04:04:00 +03:00
|
|
|
Layout/HashAlignment:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Layout/SpaceAroundMethodCallOperator:
|
|
|
|
Enabled: true
|
|
|
|
|
2017-06-01 18:24:30 +03:00
|
|
|
Layout/SpaceInsideHashLiteralBraces:
|
|
|
|
EnforcedStyle: space
|
2016-10-22 20:38:47 +03:00
|
|
|
|
2020-09-01 04:04:00 +03:00
|
|
|
Lint/DeprecatedOpenSSLConstant:
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
Lint/DuplicateElsifCondition:
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
Lint/MixedRegexpCaptureTypes:
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
Lint/RaiseException:
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
Lint/StructNewOverride:
|
|
|
|
Enabled: true
|
|
|
|
|
2020-07-14 20:05:07 +03:00
|
|
|
Lint/UselessAccessModifier:
|
|
|
|
ContextCreatingMethods:
|
|
|
|
- class_methods
|
|
|
|
|
2016-11-15 17:56:29 +02:00
|
|
|
Metrics/AbcSize:
|
2016-10-22 20:38:47 +03:00
|
|
|
Max: 100
|
2020-09-01 04:04:00 +03:00
|
|
|
Exclude:
|
|
|
|
- 'lib/mastodon/*_cli.rb'
|
2016-10-22 20:38:47 +03:00
|
|
|
|
2017-06-08 14:24:28 +03:00
|
|
|
Metrics/BlockLength:
|
2020-09-01 04:04:00 +03:00
|
|
|
Max: 55
|
2017-06-08 14:24:28 +03:00
|
|
|
Exclude:
|
|
|
|
- 'lib/tasks/**/*'
|
2020-09-01 04:04:00 +03:00
|
|
|
- 'lib/mastodon/*_cli.rb'
|
2017-06-08 14:24:28 +03:00
|
|
|
|
2016-11-15 17:56:29 +02:00
|
|
|
Metrics/BlockNesting:
|
|
|
|
Max: 3
|
2020-09-01 04:04:00 +03:00
|
|
|
Exclude:
|
|
|
|
- 'lib/mastodon/*_cli.rb'
|
2016-11-15 17:56:29 +02:00
|
|
|
|
|
|
|
Metrics/ClassLength:
|
|
|
|
CountComments: false
|
2020-09-01 04:04:00 +03:00
|
|
|
Max: 400
|
|
|
|
Exclude:
|
|
|
|
- 'lib/mastodon/*_cli.rb'
|
2016-11-15 17:56:29 +02:00
|
|
|
|
|
|
|
Metrics/CyclomaticComplexity:
|
2017-07-31 16:19:13 +03:00
|
|
|
Max: 25
|
2020-09-01 04:04:00 +03:00
|
|
|
Exclude:
|
|
|
|
- 'lib/mastodon/*_cli.rb'
|
2016-11-15 17:56:29 +02:00
|
|
|
|
2020-05-10 17:42:48 +03:00
|
|
|
Layout/LineLength:
|
2017-06-01 18:24:30 +03:00
|
|
|
AllowURI: true
|
|
|
|
Enabled: false
|
|
|
|
|
2016-11-15 17:56:29 +02:00
|
|
|
Metrics/MethodLength:
|
2017-06-01 18:24:30 +03:00
|
|
|
CountComments: false
|
2020-09-01 04:04:00 +03:00
|
|
|
Max: 65
|
|
|
|
Exclude:
|
|
|
|
- 'lib/mastodon/*_cli.rb'
|
2016-11-15 17:56:29 +02:00
|
|
|
|
|
|
|
Metrics/ModuleLength:
|
|
|
|
CountComments: false
|
|
|
|
Max: 200
|
|
|
|
|
2016-10-22 20:38:47 +03:00
|
|
|
Metrics/ParameterLists:
|
2017-07-31 16:19:13 +03:00
|
|
|
Max: 5
|
2016-10-22 20:38:47 +03:00
|
|
|
CountKeywordArgs: true
|
|
|
|
|
2017-06-01 18:24:30 +03:00
|
|
|
Metrics/PerceivedComplexity:
|
2020-09-01 04:04:00 +03:00
|
|
|
Max: 25
|
2017-06-01 18:24:30 +03:00
|
|
|
|
2018-08-26 20:22:46 +03:00
|
|
|
Naming/MemoizedInstanceVariableName:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-09-01 04:04:00 +03:00
|
|
|
Naming/MethodParameterName:
|
|
|
|
Enabled: true
|
|
|
|
|
2017-06-01 18:24:30 +03:00
|
|
|
Rails:
|
|
|
|
Enabled: true
|
|
|
|
|
2020-09-01 04:04:00 +03:00
|
|
|
Rails/ApplicationController:
|
2019-12-02 19:25:43 +02:00
|
|
|
Enabled: false
|
2020-09-01 04:04:00 +03:00
|
|
|
Exclude:
|
|
|
|
- 'app/controllers/well_known/**/*.rb'
|
2019-12-02 19:25:43 +02:00
|
|
|
|
2020-09-01 04:04:00 +03:00
|
|
|
Rails/BelongsTo:
|
2017-06-01 18:24:30 +03:00
|
|
|
Enabled: false
|
|
|
|
|
2020-09-01 04:04:00 +03:00
|
|
|
Rails/ContentTag:
|
2017-06-08 14:24:28 +03:00
|
|
|
Enabled: false
|
|
|
|
|
2020-09-01 04:04:00 +03:00
|
|
|
Rails/EnumHash:
|
2018-08-26 20:22:46 +03:00
|
|
|
Enabled: false
|
|
|
|
|
2018-09-14 18:42:22 +03:00
|
|
|
Rails/Exit:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/mastodon/*'
|
2019-03-28 18:56:25 +02:00
|
|
|
- 'lib/cli.rb'
|
2018-09-14 18:42:22 +03:00
|
|
|
|
2020-09-01 04:04:00 +03:00
|
|
|
Rails/FilePath:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Rails/HasAndBelongsToMany:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Rails/HasManyOrHasOneDependent:
|
|
|
|
Enabled: false
|
|
|
|
|
2019-06-06 13:31:48 +03:00
|
|
|
Rails/HelperInstanceVariable:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-09-01 04:04:00 +03:00
|
|
|
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
|
|
|
|
|
2017-06-01 18:24:30 +03:00
|
|
|
Style/ClassAndModuleChildren:
|
|
|
|
Enabled: false
|
2016-10-22 20:38:47 +03:00
|
|
|
|
|
|
|
Style/CollectionMethods:
|
|
|
|
Enabled: true
|
|
|
|
PreferredMethods:
|
|
|
|
find_all: 'select'
|
|
|
|
|
|
|
|
Style/Documentation:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Style/DoubleNegation:
|
2016-11-15 17:56:29 +02:00
|
|
|
Enabled: true
|
2016-10-22 20:38:47 +03:00
|
|
|
|
2020-09-01 04:04:00 +03:00
|
|
|
Style/ExpandPathArguments:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Style/ExponentialNotation:
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
Style/FormatString:
|
|
|
|
Enabled: false
|
|
|
|
|
2019-12-02 19:25:43 +02:00
|
|
|
Style/FormatStringToken:
|
|
|
|
Enabled: false
|
|
|
|
|
2016-10-22 20:38:47 +03:00
|
|
|
Style/FrozenStringLiteralComment:
|
2016-11-15 17:56:29 +02:00
|
|
|
Enabled: true
|
2016-10-22 20:38:47 +03:00
|
|
|
|
2017-06-01 18:24:30 +03:00
|
|
|
Style/GuardClause:
|
2016-10-22 20:38:47 +03:00
|
|
|
Enabled: false
|
|
|
|
|
2020-09-01 04:04:00 +03:00
|
|
|
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
|
|
|
|
|
2016-11-15 17:56:29 +02:00
|
|
|
Style/Lambda:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-09-01 04:04:00 +03:00
|
|
|
Style/MutableConstant:
|
|
|
|
Enabled: false
|
|
|
|
|
2017-06-08 14:24:28 +03:00
|
|
|
Style/PercentLiteralDelimiters:
|
|
|
|
PreferredDelimiters:
|
|
|
|
'%i': '()'
|
|
|
|
'%w': '()'
|
|
|
|
|
2017-06-01 18:24:30 +03:00
|
|
|
Style/PerlBackrefs:
|
|
|
|
AutoCorrect: false
|
2016-11-15 17:56:29 +02:00
|
|
|
|
2020-09-01 04:04:00 +03:00
|
|
|
Style/RedundantAssignment:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Style/RedundantFetchBlock:
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
Style/RedundantFileExtensionInRequire:
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
Style/RedundantRegexpCharacterClass:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Style/RedundantRegexpEscape:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Style/RedundantReturn:
|
|
|
|
Enabled: true
|
|
|
|
|
2017-06-01 18:24:30 +03:00
|
|
|
Style/RegexpLiteral:
|
2017-05-01 17:31:02 +03:00
|
|
|
Enabled: false
|
|
|
|
|
2020-09-01 04:04:00 +03:00
|
|
|
Style/RescueStandardError:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Style/SignalException:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Style/SlicingWithRange:
|
|
|
|
Enabled: true
|
|
|
|
|
2017-06-08 14:24:28 +03:00
|
|
|
Style/SymbolArray:
|
|
|
|
Enabled: false
|
|
|
|
|
2018-06-04 15:49:10 +03:00
|
|
|
Style/TrailingCommaInArrayLiteral:
|
|
|
|
EnforcedStyleForMultiline: 'comma'
|
|
|
|
|
|
|
|
Style/TrailingCommaInHashLiteral:
|
2017-06-01 18:24:30 +03:00
|
|
|
EnforcedStyleForMultiline: 'comma'
|
2020-09-01 04:04:00 +03:00
|
|
|
|
|
|
|
Style/UnpackFirst:
|
|
|
|
Enabled: false
|