talkable-style 1.2021.1220 → 1.2022.0501
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/bundler.yml +4 -0
- data/config/discourse.yml +8 -0
- data/config/gitlab-security.yml +12 -0
- data/config/graphql.yml +11 -0
- data/config/layout.yml +124 -0
- data/config/lint.yml +232 -0
- data/config/metrics.yml +2 -0
- data/config/naming.yml +26 -0
- data/config/performance.yml +88 -0
- data/config/rails.yml +198 -0
- data/config/rake.yml +12 -0
- data/config/rspec.yml +142 -0
- data/config/security.yml +14 -0
- data/config/style.yml +337 -0
- data/default.yml +22 -1140
- data/lib/talkable/style/version.rb +1 -1
- data/shared/.pronto_spell.pws +24 -0
- data/talkable-style.gemspec +7 -4
- metadata +67 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33e82f07ce5763dfca372b94b0175a8ea80b0481b2e86d263fbd20c5e4cd4d25
|
4
|
+
data.tar.gz: 299ab0582a321f52930c1afe95f37501b26f5a334db8a4ffce1785c8db340ef9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de58ef70b968ebe46a714a578a08c03eaac9050f4012066a4cdc529ea5ed50b36f290241167a896b618aabb51fc797af136ef80478142a57d76a46d1d46b6834
|
7
|
+
data.tar.gz: 45f9688daaf8c8cc70d3bd45c8838c96ac1aed22742f07bb706178c0aafd00e77a1a53b5aafbc880b846713e4328cbedfcd05b56078c3357a12f5cf11856391e
|
data/config/bundler.yml
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
require: rubocop-gitlab-security
|
2
|
+
|
3
|
+
GitlabSecurity/DeepMunge:
|
4
|
+
Enabled: true
|
5
|
+
GitlabSecurity/RedirectToParamsUpdate:
|
6
|
+
Enabled: true
|
7
|
+
GitlabSecurity/SendFileParams:
|
8
|
+
Enabled: true
|
9
|
+
GitlabSecurity/SqlInjection:
|
10
|
+
Enabled: true
|
11
|
+
GitlabSecurity/SystemCommandInjection:
|
12
|
+
Enabled: true
|
data/config/graphql.yml
ADDED
data/config/layout.yml
ADDED
@@ -0,0 +1,124 @@
|
|
1
|
+
Layout/AccessModifierIndentation:
|
2
|
+
Enabled: true
|
3
|
+
Layout/ArrayAlignment:
|
4
|
+
Enabled: true
|
5
|
+
Layout/AssignmentIndentation:
|
6
|
+
Enabled: true
|
7
|
+
Layout/BeginEndAlignment:
|
8
|
+
Enabled: true
|
9
|
+
Layout/BlockAlignment:
|
10
|
+
Enabled: true
|
11
|
+
Layout/BlockEndNewline:
|
12
|
+
Enabled: true
|
13
|
+
Layout/ClosingHeredocIndentation:
|
14
|
+
Enabled: true
|
15
|
+
Layout/CommentIndentation:
|
16
|
+
Enabled: true
|
17
|
+
Layout/ConditionPosition:
|
18
|
+
Enabled: true
|
19
|
+
Layout/DefEndAlignment:
|
20
|
+
Enabled: true
|
21
|
+
Layout/EmptyComment:
|
22
|
+
Enabled: true
|
23
|
+
Layout/EmptyLineBetweenDefs:
|
24
|
+
Enabled: true
|
25
|
+
Layout/EmptyLines:
|
26
|
+
Enabled: true
|
27
|
+
Layout/EmptyLinesAroundAccessModifier:
|
28
|
+
Enabled: true
|
29
|
+
Layout/EmptyLinesAroundBeginBody:
|
30
|
+
Enabled: true
|
31
|
+
Layout/EmptyLinesAroundBlockBody:
|
32
|
+
Enabled: true
|
33
|
+
Layout/EmptyLinesAroundClassBody:
|
34
|
+
Enabled: true
|
35
|
+
Layout/EmptyLinesAroundExceptionHandlingKeywords:
|
36
|
+
Enabled: true
|
37
|
+
Layout/EmptyLinesAroundMethodBody:
|
38
|
+
Enabled: true
|
39
|
+
Layout/EmptyLinesAroundModuleBody:
|
40
|
+
Enabled: true
|
41
|
+
Layout/EndOfLine:
|
42
|
+
Enabled: true
|
43
|
+
Layout/ExtraSpacing:
|
44
|
+
Enabled: true
|
45
|
+
Layout/FirstArrayElementIndentation:
|
46
|
+
Enabled: true
|
47
|
+
EnforcedStyle: consistent
|
48
|
+
Layout/FirstHashElementIndentation:
|
49
|
+
Enabled: true
|
50
|
+
EnforcedStyle: consistent
|
51
|
+
Layout/HeredocIndentation:
|
52
|
+
Enabled: true
|
53
|
+
Layout/IndentationConsistency:
|
54
|
+
Enabled: true
|
55
|
+
Layout/IndentationStyle:
|
56
|
+
Enabled: true
|
57
|
+
Layout/InitialIndentation:
|
58
|
+
Enabled: true
|
59
|
+
Layout/LeadingCommentSpace:
|
60
|
+
Enabled: true
|
61
|
+
Layout/LeadingEmptyLines:
|
62
|
+
Enabled: true
|
63
|
+
Layout/MultilineAssignmentLayout:
|
64
|
+
Enabled: true
|
65
|
+
EnforcedStyle: same_line
|
66
|
+
Layout/MultilineBlockLayout:
|
67
|
+
Enabled: true
|
68
|
+
Exclude:
|
69
|
+
- spec/**/*
|
70
|
+
Layout/MultilineMethodCallIndentation:
|
71
|
+
Enabled: true
|
72
|
+
EnforcedStyle: indented
|
73
|
+
Exclude:
|
74
|
+
- spec/**/*
|
75
|
+
Layout/MultilineMethodDefinitionBraceLayout:
|
76
|
+
Enabled: true
|
77
|
+
Layout/MultilineOperationIndentation:
|
78
|
+
Enabled: true
|
79
|
+
Layout/RescueEnsureAlignment:
|
80
|
+
Enabled: true
|
81
|
+
Layout/SpaceAfterColon:
|
82
|
+
Enabled: true
|
83
|
+
Layout/SpaceAfterComma:
|
84
|
+
Enabled: true
|
85
|
+
Layout/SpaceAfterMethodName:
|
86
|
+
Enabled: true
|
87
|
+
Layout/SpaceAfterNot:
|
88
|
+
Enabled: true
|
89
|
+
Layout/SpaceAfterSemicolon:
|
90
|
+
Enabled: true
|
91
|
+
Layout/SpaceAroundBlockParameters:
|
92
|
+
Enabled: true
|
93
|
+
Layout/SpaceAroundEqualsInParameterDefault:
|
94
|
+
Enabled: true
|
95
|
+
Layout/SpaceAroundKeyword:
|
96
|
+
Enabled: true
|
97
|
+
Layout/SpaceAroundMethodCallOperator:
|
98
|
+
Enabled: true
|
99
|
+
Layout/SpaceAroundOperators:
|
100
|
+
Enabled: true
|
101
|
+
Layout/SpaceBeforeBrackets:
|
102
|
+
Enabled: true
|
103
|
+
Layout/SpaceBeforeComma:
|
104
|
+
Enabled: true
|
105
|
+
Layout/SpaceBeforeComment:
|
106
|
+
Enabled: true
|
107
|
+
Layout/SpaceBeforeFirstArg:
|
108
|
+
Enabled: true
|
109
|
+
Layout/SpaceBeforeSemicolon:
|
110
|
+
Enabled: true
|
111
|
+
Layout/SpaceInLambdaLiteral:
|
112
|
+
Enabled: true
|
113
|
+
Layout/SpaceInsideArrayPercentLiteral:
|
114
|
+
Enabled: true
|
115
|
+
Layout/SpaceInsideParens:
|
116
|
+
Enabled: true
|
117
|
+
Layout/SpaceInsidePercentLiteralDelimiters:
|
118
|
+
Enabled: true
|
119
|
+
Layout/SpaceInsideRangeLiteral:
|
120
|
+
Enabled: true
|
121
|
+
Layout/TrailingEmptyLines:
|
122
|
+
Enabled: true
|
123
|
+
Layout/TrailingWhitespace:
|
124
|
+
Enabled: true
|
data/config/lint.yml
ADDED
@@ -0,0 +1,232 @@
|
|
1
|
+
Lint/AmbiguousAssignment:
|
2
|
+
Enabled: true
|
3
|
+
Lint/AmbiguousOperator:
|
4
|
+
Enabled: true
|
5
|
+
Lint/AmbiguousOperatorPrecedence:
|
6
|
+
Enabled: true
|
7
|
+
Lint/AmbiguousRange:
|
8
|
+
Enabled: true
|
9
|
+
Lint/AmbiguousRegexpLiteral:
|
10
|
+
Enabled: true
|
11
|
+
Lint/BigDecimalNew:
|
12
|
+
Enabled: true
|
13
|
+
Lint/BinaryOperatorWithIdenticalOperands:
|
14
|
+
Enabled: true
|
15
|
+
Lint/BooleanSymbol:
|
16
|
+
Enabled: true
|
17
|
+
Lint/CircularArgumentReference:
|
18
|
+
Enabled: true
|
19
|
+
Lint/ConstantDefinitionInBlock:
|
20
|
+
Enabled: true
|
21
|
+
Lint/Debugger:
|
22
|
+
Enabled: true
|
23
|
+
Lint/DeprecatedClassMethods:
|
24
|
+
Enabled: true
|
25
|
+
Lint/DeprecatedConstants:
|
26
|
+
Enabled: true
|
27
|
+
Lint/DeprecatedOpenSSLConstant:
|
28
|
+
Enabled: true
|
29
|
+
Lint/DisjunctiveAssignmentInConstructor:
|
30
|
+
Enabled: true
|
31
|
+
Lint/DuplicateBranch:
|
32
|
+
Enabled: true
|
33
|
+
Lint/DuplicateCaseCondition:
|
34
|
+
Enabled: true
|
35
|
+
Lint/DuplicateElsifCondition:
|
36
|
+
Enabled: true
|
37
|
+
Lint/DuplicateHashKey:
|
38
|
+
Enabled: true
|
39
|
+
Lint/DuplicateMethods:
|
40
|
+
Enabled: true
|
41
|
+
Lint/DuplicateRegexpCharacterClassElement:
|
42
|
+
Enabled: true
|
43
|
+
Lint/DuplicateRequire:
|
44
|
+
Enabled: true
|
45
|
+
Lint/DuplicateRescueException:
|
46
|
+
Enabled: true
|
47
|
+
Lint/EachWithObjectArgument:
|
48
|
+
Enabled: true
|
49
|
+
Lint/ElseLayout:
|
50
|
+
Enabled: true
|
51
|
+
Lint/EmptyBlock:
|
52
|
+
Enabled: true
|
53
|
+
Lint/EmptyClass:
|
54
|
+
Enabled: true
|
55
|
+
Lint/EmptyConditionalBody:
|
56
|
+
Enabled: true
|
57
|
+
Lint/EmptyEnsure:
|
58
|
+
Enabled: true
|
59
|
+
Lint/EmptyExpression:
|
60
|
+
Enabled: true
|
61
|
+
Lint/EmptyFile:
|
62
|
+
Enabled: true
|
63
|
+
Lint/EmptyInPattern:
|
64
|
+
Enabled: true
|
65
|
+
Lint/EmptyInterpolation:
|
66
|
+
Enabled: true
|
67
|
+
Lint/EmptyWhen:
|
68
|
+
Enabled: true
|
69
|
+
Lint/EnsureReturn:
|
70
|
+
Enabled: true
|
71
|
+
Lint/FlipFlop:
|
72
|
+
Enabled: true
|
73
|
+
Lint/FloatComparison:
|
74
|
+
Enabled: true
|
75
|
+
Lint/FloatOutOfRange:
|
76
|
+
Enabled: true
|
77
|
+
Lint/FormatParameterMismatch:
|
78
|
+
Enabled: true
|
79
|
+
Lint/HashCompareByIdentity:
|
80
|
+
Enabled: true
|
81
|
+
Lint/HeredocMethodCallPosition:
|
82
|
+
Enabled: true
|
83
|
+
Lint/IdentityComparison:
|
84
|
+
Enabled: true
|
85
|
+
Lint/ImplicitStringConcatenation:
|
86
|
+
Enabled: true
|
87
|
+
Lint/IncompatibleIoSelectWithFiberScheduler:
|
88
|
+
Enabled: true
|
89
|
+
Lint/IneffectiveAccessModifier:
|
90
|
+
Enabled: true
|
91
|
+
Lint/InheritException:
|
92
|
+
Enabled: true
|
93
|
+
EnforcedStyle: standard_error
|
94
|
+
Lint/LiteralAsCondition:
|
95
|
+
Enabled: true
|
96
|
+
Lint/LiteralInInterpolation:
|
97
|
+
Enabled: true
|
98
|
+
Lint/Loop:
|
99
|
+
Enabled: true
|
100
|
+
Lint/MissingCopEnableDirective:
|
101
|
+
Enabled: true
|
102
|
+
Lint/MissingSuper:
|
103
|
+
Enabled: true
|
104
|
+
Lint/MixedRegexpCaptureTypes:
|
105
|
+
Enabled: true
|
106
|
+
Lint/MultipleComparison:
|
107
|
+
Enabled: true
|
108
|
+
Lint/NestedMethodDefinition:
|
109
|
+
Enabled: true
|
110
|
+
Lint/NextWithoutAccumulator:
|
111
|
+
Enabled: true
|
112
|
+
Lint/NonDeterministicRequireOrder:
|
113
|
+
Enabled: true
|
114
|
+
Lint/NonLocalExitFromIterator:
|
115
|
+
Enabled: true
|
116
|
+
Lint/NumberedParameterAssignment:
|
117
|
+
Enabled: true
|
118
|
+
Lint/OrAssignmentToConstant:
|
119
|
+
Enabled: true
|
120
|
+
Lint/OutOfRangeRegexpRef:
|
121
|
+
Enabled: true
|
122
|
+
Lint/ParenthesesAsGroupedExpression:
|
123
|
+
Enabled: true
|
124
|
+
Lint/PercentStringArray:
|
125
|
+
Enabled: true
|
126
|
+
Lint/PercentSymbolArray:
|
127
|
+
Enabled: true
|
128
|
+
Lint/RaiseException:
|
129
|
+
Enabled: true
|
130
|
+
Lint/RandOne:
|
131
|
+
Enabled: true
|
132
|
+
Lint/RedundantCopDisableDirective:
|
133
|
+
Enabled: true
|
134
|
+
Lint/RedundantCopEnableDirective:
|
135
|
+
Enabled: true
|
136
|
+
Lint/RedundantDirGlobSort:
|
137
|
+
Enabled: true
|
138
|
+
Lint/RedundantRequireStatement:
|
139
|
+
Enabled: true
|
140
|
+
Lint/RedundantSafeNavigation:
|
141
|
+
Enabled: true
|
142
|
+
Lint/RedundantSplatExpansion:
|
143
|
+
Enabled: true
|
144
|
+
Lint/RedundantStringCoercion:
|
145
|
+
Enabled: true
|
146
|
+
Lint/RedundantWithIndex:
|
147
|
+
Enabled: true
|
148
|
+
Lint/RedundantWithObject:
|
149
|
+
Enabled: true
|
150
|
+
Lint/RefinementImportMethods:
|
151
|
+
Enabled: true
|
152
|
+
Lint/RegexpAsCondition:
|
153
|
+
Enabled: true
|
154
|
+
Lint/RequireParentheses:
|
155
|
+
Enabled: true
|
156
|
+
Lint/RequireRelativeSelfPath:
|
157
|
+
Enabled: true
|
158
|
+
Lint/RescueException:
|
159
|
+
Enabled: true
|
160
|
+
Lint/RescueType:
|
161
|
+
Enabled: true
|
162
|
+
Lint/ReturnInVoidContext:
|
163
|
+
Enabled: true
|
164
|
+
Lint/SafeNavigationChain:
|
165
|
+
Enabled: true
|
166
|
+
AllowedMethods:
|
167
|
+
- present?
|
168
|
+
- blank?
|
169
|
+
- presence
|
170
|
+
- try
|
171
|
+
- try!
|
172
|
+
- to_bool
|
173
|
+
- to_liquid
|
174
|
+
- in?
|
175
|
+
Lint/SafeNavigationWithEmpty:
|
176
|
+
Enabled: true
|
177
|
+
Lint/ScriptPermission:
|
178
|
+
Enabled: true
|
179
|
+
Lint/SelfAssignment:
|
180
|
+
Enabled: true
|
181
|
+
Lint/SendWithMixinArgument:
|
182
|
+
Enabled: true
|
183
|
+
Lint/ShadowedException:
|
184
|
+
Enabled: true
|
185
|
+
Lint/StructNewOverride:
|
186
|
+
Enabled: true
|
187
|
+
Lint/SymbolConversion:
|
188
|
+
Enabled: true
|
189
|
+
Lint/ToEnumArguments:
|
190
|
+
Enabled: true
|
191
|
+
Lint/ToJSON:
|
192
|
+
Enabled: true
|
193
|
+
Lint/TopLevelReturnWithArgument:
|
194
|
+
Enabled: true
|
195
|
+
Lint/TrailingCommaInAttributeDeclaration:
|
196
|
+
Enabled: true
|
197
|
+
Lint/TripleQuotes:
|
198
|
+
Enabled: true
|
199
|
+
Lint/UnexpectedBlockArity:
|
200
|
+
Enabled: true
|
201
|
+
Lint/UnifiedInteger:
|
202
|
+
Enabled: true
|
203
|
+
Lint/UnmodifiedReduceAccumulator:
|
204
|
+
Enabled: true
|
205
|
+
Lint/UnreachableCode:
|
206
|
+
Enabled: true
|
207
|
+
Lint/UnreachableLoop:
|
208
|
+
Enabled: true
|
209
|
+
Lint/UnusedBlockArgument:
|
210
|
+
Enabled: true
|
211
|
+
Lint/UnusedMethodArgument:
|
212
|
+
Enabled: true
|
213
|
+
Lint/UriEscapeUnescape:
|
214
|
+
Enabled: true
|
215
|
+
Lint/UriRegexp:
|
216
|
+
Enabled: true
|
217
|
+
Lint/UselessAccessModifier:
|
218
|
+
Enabled: true
|
219
|
+
Lint/UselessAssignment:
|
220
|
+
Enabled: true
|
221
|
+
Lint/UselessElseWithoutRescue:
|
222
|
+
Enabled: true
|
223
|
+
Lint/UselessMethodDefinition:
|
224
|
+
Enabled: true
|
225
|
+
Lint/UselessRuby2Keywords:
|
226
|
+
Enabled: true
|
227
|
+
Lint/UselessSetterCall:
|
228
|
+
Enabled: true
|
229
|
+
Lint/UselessTimes:
|
230
|
+
Enabled: true
|
231
|
+
Lint/Void:
|
232
|
+
Enabled: true
|
data/config/metrics.yml
ADDED
data/config/naming.yml
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
Naming/AsciiIdentifiers:
|
2
|
+
Enabled: true
|
3
|
+
Naming/BlockForwarding:
|
4
|
+
Enabled: true
|
5
|
+
Naming/ClassAndModuleCamelCase:
|
6
|
+
Enabled: true
|
7
|
+
Naming/ConstantName:
|
8
|
+
Enabled: true
|
9
|
+
Naming/FileName:
|
10
|
+
Enabled: true
|
11
|
+
Naming/InclusiveLanguage:
|
12
|
+
Enabled: true
|
13
|
+
Naming/MemoizedInstanceVariableName:
|
14
|
+
Enabled: true
|
15
|
+
Naming/MethodName:
|
16
|
+
Enabled: true
|
17
|
+
Naming/PredicateName:
|
18
|
+
Enabled: true
|
19
|
+
NamePrefix:
|
20
|
+
- is_
|
21
|
+
ForbiddenPrefixes:
|
22
|
+
- is_
|
23
|
+
Naming/RescuedExceptionsVariableName:
|
24
|
+
Enabled: true
|
25
|
+
Naming/VariableName:
|
26
|
+
Enabled: true
|
@@ -0,0 +1,88 @@
|
|
1
|
+
require: rubocop-performance
|
2
|
+
|
3
|
+
Performance/AncestorsInclude:
|
4
|
+
Enabled: true
|
5
|
+
Performance/BigDecimalWithNumericArgument:
|
6
|
+
Enabled: true
|
7
|
+
Performance/BindCall:
|
8
|
+
Enabled: true
|
9
|
+
Performance/BlockGivenWithExplicitBlock:
|
10
|
+
Enabled: true
|
11
|
+
Performance/Caller:
|
12
|
+
Enabled: true
|
13
|
+
Performance/CaseWhenSplat:
|
14
|
+
Enabled: true
|
15
|
+
Performance/Casecmp:
|
16
|
+
Enabled: true
|
17
|
+
Performance/CollectionLiteralInLoop:
|
18
|
+
Enabled: true
|
19
|
+
Performance/CompareWithBlock:
|
20
|
+
Enabled: true
|
21
|
+
Performance/ConstantRegexp:
|
22
|
+
Enabled: true
|
23
|
+
Performance/Count:
|
24
|
+
Enabled: true
|
25
|
+
Performance/DeletePrefix:
|
26
|
+
Enabled: true
|
27
|
+
Performance/DeleteSuffix:
|
28
|
+
Enabled: true
|
29
|
+
Performance/Detect:
|
30
|
+
Enabled: true
|
31
|
+
Performance/DoubleStartEndWith:
|
32
|
+
Enabled: true
|
33
|
+
Performance/EndWith:
|
34
|
+
Enabled: true
|
35
|
+
Performance/FixedSize:
|
36
|
+
Enabled: true
|
37
|
+
Performance/FlatMap:
|
38
|
+
Enabled: true
|
39
|
+
Performance/InefficientHashSearch:
|
40
|
+
Enabled: true
|
41
|
+
Performance/IoReadlines:
|
42
|
+
Enabled: true
|
43
|
+
Performance/MapCompact:
|
44
|
+
Enabled: true
|
45
|
+
Performance/RangeInclude:
|
46
|
+
Enabled: true
|
47
|
+
Performance/RedundantBlockCall:
|
48
|
+
Enabled: true
|
49
|
+
Performance/RedundantEqualityComparisonBlock:
|
50
|
+
Enabled: true
|
51
|
+
Performance/RedundantMatch:
|
52
|
+
Enabled: true
|
53
|
+
Performance/RedundantMerge:
|
54
|
+
Enabled: true
|
55
|
+
Performance/RedundantSortBlock:
|
56
|
+
Enabled: true
|
57
|
+
Performance/RedundantSplitRegexpArgument:
|
58
|
+
Enabled: true
|
59
|
+
Performance/RedundantStringChars:
|
60
|
+
Enabled: true
|
61
|
+
Performance/RegexpMatch:
|
62
|
+
Enabled: true
|
63
|
+
Performance/ReverseEach:
|
64
|
+
Enabled: true
|
65
|
+
Performance/ReverseFirst:
|
66
|
+
Enabled: true
|
67
|
+
Performance/Size:
|
68
|
+
Enabled: true
|
69
|
+
Performance/SortReverse:
|
70
|
+
Enabled: true
|
71
|
+
Performance/Squeeze:
|
72
|
+
Enabled: true
|
73
|
+
Performance/StartWith:
|
74
|
+
Enabled: true
|
75
|
+
Performance/StringIdentifierArgument:
|
76
|
+
Enabled: true
|
77
|
+
Performance/StringInclude:
|
78
|
+
Enabled: true
|
79
|
+
Performance/StringReplacement:
|
80
|
+
Enabled: true
|
81
|
+
Performance/Sum:
|
82
|
+
Enabled: true
|
83
|
+
Performance/TimesMap:
|
84
|
+
Enabled: true
|
85
|
+
Performance/UnfreezeString:
|
86
|
+
Enabled: true
|
87
|
+
Performance/UriDefaultParser:
|
88
|
+
Enabled: true
|