]> cat aescling's git repositories - mastodon.git/blob - .rubocop.yml
New Crowdin translations (#11799)
[mastodon.git] / .rubocop.yml
1 require:
2 - rubocop-rails
3
4 AllCops:
5 TargetRubyVersion: 2.3
6 Exclude:
7 - 'spec/**/*'
8 - 'db/**/*'
9 - 'app/views/**/*'
10 - 'config/**/*'
11 - 'bin/*'
12 - 'Rakefile'
13 - 'node_modules/**/*'
14 - 'Vagrantfile'
15 - 'vendor/**/*'
16 - 'lib/json_ld/*'
17 - 'lib/templates/**/*'
18
19 Bundler/OrderedGems:
20 Enabled: false
21
22 Layout/AccessModifierIndentation:
23 EnforcedStyle: indent
24
25 Layout/EmptyLineAfterMagicComment:
26 Enabled: false
27
28 Layout/SpaceInsideHashLiteralBraces:
29 EnforcedStyle: space
30
31 Metrics/AbcSize:
32 Max: 100
33
34 Metrics/BlockLength:
35 Max: 35
36 Exclude:
37 - 'lib/tasks/**/*'
38
39 Metrics/BlockNesting:
40 Max: 3
41
42 Metrics/ClassLength:
43 CountComments: false
44 Max: 300
45
46 Metrics/CyclomaticComplexity:
47 Max: 25
48
49 Metrics/LineLength:
50 AllowURI: true
51 Enabled: false
52
53 Metrics/MethodLength:
54 CountComments: false
55 Max: 55
56
57 Metrics/ModuleLength:
58 CountComments: false
59 Max: 200
60
61 Metrics/ParameterLists:
62 Max: 5
63 CountKeywordArgs: true
64
65 Metrics/PerceivedComplexity:
66 Max: 20
67
68 Naming/MemoizedInstanceVariableName:
69 Enabled: false
70
71 Rails:
72 Enabled: true
73
74 Rails/HasAndBelongsToMany:
75 Enabled: false
76
77 Rails/SkipsModelValidations:
78 Enabled: false
79
80 Rails/HttpStatus:
81 Enabled: false
82
83 Rails/Exit:
84 Exclude:
85 - 'lib/mastodon/*'
86 - 'lib/cli.rb'
87
88 Rails/HelperInstanceVariable:
89 Enabled: false
90
91 Style/ClassAndModuleChildren:
92 Enabled: false
93
94 Style/CollectionMethods:
95 Enabled: true
96 PreferredMethods:
97 find_all: 'select'
98
99 Style/Documentation:
100 Enabled: false
101
102 Style/DoubleNegation:
103 Enabled: true
104
105 Style/FrozenStringLiteralComment:
106 Enabled: true
107
108 Style/GuardClause:
109 Enabled: false
110
111 Style/Lambda:
112 Enabled: false
113
114 Style/PercentLiteralDelimiters:
115 PreferredDelimiters:
116 '%i': '()'
117 '%w': '()'
118
119 Style/PerlBackrefs:
120 AutoCorrect: false
121
122 Style/RegexpLiteral:
123 Enabled: false
124
125 Style/SymbolArray:
126 Enabled: false
127
128 Style/TrailingCommaInArrayLiteral:
129 EnforcedStyleForMultiline: 'comma'
130
131 Style/TrailingCommaInHashLiteral:
132 EnforcedStyleForMultiline: 'comma'
This page took 0.089 seconds and 5 git commands to generate.