rubocop_fonsan_style 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 3b04ff6314fafad0f8e3b1edde0ca37e3d2d6f1c10f3ffc8e5a35a54bde54f7c
4
+ data.tar.gz: c676ee2b70c9a949686661e221854043d8e15c078e994d891979e2dfc6606281
5
+ SHA512:
6
+ metadata.gz: c345253f5cddbb5e97a5ae03c2885eed3c457ee6ecfea4e630de0d68a67f3a473f30e6ad4dc8597c63a9389628a20368bd8106dfa2dad78646facb00fead2a9f
7
+ data.tar.gz: 5e2cf718c22fc89ce1ed5843946d89339bfc1bcbfe01408d6bbdcab3fab9ff48b7a1b4d7d9ebd1c4bc4dd759e551be8314cf3df780c44ec832baa4fff94a8015
data/.rubocop.all.yml ADDED
@@ -0,0 +1,7 @@
1
+ inherit_from:
2
+ - .rubocop.default.yml
3
+ - .rubocop.rails.yml
4
+ - .rubocop.rspec.yml
5
+
6
+ require:
7
+ - rubocop-rake
@@ -0,0 +1,403 @@
1
+ require:
2
+ - rubocop-performance
3
+ - rubocop-rubycw
4
+
5
+ Gemspec/DeprecatedAttributeAssignment:
6
+ Enabled: true
7
+ Gemspec/RequireMFA:
8
+ Enabled: true
9
+ Layout/ArgumentAlignment:
10
+ EnforcedStyle: with_fixed_indentation
11
+ Layout/ArrayAlignment:
12
+ EnforcedStyle: with_fixed_indentation
13
+ Layout/BeginEndAlignment:
14
+ Enabled: true
15
+ Layout/BlockAlignment:
16
+ EnforcedStyleAlignWith: start_of_block
17
+ Layout/CaseIndentation:
18
+ EnforcedStyle: end
19
+ Layout/ClassStructure:
20
+ Enabled: true
21
+ Layout/DotPosition:
22
+ EnforcedStyle: trailing
23
+ Layout/EmptyLinesAroundAttributeAccessor:
24
+ Enabled: true
25
+ Layout/EndAlignment:
26
+ EnforcedStyleAlignWith: variable
27
+ AutoCorrect: true
28
+ Layout/FirstArgumentIndentation:
29
+ EnforcedStyle: consistent
30
+ Layout/FirstArrayElementIndentation:
31
+ EnforcedStyle: consistent
32
+ Layout/FirstArrayElementLineBreak:
33
+ Enabled: true
34
+ Layout/FirstHashElementIndentation:
35
+ EnforcedStyle: consistent
36
+ Layout/FirstHashElementLineBreak:
37
+ Enabled: true
38
+ Layout/FirstMethodArgumentLineBreak:
39
+ Enabled: true
40
+ Layout/LineContinuationLeadingSpace:
41
+ Enabled: true
42
+ Layout/LineContinuationSpacing:
43
+ Enabled: true
44
+ Layout/LineEndStringConcatenationIndentation:
45
+ Enabled: true
46
+ Layout/LineLength:
47
+ Max: 200
48
+ Layout/MultilineArrayLineBreaks:
49
+ Enabled: true
50
+ Layout/MultilineAssignmentLayout:
51
+ Enabled: true
52
+ EnforcedStyle: same_line
53
+ Layout/MultilineHashKeyLineBreaks:
54
+ Enabled: true
55
+ Layout/MultilineMethodArgumentLineBreaks:
56
+ Enabled: true
57
+ Layout/MultilineMethodCallIndentation:
58
+ EnforcedStyle: indented
59
+ Layout/MultilineOperationIndentation:
60
+ EnforcedStyle: indented
61
+ Layout/ParameterAlignment:
62
+ EnforcedStyle: with_fixed_indentation
63
+ Layout/RescueEnsureAlignment:
64
+ Enabled: false
65
+ Layout/SpaceAroundMethodCallOperator:
66
+ Enabled: true
67
+ Layout/SpaceBeforeBrackets:
68
+ Enabled: true
69
+ Layout/SpaceInsideBlockBraces:
70
+ SpaceBeforeBlockParameters: false
71
+ Layout/SpaceInsideHashLiteralBraces:
72
+ EnforcedStyle: no_space
73
+ Lint/AmbiguousAssignment:
74
+ Enabled: true
75
+ Lint/AmbiguousOperatorPrecedence:
76
+ Enabled: true
77
+ Lint/AmbiguousRange:
78
+ Enabled: true
79
+ Lint/AssignmentInCondition:
80
+ Enabled: false
81
+ Lint/BinaryOperatorWithIdenticalOperands:
82
+ Enabled: true
83
+ Lint/ConstantDefinitionInBlock:
84
+ Enabled: true
85
+ Lint/ConstantOverwrittenInRescue:
86
+ Enabled: true
87
+ Lint/DeprecatedConstants:
88
+ Enabled: true
89
+ Lint/DeprecatedOpenSSLConstant:
90
+ Enabled: true
91
+ Lint/DuplicateBranch:
92
+ Enabled: true
93
+ Lint/DuplicateElsifCondition:
94
+ Enabled: true
95
+ Lint/DuplicateMagicComment:
96
+ Enabled: true
97
+ Lint/DuplicateRegexpCharacterClassElement:
98
+ Enabled: true
99
+ Lint/DuplicateRequire:
100
+ Enabled: true
101
+ Lint/DuplicateRescueException:
102
+ Enabled: true
103
+ Lint/EmptyBlock:
104
+ Enabled: true
105
+ Lint/EmptyClass:
106
+ Enabled: true
107
+ Lint/EmptyConditionalBody:
108
+ Enabled: true
109
+ Lint/EmptyFile:
110
+ Enabled: true
111
+ Lint/EmptyInPattern:
112
+ Enabled: true
113
+ Lint/EmptyWhen:
114
+ Enabled: false
115
+ Lint/FloatComparison:
116
+ Enabled: true
117
+ Lint/HashCompareByIdentity:
118
+ Enabled: true
119
+ Lint/IdentityComparison:
120
+ Enabled: true
121
+ Lint/IncompatibleIoSelectWithFiberScheduler:
122
+ Enabled: true
123
+ Lint/LambdaWithoutLiteralBlock:
124
+ Enabled: true
125
+ Lint/MissingSuper:
126
+ Enabled: true
127
+ Lint/MixedRegexpCaptureTypes:
128
+ Enabled: true
129
+ Lint/NoReturnInBeginEndBlocks:
130
+ Enabled: true
131
+ Lint/NonAtomicFileOperation:
132
+ Enabled: true
133
+ Lint/NumberConversion:
134
+ Enabled: false
135
+ Lint/NumberedParameterAssignment:
136
+ Enabled: true
137
+ Lint/OrAssignmentToConstant:
138
+ Enabled: true
139
+ Lint/OutOfRangeRegexpRef:
140
+ Enabled: true
141
+ Lint/RaiseException:
142
+ Enabled: true
143
+ Lint/RedundantDirGlobSort:
144
+ Enabled: true
145
+ Lint/RedundantSafeNavigation:
146
+ Enabled: true
147
+ Lint/RefinementImportMethods:
148
+ Enabled: true
149
+ Lint/RequireRangeParentheses:
150
+ Enabled: true
151
+ Lint/RequireRelativeSelfPath:
152
+ Enabled: true
153
+ Lint/SelfAssignment:
154
+ Enabled: true
155
+ Lint/StructNewOverride:
156
+ Enabled: true
157
+ Lint/SymbolConversion:
158
+ Enabled: true
159
+ Lint/ToEnumArguments:
160
+ Enabled: true
161
+ Lint/TopLevelReturnWithArgument:
162
+ Enabled: true
163
+ Lint/TrailingCommaInAttributeDeclaration:
164
+ Enabled: true
165
+ Lint/TripleQuotes:
166
+ Enabled: true
167
+ Lint/UnexpectedBlockArity:
168
+ Enabled: true
169
+ Lint/UnmodifiedReduceAccumulator:
170
+ Enabled: true
171
+ Lint/UnreachableLoop:
172
+ Enabled: true
173
+ Lint/UselessAccessModifier:
174
+ Enabled: true
175
+ Lint/UselessMethodDefinition:
176
+ Enabled: true
177
+ Lint/UselessRuby2Keywords:
178
+ Enabled: true
179
+ Lint/UselessTimes:
180
+ Enabled: true
181
+ Metrics/AbcSize:
182
+ Enabled: false
183
+ Metrics/BlockLength:
184
+ Exclude:
185
+ - "**/*.gemspec"
186
+ - spec/**/*
187
+ Metrics/ClassLength:
188
+ Enabled: false
189
+ Metrics/ModuleLength:
190
+ Enabled: false
191
+ Metrics/MethodLength:
192
+ Max: 15
193
+ CountAsOne:
194
+ - array
195
+ - hash
196
+ - heredoc
197
+ Naming/BlockForwarding:
198
+ Enabled: true
199
+ Naming/MethodParameterName:
200
+ AllowedNames:
201
+ - io
202
+ - id
203
+ - to
204
+ - by
205
+ - 'on'
206
+ - in
207
+ - at
208
+ - ip
209
+ - db
210
+ - iv
211
+ Naming/VariableNumber:
212
+ EnforcedStyle: snake_case
213
+ Performance/AncestorsInclude:
214
+ Enabled: true
215
+ Performance/BigDecimalWithNumericArgument:
216
+ Enabled: true
217
+ Performance/BlockGivenWithExplicitBlock:
218
+ Enabled: true
219
+ Performance/CaseWhenSplat:
220
+ Enabled: true
221
+ Performance/CollectionLiteralInLoop:
222
+ Enabled: true
223
+ Performance/ConcurrentMonotonicTime:
224
+ Enabled: true
225
+ Performance/ConstantRegexp:
226
+ Enabled: true
227
+ Performance/MapCompact:
228
+ Enabled: true
229
+ Performance/MethodObjectAsBlock:
230
+ Enabled: true
231
+ Performance/RedundantEqualityComparisonBlock:
232
+ Enabled: true
233
+ Performance/RedundantSortBlock:
234
+ Enabled: true
235
+ Performance/RedundantSplitRegexpArgument:
236
+ Enabled: true
237
+ Performance/RedundantStringChars:
238
+ Enabled: true
239
+ Performance/ReverseFirst:
240
+ Enabled: true
241
+ Performance/SortReverse:
242
+ Enabled: true
243
+ Performance/Squeeze:
244
+ Enabled: true
245
+ Performance/StringIdentifierArgument:
246
+ Enabled: true
247
+ Performance/StringInclude:
248
+ Enabled: true
249
+ Performance/Sum:
250
+ Enabled: true
251
+ Security/CompoundHash:
252
+ Enabled: true
253
+ Security/IoMethods:
254
+ Enabled: true
255
+ Style/AccessorGrouping:
256
+ Enabled: true
257
+ Style/ArgumentsForwarding:
258
+ Enabled: true
259
+ Style/AsciiComments:
260
+ Enabled: false
261
+ Style/AutoResourceCleanup:
262
+ Enabled: true
263
+ Style/BisectedAttrAccessor:
264
+ Enabled: true
265
+ Style/CaseLikeIf:
266
+ Enabled: true
267
+ Style/ClassAndModuleChildren:
268
+ Enabled: false
269
+ Style/ClassEqualityComparison:
270
+ Enabled: true
271
+ Style/CollectionCompact:
272
+ Enabled: true
273
+ Style/CollectionMethods:
274
+ Enabled: true
275
+ Style/CombinableLoops:
276
+ Enabled: true
277
+ Style/DocumentDynamicEvalDefinition:
278
+ Enabled: true
279
+ Style/Documentation:
280
+ Enabled: false
281
+ Style/EmptyHeredoc:
282
+ Enabled: true
283
+ Style/EndlessMethod:
284
+ Enabled: true
285
+ Style/EnvHome:
286
+ Enabled: true
287
+ Style/ExplicitBlockArgument:
288
+ Enabled: false
289
+ Style/ExponentialNotation:
290
+ Enabled: false
291
+ Style/FetchEnvVar:
292
+ Enabled: true
293
+ Style/FileRead:
294
+ Enabled: true
295
+ Style/FileWrite:
296
+ Enabled: true
297
+ Style/FormatString:
298
+ EnforcedStyle: percent
299
+ Style/FrozenStringLiteralComment:
300
+ Enabled: false
301
+ Style/GlobalStdStream:
302
+ Enabled: true
303
+ Style/RedundantInitialize: # new in 1.27
304
+ Enabled: true
305
+ Style/RedundantStringEscape: # new in 1.37
306
+ Enabled: true
307
+ Style/HashAsLastArrayItem:
308
+ Enabled: true
309
+ EnforcedStyle: no_braces
310
+ Style/HashConversion:
311
+ Enabled: true
312
+ Style/HashEachMethods:
313
+ Enabled: true
314
+ Style/HashExcept:
315
+ Enabled: true
316
+ Style/HashLikeCase:
317
+ Enabled: true
318
+ MinBranchesCount: 7
319
+ Style/HashTransformKeys:
320
+ Enabled: true
321
+ Style/HashTransformValues:
322
+ Enabled: true
323
+ Style/IfWithBooleanLiteralBranches:
324
+ Enabled: true
325
+ Style/InPatternThen:
326
+ Enabled: true
327
+ Style/KeywordParametersOrder:
328
+ Enabled: true
329
+ Style/MagicCommentFormat:
330
+ Enabled: true
331
+ Style/MapCompactWithConditionalBlock:
332
+ Enabled: true
333
+ Style/MapToHash:
334
+ Enabled: true
335
+ Style/MultilineInPatternThen:
336
+ Enabled: true
337
+ Style/NegatedIfElseCondition:
338
+ Enabled: true
339
+ Style/NestedFileDirname:
340
+ Enabled: true
341
+ Style/NilLambda:
342
+ Enabled: true
343
+ Style/NumberedParameters:
344
+ Enabled: true
345
+ Style/NumberedParametersLimit:
346
+ Enabled: true
347
+ Style/NumericPredicate:
348
+ AutoCorrect: true
349
+ Style/ObjectThen:
350
+ Enabled: true
351
+ Style/OpenStructUse:
352
+ Enabled: true
353
+ Style/OperatorMethodCall:
354
+ Enabled: true
355
+ Style/OptionalBooleanParameter:
356
+ Enabled: true
357
+ Style/QuotedSymbols:
358
+ Enabled: true
359
+ Style/RedundantArgument:
360
+ Enabled: true
361
+ Style/RedundantAssignment:
362
+ Enabled: true
363
+ Style/RedundantEach:
364
+ Enabled: true
365
+ Style/RedundantFetchBlock:
366
+ Enabled: true
367
+ Style/RedundantFileExtensionInRequire:
368
+ Enabled: true
369
+ Style/RedundantRegexpCharacterClass:
370
+ Enabled: true
371
+ Style/RedundantRegexpEscape:
372
+ Enabled: true
373
+ Style/RedundantSelfAssignment:
374
+ Enabled: true
375
+ Style/RedundantSelfAssignmentBranch:
376
+ Enabled: true
377
+ Style/ReturnNil:
378
+ Enabled: true
379
+ Style/SelectByRegexp:
380
+ Enabled: true
381
+ Style/SingleArgumentDig:
382
+ Enabled: true
383
+ Style/SlicingWithRange:
384
+ Enabled: true
385
+ Style/SoleNestedConditional:
386
+ Enabled: true
387
+ AllowModifier: true
388
+ Style/StringChars:
389
+ Enabled: true
390
+ Style/StringConcatenation:
391
+ Enabled: true
392
+ Style/StringHashKeys:
393
+ Enabled: true
394
+ Style/StringLiteralsInInterpolation:
395
+ Enabled: false
396
+ Style/SwapValues:
397
+ Enabled: true
398
+ Style/TrailingCommaInArguments:
399
+ EnforcedStyleForMultiline: consistent_comma
400
+ Style/TrailingCommaInArrayLiteral:
401
+ EnforcedStyleForMultiline: consistent_comma
402
+ Style/TrailingCommaInHashLiteral:
403
+ EnforcedStyleForMultiline: consistent_comma
@@ -0,0 +1,113 @@
1
+ require:
2
+ - rubocop-rails
3
+
4
+ Rails/AddColumnIndex: # new in 2.11
5
+ Enabled: true
6
+ Rails/AttributeDefaultBlockValue: # new in 2.9
7
+ Enabled: true
8
+ Rails/CompactBlank: # new in 2.13
9
+ Enabled: true
10
+ Rails/DurationArithmetic: # new in 2.13
11
+ Enabled: true
12
+ Rails/EagerEvaluationLogMessage: # new in 2.11
13
+ Enabled: true
14
+ Rails/ExpandedDateRange: # new in 2.11
15
+ Enabled: true
16
+ Rails/I18nLocaleAssignment: # new in 2.11
17
+ Enabled: true
18
+ Rails/RedundantPresenceValidationOnBelongsTo: # new in 2.13
19
+ Enabled: true
20
+ Rails/RedundantTravelBack: # new in 2.12
21
+ Enabled: true
22
+ Rails/RootJoinChain: # new in 2.13
23
+ Enabled: true
24
+ Rails/TimeZoneAssignment: # new in 2.10
25
+ Enabled: true
26
+ Rails/UnusedIgnoredColumns: # new in 2.11
27
+ Enabled: true
28
+ Rails/WhereEquals: # new in 2.9
29
+ Enabled: true
30
+ Rails/ApplicationController:
31
+ Enabled: true
32
+ Rails/SaveBang:
33
+ Enabled: true
34
+ Rails/SafeNavigation:
35
+ ConvertTry: true
36
+ Rails/FilePath:
37
+ EnforcedStyle: arguments
38
+ Rails/ActiveRecordCallbacksOrder: # (new in 2.7)
39
+ Enabled: true
40
+ Rails/AfterCommitOverride: # (new in 2.8)
41
+ Enabled: true
42
+ Rails/FindById: # (new in 2.7)
43
+ Enabled: true
44
+ Rails/Inquiry: # (new in 2.7)
45
+ Enabled: true
46
+ Rails/MailerName: # (new in 2.7)
47
+ Enabled: true
48
+ Rails/MatchRoute: # (new in 2.7)
49
+ Enabled: true
50
+ Rails/NegateInclude: # (new in 2.7)
51
+ Enabled: true
52
+ Rails/Pluck: # (new in 2.7)
53
+ Enabled: true
54
+ Rails/PluckInWhere: # (new in 2.7)
55
+ Enabled: true
56
+ Rails/RenderInline: # (new in 2.7)
57
+ Enabled: true
58
+ Rails/RenderPlainText: # (new in 2.7)
59
+ Enabled: true
60
+ Rails/ShortI18n: # (new in 2.7)
61
+ Enabled: true
62
+ Rails/SquishedSQLHeredocs: # (new in 2.8)
63
+ Enabled: true
64
+ Rails/WhereExists: # (new in 2.7)
65
+ Enabled: true
66
+ Rails/WhereNot: # (new in 2.8)
67
+ Enabled: true
68
+ Rails/SkipsModelValidations:
69
+ Enabled: false
70
+ Rails/ActionControllerFlashBeforeRender: # new in 2.16
71
+ Enabled: true
72
+ Rails/ActionControllerTestCase: # new in 2.14
73
+ Enabled: true
74
+ Rails/ActionOrder: # new in 2.17
75
+ Enabled: true
76
+ Rails/ActiveSupportOnLoad: # new in 2.16
77
+ Enabled: true
78
+ Rails/DeprecatedActiveModelErrorsMethods: # new in 2.14
79
+ Enabled: true
80
+ Rails/DotSeparatedKeys: # new in 2.15
81
+ Enabled: true
82
+ Rails/DuplicateAssociation: # new in 2.14
83
+ Enabled: true
84
+ Rails/DuplicateScope: # new in 2.14
85
+ Enabled: true
86
+ Rails/FreezeTime: # new in 2.16
87
+ Enabled: true
88
+ Rails/I18nLazyLookup: # new in 2.14
89
+ Enabled: true
90
+ Rails/I18nLocaleTexts: # new in 2.14
91
+ Enabled: true
92
+ Rails/IgnoredColumnsAssignment: # new in 2.17
93
+ Enabled: true
94
+ Rails/MigrationClassName: # new in 2.14
95
+ Enabled: true
96
+ Rails/RootPathnameMethods: # new in 2.16
97
+ Enabled: true
98
+ Rails/RootPublicPath: # new in 2.15
99
+ Enabled: true
100
+ Rails/StripHeredoc: # new in 2.15
101
+ Enabled: true
102
+ Rails/ToFormattedS: # new in 2.15
103
+ Enabled: true
104
+ Rails/ToSWithArgument: # new in 2.16
105
+ Enabled: true
106
+ Rails/TopLevelHashWithIndifferentAccess: # new in 2.16
107
+ Enabled: true
108
+ Rails/TransactionExitStatement: # new in 2.14
109
+ Enabled: true
110
+ Rails/WhereMissing: # new in 2.16
111
+ Enabled: true
112
+ Rails/WhereNotWithMultipleConditions: # new in 2.17
113
+ Enabled: true
@@ -0,0 +1,55 @@
1
+ require:
2
+ - rubocop-rspec
3
+
4
+ RSpec/BeEq: # new in 2.9.0
5
+ Enabled: true
6
+ RSpec/BeNil: # new in 2.9.0
7
+ Enabled: true
8
+ RSpec/ExcessiveDocstringSpacing: # new in 2.5
9
+ Enabled: true
10
+ RSpec/IdenticalEqualityAssertion: # new in 2.4
11
+ Enabled: true
12
+ RSpec/SubjectDeclaration: # new in 2.5
13
+ Enabled: true
14
+ RSpec/FactoryBot/SyntaxMethods: # new in 2.7
15
+ Enabled: true
16
+ RSpec/Rails/AvoidSetupHook: # new in 2.4
17
+ Enabled: true
18
+ RSpec/StubbedMock: # (new in 1.44)
19
+ Enabled: true
20
+ RSpec/MultipleMemoizedHelpers:
21
+ Enabled: false
22
+ RSpec/InstanceVariable:
23
+ Enabled: false
24
+ RSpec/ChangeByZero: # new in 2.11
25
+ Enabled: true
26
+ RSpec/ClassCheck: # new in 2.13
27
+ Enabled: true
28
+ RSpec/NoExpectationExample: # new in 2.13
29
+ Enabled: true
30
+ RSpec/SortMetadata: # new in 2.14
31
+ Enabled: true
32
+ RSpec/VerifiedDoubleReference: # new in 2.10.0
33
+ Enabled: true
34
+ RSpec/Capybara/NegationMatcher: # new in 2.14
35
+ Enabled: true
36
+ RSpec/Capybara/SpecificActions: # new in 2.14
37
+ Enabled: true
38
+ RSpec/Capybara/SpecificFinders: # new in 2.13
39
+ Enabled: true
40
+ RSpec/Capybara/SpecificMatcher: # new in 2.12
41
+ Enabled: true
42
+ RSpec/FactoryBot/ConsistentParenthesesStyle: # new in 2.14
43
+ Enabled: true
44
+ RSpec/Rails/HaveHttpStatus: # new in 2.12
45
+ Enabled: true
46
+ RSpec/Rails/InferredSpecType: # new in 2.14
47
+ Enabled: true
48
+ RSpec/NamedSubject:
49
+ Enabled: false
50
+ RSpec/ExampleLength:
51
+ Max: 15
52
+ CountAsOne:
53
+ - array
54
+ - hash
55
+ - heredoc
data/.rubocop.yml ADDED
@@ -0,0 +1,2 @@
1
+ inherit_from:
2
+ - .rubocop.all.yml
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2022-11-26
4
+
5
+ - Initial release
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at fonsan@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ # Specify your gem's dependencies in rubocop_fonsan_style.gemspec
6
+ gemspec
7
+
8
+ gem 'rake', '~> 13.0'
9
+
10
+ gem 'rspec', '~> 3.0'
data/Gemfile.lock ADDED
@@ -0,0 +1,88 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ rubocop_fonsan_style (0.1.0)
5
+ rubocop (~> 1.39)
6
+ rubocop-performance (~> 1.15)
7
+ rubocop-rails (~> 2.17)
8
+ rubocop-rake (~> 0.6.0)
9
+ rubocop-rspec (~> 2.15)
10
+ rubocop-rubycw (~> 0.1)
11
+
12
+ GEM
13
+ remote: https://rubygems.org/
14
+ specs:
15
+ activesupport (7.0.4)
16
+ concurrent-ruby (~> 1.0, >= 1.0.2)
17
+ i18n (>= 1.6, < 2)
18
+ minitest (>= 5.1)
19
+ tzinfo (~> 2.0)
20
+ ast (2.4.2)
21
+ concurrent-ruby (1.1.10)
22
+ diff-lcs (1.5.0)
23
+ i18n (1.12.0)
24
+ concurrent-ruby (~> 1.0)
25
+ json (2.6.2)
26
+ minitest (5.16.3)
27
+ parallel (1.22.1)
28
+ parser (3.1.3.0)
29
+ ast (~> 2.4.1)
30
+ rack (3.0.1)
31
+ rainbow (3.1.1)
32
+ rake (13.0.6)
33
+ regexp_parser (2.6.1)
34
+ rexml (3.2.5)
35
+ rspec (3.12.0)
36
+ rspec-core (~> 3.12.0)
37
+ rspec-expectations (~> 3.12.0)
38
+ rspec-mocks (~> 3.12.0)
39
+ rspec-core (3.12.0)
40
+ rspec-support (~> 3.12.0)
41
+ rspec-expectations (3.12.0)
42
+ diff-lcs (>= 1.2.0, < 2.0)
43
+ rspec-support (~> 3.12.0)
44
+ rspec-mocks (3.12.0)
45
+ diff-lcs (>= 1.2.0, < 2.0)
46
+ rspec-support (~> 3.12.0)
47
+ rspec-support (3.12.0)
48
+ rubocop (1.39.0)
49
+ json (~> 2.3)
50
+ parallel (~> 1.10)
51
+ parser (>= 3.1.2.1)
52
+ rainbow (>= 2.2.2, < 4.0)
53
+ regexp_parser (>= 1.8, < 3.0)
54
+ rexml (>= 3.2.5, < 4.0)
55
+ rubocop-ast (>= 1.23.0, < 2.0)
56
+ ruby-progressbar (~> 1.7)
57
+ unicode-display_width (>= 1.4.0, < 3.0)
58
+ rubocop-ast (1.23.0)
59
+ parser (>= 3.1.1.0)
60
+ rubocop-performance (1.15.1)
61
+ rubocop (>= 1.7.0, < 2.0)
62
+ rubocop-ast (>= 0.4.0)
63
+ rubocop-rails (2.17.3)
64
+ activesupport (>= 4.2.0)
65
+ rack (>= 1.1)
66
+ rubocop (>= 1.33.0, < 2.0)
67
+ rubocop-rake (0.6.0)
68
+ rubocop (~> 1.0)
69
+ rubocop-rspec (2.15.0)
70
+ rubocop (~> 1.33)
71
+ rubocop-rubycw (0.1.6)
72
+ rubocop (~> 1.0)
73
+ ruby-progressbar (1.11.0)
74
+ tzinfo (2.0.5)
75
+ concurrent-ruby (~> 1.0)
76
+ unicode-display_width (2.3.0)
77
+
78
+ PLATFORMS
79
+ x86_64-darwin-20
80
+ x86_64-linux
81
+
82
+ DEPENDENCIES
83
+ rake (~> 13.0)
84
+ rspec (~> 3.0)
85
+ rubocop_fonsan_style!
86
+
87
+ BUNDLED WITH
88
+ 2.4.0.dev
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 Fonsan
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,37 @@
1
+ # RubocopFonsanStyle
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/rubocop_fonsan_style`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Install the gem and add to the application's Gemfile by executing:
10
+
11
+ $ bundle add rubocop_fonsan_style
12
+
13
+ If bundler is not being used to manage dependencies, install the gem by executing:
14
+
15
+ $ gem install rubocop_fonsan_style
16
+
17
+ ## Usage
18
+
19
+ TODO: Write usage instructions here
20
+
21
+ ## Development
22
+
23
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
24
+
25
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
26
+
27
+ ## Contributing
28
+
29
+ Bug reports and pull requests are welcome on GitHub at https://github.com/Fonsan/rubocop_fonsan_style. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/Fonsan/rubocop_fonsan_style/blob/main/CODE_OF_CONDUCT.md).
30
+
31
+ ## License
32
+
33
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
34
+
35
+ ## Code of Conduct
36
+
37
+ Everyone interacting in the RubocopFonsanStyle project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/Fonsan/rubocop_fonsan_style/blob/main/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ require 'rubocop/rake_task'
9
+
10
+ RuboCop::RakeTask.new
11
+
12
+ task default: %i[spec rubocop]
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module RubocopFonsanStyle
4
+ VERSION = '0.1.0'
5
+ end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'rubocop_fonsan_style/version'
4
+
5
+ module RubocopFonsanStyle
6
+ class Error < StandardError; end
7
+ # Your code goes here...
8
+ end
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'lib/rubocop_fonsan_style/version'
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'rubocop_fonsan_style'
7
+ spec.version = RubocopFonsanStyle::VERSION
8
+ spec.authors = ['Fonsan']
9
+ spec.email = ['fonsan@gmail.com']
10
+
11
+ spec.summary = 'Fonsan rubocop'
12
+ spec.description = 'An opionated rubocop style'
13
+ spec.homepage = 'https://github.com/Fonsan/rubocop_fonsan_style'
14
+ spec.license = 'MIT'
15
+ spec.required_ruby_version = '>= 2.6.0'
16
+
17
+ spec.metadata['homepage_uri'] = spec.homepage
18
+ spec.metadata['source_code_uri'] = spec.homepage
19
+ # spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
20
+
21
+ # Specify which files should be added to the gem when it is released.
22
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
23
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
24
+ `git ls-files -z`.split("\x0").reject do |f|
25
+ (f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
26
+ end
27
+ end
28
+ spec.bindir = 'exe'
29
+ spec.executables = spec.files.grep(%r{\Aexe/}) {|f| File.basename(f) }
30
+ spec.require_paths = ['lib']
31
+
32
+ # Uncomment to register a new dependency of your gem
33
+ spec.add_dependency 'rubocop', '~> 1.39'
34
+ spec.add_dependency 'rubocop-performance', '~> 1.15'
35
+ spec.add_dependency 'rubocop-rails', '~> 2.17'
36
+ spec.add_dependency 'rubocop-rake', '~> 0.6.0'
37
+ spec.add_dependency 'rubocop-rspec', '~> 2.15'
38
+ spec.add_dependency 'rubocop-rubycw', '~> 0.1'
39
+
40
+ # For more information and examples about making a new gem, check out our
41
+ # guide at: https://bundler.io/guides/creating_gem.html
42
+ spec.metadata['rubygems_mfa_required'] = 'true'
43
+ end
@@ -0,0 +1,4 @@
1
+ module RubocopFonsanStyle
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
metadata ADDED
@@ -0,0 +1,146 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rubocop_fonsan_style
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Fonsan
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2022-11-26 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rubocop
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.39'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.39'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rubocop-performance
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.15'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.15'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rubocop-rails
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '2.17'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '2.17'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rubocop-rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 0.6.0
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 0.6.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubocop-rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '2.15'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '2.15'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubocop-rubycw
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '0.1'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '0.1'
97
+ description: An opionated rubocop style
98
+ email:
99
+ - fonsan@gmail.com
100
+ executables: []
101
+ extensions: []
102
+ extra_rdoc_files: []
103
+ files:
104
+ - ".rubocop.all.yml"
105
+ - ".rubocop.default.yml"
106
+ - ".rubocop.rails.yml"
107
+ - ".rubocop.rspec.yml"
108
+ - ".rubocop.yml"
109
+ - CHANGELOG.md
110
+ - CODE_OF_CONDUCT.md
111
+ - Gemfile
112
+ - Gemfile.lock
113
+ - LICENSE.txt
114
+ - README.md
115
+ - Rakefile
116
+ - lib/rubocop_fonsan_style.rb
117
+ - lib/rubocop_fonsan_style/version.rb
118
+ - rubocop_fonsan_style.gemspec
119
+ - sig/rubocop_fonsan_style.rbs
120
+ homepage: https://github.com/Fonsan/rubocop_fonsan_style
121
+ licenses:
122
+ - MIT
123
+ metadata:
124
+ homepage_uri: https://github.com/Fonsan/rubocop_fonsan_style
125
+ source_code_uri: https://github.com/Fonsan/rubocop_fonsan_style
126
+ rubygems_mfa_required: 'true'
127
+ post_install_message:
128
+ rdoc_options: []
129
+ require_paths:
130
+ - lib
131
+ required_ruby_version: !ruby/object:Gem::Requirement
132
+ requirements:
133
+ - - ">="
134
+ - !ruby/object:Gem::Version
135
+ version: 2.6.0
136
+ required_rubygems_version: !ruby/object:Gem::Requirement
137
+ requirements:
138
+ - - ">="
139
+ - !ruby/object:Gem::Version
140
+ version: '0'
141
+ requirements: []
142
+ rubygems_version: 3.4.0.dev
143
+ signing_key:
144
+ specification_version: 4
145
+ summary: Fonsan rubocop
146
+ test_files: []