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