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