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