mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-21 20:15:10 +01:00
018a9e4e7f
Adopted from GitLab CE. Generate new migration with:
rails g post_deployment_migration name_of_migration_here
By default they are run together with db:migrate. To not run them,
the env variable SKIP_POST_DEPLOYMENT_MIGRATIONS must be set
Code by Yorick Peterse <yorickpeterse@gmail.com>, see also:
83c8241160
116 lines
1.7 KiB
YAML
116 lines
1.7 KiB
YAML
AllCops:
|
|
TargetRubyVersion: 2.3
|
|
Exclude:
|
|
- 'spec/**/*'
|
|
- 'db/**/*'
|
|
- 'app/views/**/*'
|
|
- 'config/**/*'
|
|
- 'bin/*'
|
|
- 'Rakefile'
|
|
- 'node_modules/**/*'
|
|
- 'Vagrantfile'
|
|
- 'vendor/**/*'
|
|
- 'lib/json_ld/*'
|
|
- 'lib/templates/**/*'
|
|
|
|
Bundler/OrderedGems:
|
|
Enabled: false
|
|
|
|
Layout/AccessModifierIndentation:
|
|
EnforcedStyle: indent
|
|
|
|
Layout/EmptyLineAfterMagicComment:
|
|
Enabled: false
|
|
|
|
Layout/SpaceInsideHashLiteralBraces:
|
|
EnforcedStyle: space
|
|
|
|
Metrics/AbcSize:
|
|
Max: 100
|
|
|
|
Metrics/BlockLength:
|
|
Max: 35
|
|
Exclude:
|
|
- 'lib/tasks/**/*'
|
|
|
|
Metrics/BlockNesting:
|
|
Max: 3
|
|
|
|
Metrics/ClassLength:
|
|
CountComments: false
|
|
Max: 300
|
|
|
|
Metrics/CyclomaticComplexity:
|
|
Max: 25
|
|
|
|
Metrics/LineLength:
|
|
AllowURI: true
|
|
Enabled: false
|
|
|
|
Metrics/MethodLength:
|
|
CountComments: false
|
|
Max: 55
|
|
|
|
Metrics/ModuleLength:
|
|
CountComments: false
|
|
Max: 200
|
|
|
|
Metrics/ParameterLists:
|
|
Max: 5
|
|
CountKeywordArgs: true
|
|
|
|
Metrics/PerceivedComplexity:
|
|
Max: 20
|
|
|
|
Rails:
|
|
Enabled: true
|
|
|
|
Rails/HasAndBelongsToMany:
|
|
Enabled: false
|
|
|
|
Rails/SkipsModelValidations:
|
|
Enabled: false
|
|
|
|
Style/ClassAndModuleChildren:
|
|
Enabled: false
|
|
|
|
Style/CollectionMethods:
|
|
Enabled: true
|
|
PreferredMethods:
|
|
find_all: 'select'
|
|
|
|
Style/Documentation:
|
|
Enabled: false
|
|
|
|
Style/DoubleNegation:
|
|
Enabled: true
|
|
|
|
Style/FrozenStringLiteralComment:
|
|
Enabled: true
|
|
|
|
Style/GuardClause:
|
|
Enabled: false
|
|
|
|
Style/Lambda:
|
|
Enabled: false
|
|
|
|
Style/PercentLiteralDelimiters:
|
|
PreferredDelimiters:
|
|
'%i': '()'
|
|
'%w': '()'
|
|
|
|
Style/PerlBackrefs:
|
|
AutoCorrect: false
|
|
|
|
Style/RegexpLiteral:
|
|
Enabled: false
|
|
|
|
Style/SymbolArray:
|
|
Enabled: false
|
|
|
|
Style/TrailingCommaInArrayLiteral:
|
|
EnforcedStyleForMultiline: 'comma'
|
|
|
|
Style/TrailingCommaInHashLiteral:
|
|
EnforcedStyleForMultiline: 'comma'
|