rubocop_fonsan_style 0.1.7 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.default.yml +120 -3
- data/.rubocop.rails.yml +15 -1
- data/.rubocop.rspec.yml +7 -42
- data/.rubocop.yml +2 -0
- data/.ruby-version +1 -0
- data/CHANGELOG.md +10 -0
- data/CLAUDE.md +36 -0
- data/Gemfile.lock +92 -76
- data/lib/rubocop_fonsan_style/version.rb +1 -1
- data/rubocop_fonsan_style.gemspec +43 -0
- metadata +33 -19
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 656a6807fd284fad1f3bf2d2263051158b95f2166a666af222d00e1afac4d8c2
|
|
4
|
+
data.tar.gz: 0eb868c7fdfe48961154ebcd4e0f27ce16137d32e5d8fc9d904808037e9d0a8e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ff64b724048f40130c04bde656c39616d445b694cb973e2454c2db68bd893ab360073ca0ad8783e4af140de45a2e8751011ca6e08958ff00b4ecb7c86a1cf202
|
|
7
|
+
data.tar.gz: 06da7a4f74355eb263dcfdedf60501296d074b719475073d82f813b9d0b5422896fa0b4d0146c10e500bb0c3f824b14d21c453918eadc2c7ca607fb76dba2d4a
|
data/.rubocop.default.yml
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
plugins:
|
|
2
2
|
- rubocop-performance
|
|
3
3
|
- rubocop-rubycw
|
|
4
4
|
AllCops:
|
|
5
5
|
SuggestExtensions: false
|
|
6
|
-
|
|
6
|
+
UseProjectIndex: true
|
|
7
7
|
|
|
8
8
|
Gemspec/AddRuntimeDependency: # new in 1.65
|
|
9
9
|
Enabled: true
|
|
@@ -87,7 +87,10 @@ Layout/SpaceInsideBlockBraces:
|
|
|
87
87
|
SpaceBeforeBlockParameters: false
|
|
88
88
|
Layout/SpaceInsideHashLiteralBraces:
|
|
89
89
|
EnforcedStyle: no_space
|
|
90
|
-
|
|
90
|
+
Lint/DuplicateSetElement: # new in 1.67
|
|
91
|
+
Enabled: true
|
|
92
|
+
Lint/UnescapedBracketInRegexp: # new in 1.68
|
|
93
|
+
Enabled: true
|
|
91
94
|
Lint/LiteralAssignmentInCondition: # new in 1.58
|
|
92
95
|
Enabled: false
|
|
93
96
|
Lint/ItWithoutArgumentsInBlock: # new in 1.59
|
|
@@ -484,3 +487,117 @@ Style/TrailingCommaInArrayLiteral:
|
|
|
484
487
|
EnforcedStyleForMultiline: consistent_comma
|
|
485
488
|
Style/TrailingCommaInHashLiteral:
|
|
486
489
|
EnforcedStyleForMultiline: consistent_comma
|
|
490
|
+
Style/AmbiguousEndlessMethodDefinition: # new in 1.68
|
|
491
|
+
Enabled: true
|
|
492
|
+
Style/BitwisePredicate: # new in 1.68
|
|
493
|
+
Enabled: true
|
|
494
|
+
Style/CombinableDefined: # new in 1.68
|
|
495
|
+
Enabled: true
|
|
496
|
+
Style/KeywordArgumentsMerging: # new in 1.68
|
|
497
|
+
Enabled: true
|
|
498
|
+
Style/SafeNavigationChainLength: # new in 1.68
|
|
499
|
+
Enabled: true
|
|
500
|
+
Gemspec/AttributeAssignment: # new in 1.77
|
|
501
|
+
Enabled: true
|
|
502
|
+
Layout/EmptyLinesAfterModuleInclusion: # new in 1.79
|
|
503
|
+
Enabled: false
|
|
504
|
+
Lint/ArgumentMismatch: # new in 1.90
|
|
505
|
+
Enabled: true
|
|
506
|
+
Lint/ArrayLiteralInRegexp: # new in 1.71
|
|
507
|
+
Enabled: true
|
|
508
|
+
Lint/ConstantReassignment: # new in 1.70
|
|
509
|
+
Enabled: true
|
|
510
|
+
Lint/DataDefineOverride: # new in 1.85
|
|
511
|
+
Enabled: true
|
|
512
|
+
Lint/DeprecatedReference: # new in 1.89
|
|
513
|
+
Enabled: true
|
|
514
|
+
Lint/HashNewWithKeywordArgumentsAsDefault: # new in 1.69
|
|
515
|
+
Enabled: true
|
|
516
|
+
Lint/MisplacedMagicComment: # new in 1.91
|
|
517
|
+
Enabled: true
|
|
518
|
+
Lint/NameTypo: # new in 1.89
|
|
519
|
+
Enabled: true
|
|
520
|
+
Lint/NumericOperationWithConstantResult: # new in 1.69
|
|
521
|
+
Enabled: true
|
|
522
|
+
Lint/RedundantTypeConversion: # new in 1.72
|
|
523
|
+
Enabled: true
|
|
524
|
+
Lint/SharedMutableDefault: # new in 1.70
|
|
525
|
+
Enabled: true
|
|
526
|
+
Lint/SuperArgumentMismatch: # new in 1.90
|
|
527
|
+
Enabled: true
|
|
528
|
+
Lint/SuppressedExceptionInNumberConversion: # new in 1.72
|
|
529
|
+
Enabled: true
|
|
530
|
+
Lint/UnreachablePatternBranch: # new in 1.85
|
|
531
|
+
Enabled: true
|
|
532
|
+
Lint/UselessConstantScoping: # new in 1.72
|
|
533
|
+
Enabled: true
|
|
534
|
+
Lint/UselessDefaultValueArgument: # new in 1.76
|
|
535
|
+
Enabled: true
|
|
536
|
+
Lint/UselessDefined: # new in 1.69
|
|
537
|
+
Enabled: true
|
|
538
|
+
Lint/UselessOr: # new in 1.76
|
|
539
|
+
Enabled: true
|
|
540
|
+
Naming/PredicateMethod: # new in 1.76
|
|
541
|
+
Enabled: true
|
|
542
|
+
Style/ArrayIntersectWithSingleElement: # new in 1.81
|
|
543
|
+
Enabled: true
|
|
544
|
+
Style/CollectionQuerying: # new in 1.77
|
|
545
|
+
Enabled: true
|
|
546
|
+
Style/ComparableBetween: # new in 1.74
|
|
547
|
+
Enabled: true
|
|
548
|
+
Style/DigChain: # new in 1.69
|
|
549
|
+
Enabled: true
|
|
550
|
+
Style/DirectiveScope: # new in 1.90
|
|
551
|
+
Enabled: true
|
|
552
|
+
Style/EmptyClassDefinition: # new in 1.84
|
|
553
|
+
Enabled: true
|
|
554
|
+
Style/EmptyStringInsideInterpolation: # new in 1.76
|
|
555
|
+
Enabled: true
|
|
556
|
+
Style/FileNull: # new in 1.69
|
|
557
|
+
Enabled: true
|
|
558
|
+
Style/FileOpen: # new in 1.85
|
|
559
|
+
Enabled: true
|
|
560
|
+
Style/FileTouch: # new in 1.69
|
|
561
|
+
Enabled: true
|
|
562
|
+
Style/HashFetchChain: # new in 1.75
|
|
563
|
+
Enabled: true
|
|
564
|
+
Style/HashSlice: # new in 1.71
|
|
565
|
+
Enabled: true
|
|
566
|
+
Style/ItAssignment: # new in 1.70
|
|
567
|
+
Enabled: true
|
|
568
|
+
Style/ItBlockParameter: # new in 1.75
|
|
569
|
+
Enabled: true
|
|
570
|
+
Style/MapJoin: # new in 1.85
|
|
571
|
+
Enabled: true
|
|
572
|
+
Style/ModuleMemberExistenceCheck: # new in 1.82
|
|
573
|
+
Enabled: true
|
|
574
|
+
Style/NegativeArrayIndex: # new in 1.84
|
|
575
|
+
Enabled: true
|
|
576
|
+
Style/OneClassPerFile: # new in 1.85
|
|
577
|
+
Enabled: false
|
|
578
|
+
Style/PartitionInsteadOfDoubleSelect: # new in 1.85
|
|
579
|
+
Enabled: true
|
|
580
|
+
Style/PredicateWithKind: # new in 1.85
|
|
581
|
+
Enabled: true
|
|
582
|
+
Style/ReduceToHash: # new in 1.85
|
|
583
|
+
Enabled: true
|
|
584
|
+
Style/RedundantArrayFlatten: # new in 1.76
|
|
585
|
+
Enabled: true
|
|
586
|
+
Style/RedundantFormat: # new in 1.72
|
|
587
|
+
Enabled: true
|
|
588
|
+
Style/RedundantMinMaxBy: # new in 1.85
|
|
589
|
+
Enabled: true
|
|
590
|
+
Style/ReverseFind: # new in 1.84
|
|
591
|
+
Enabled: true
|
|
592
|
+
Style/SelectByKind: # new in 1.85
|
|
593
|
+
Enabled: true
|
|
594
|
+
Style/SelectByRange: # new in 1.85
|
|
595
|
+
Enabled: true
|
|
596
|
+
Style/TallyMethod: # new in 1.85
|
|
597
|
+
Enabled: true
|
|
598
|
+
Style/TimeNow: # new in 1.90
|
|
599
|
+
Enabled: true
|
|
600
|
+
Performance/StringBytesize: # new in 1.23
|
|
601
|
+
Enabled: true
|
|
602
|
+
Performance/ZipWithoutBlock: # new in 1.24
|
|
603
|
+
Enabled: true
|
data/.rubocop.rails.yml
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
plugins:
|
|
2
2
|
- rubocop-rails
|
|
3
3
|
|
|
4
4
|
Rails/EnumSyntax: # new in 2.26
|
|
@@ -127,3 +127,17 @@ Rails/WhereMissing: # new in 2.16
|
|
|
127
127
|
Enabled: true
|
|
128
128
|
Rails/WhereNotWithMultipleConditions: # new in 2.17
|
|
129
129
|
Enabled: true
|
|
130
|
+
Rails/FindByOrAssignmentMemoization: # new in 2.33
|
|
131
|
+
Enabled: false
|
|
132
|
+
Rails/HttpStatusNameConsistency: # new in 2.34
|
|
133
|
+
Enabled: true
|
|
134
|
+
Rails/MultipleRoutePaths: # new in 2.29
|
|
135
|
+
Enabled: true
|
|
136
|
+
Rails/OrderArguments: # new in 2.33
|
|
137
|
+
Enabled: true
|
|
138
|
+
Rails/RedirectBackOrTo: # new in 2.34
|
|
139
|
+
Enabled: true
|
|
140
|
+
Rails/SelectMap: # new in 2.21
|
|
141
|
+
Enabled: true
|
|
142
|
+
Rails/StrongParametersExpect: # new in 2.29
|
|
143
|
+
Enabled: true
|
data/.rubocop.rspec.yml
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
plugins:
|
|
2
2
|
- rubocop-rspec
|
|
3
3
|
|
|
4
|
-
Capybara/RedundantWithinFind: # new in 2.20
|
|
5
|
-
Enabled: true
|
|
6
|
-
FactoryBot/ExcessiveCreateList: # new in 2.25
|
|
7
|
-
Enabled: true
|
|
8
4
|
RSpec/EmptyOutput: # new in 2.29
|
|
9
5
|
Enabled: true
|
|
10
6
|
RSpec/ExpectInLet: # new in 2.30
|
|
@@ -29,8 +25,6 @@ RSpec/IdenticalEqualityAssertion: # new in 2.4
|
|
|
29
25
|
Enabled: true
|
|
30
26
|
RSpec/SubjectDeclaration: # new in 2.5
|
|
31
27
|
Enabled: true
|
|
32
|
-
RSpecRails/AvoidSetupHook: # new in 2.4
|
|
33
|
-
Enabled: true
|
|
34
28
|
RSpec/StubbedMock: # (new in 1.44)
|
|
35
29
|
Enabled: true
|
|
36
30
|
RSpec/MultipleMemoizedHelpers:
|
|
@@ -47,25 +41,7 @@ RSpec/SortMetadata: # new in 2.14
|
|
|
47
41
|
Enabled: true
|
|
48
42
|
RSpec/VerifiedDoubleReference: # new in 2.10.0
|
|
49
43
|
Enabled: true
|
|
50
|
-
|
|
51
|
-
Enabled: true
|
|
52
|
-
Capybara/SpecificActions: # new in 2.14
|
|
53
|
-
Enabled: true
|
|
54
|
-
Capybara/SpecificFinders: # new in 2.13
|
|
55
|
-
Enabled: true
|
|
56
|
-
Capybara/MatchStyle: # new in <<next>>
|
|
57
|
-
Enabled: true
|
|
58
|
-
Capybara/SpecificMatcher: # new in 2.12
|
|
59
|
-
Enabled: true
|
|
60
|
-
Capybara/ClickLinkOrButtonStyle: # new in 2.19
|
|
61
|
-
Enabled: true
|
|
62
|
-
Capybara/RSpec/HaveSelector: # new in 2.19
|
|
63
|
-
Enabled: true
|
|
64
|
-
Capybara/RSpec/PredicateMatcher: # new in 2.19
|
|
65
|
-
Enabled: true
|
|
66
|
-
RSpecRails/HaveHttpStatus: # new in 2.12
|
|
67
|
-
Enabled: true
|
|
68
|
-
RSpecRails/InferredSpecType: # new in 2.14
|
|
44
|
+
RSpec/PredicateMatcher: # new in 2.19
|
|
69
45
|
Enabled: true
|
|
70
46
|
RSpec/NamedSubject:
|
|
71
47
|
Enabled: false
|
|
@@ -103,24 +79,13 @@ RSpec/SpecFilePathFormat: # new in 2.24
|
|
|
103
79
|
Enabled: true
|
|
104
80
|
RSpec/SpecFilePathSuffix: # new in 2.24
|
|
105
81
|
Enabled: true
|
|
106
|
-
|
|
107
|
-
Enabled: true
|
|
108
|
-
RSpecRails/TravelAround: # new in 2.19
|
|
109
|
-
Enabled: true
|
|
110
|
-
RSpecRails/MinitestAssertions: # new in 2.17
|
|
111
|
-
Enabled: true
|
|
112
|
-
|
|
113
|
-
FactoryBot/SyntaxMethods: # new in 2.7
|
|
114
|
-
Enabled: true
|
|
115
|
-
FactoryBot/ConsistentParenthesesStyle: # new in 2.14
|
|
82
|
+
RSpec/DiscardedMatcher: # new in 3.10
|
|
116
83
|
Enabled: true
|
|
117
|
-
|
|
84
|
+
RSpec/IncludeExamples: # new in 3.6
|
|
118
85
|
Enabled: true
|
|
119
|
-
|
|
86
|
+
RSpec/LeakyLocalVariable: # new in 3.8
|
|
120
87
|
Enabled: true
|
|
121
|
-
|
|
88
|
+
RSpec/MatchWithSimpleRegex: # new in 3.10
|
|
122
89
|
Enabled: true
|
|
123
|
-
|
|
90
|
+
RSpec/Output: # new in 3.9
|
|
124
91
|
Enabled: true
|
|
125
|
-
FactoryBot/RedundantFactoryOption: # new in 2.23
|
|
126
|
-
Enabled: true
|
data/.rubocop.yml
CHANGED
data/.ruby-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
4.0.3
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [0.2.0] - 2026-10-27
|
|
4
|
+
|
|
5
|
+
- Require Ruby >= 3.4; CI on Ruby 3.4 and 4.0
|
|
6
|
+
- Stop setting `TargetRubyVersion` in the shared config so RuboCop infers it from each project (`.ruby-version`, Gemfile.lock, gemspec)
|
|
7
|
+
- Bump rubocop to 1.92, rubocop-performance 1.27, rubocop-rails 2.38, rubocop-rspec 3.10, rubocop-rubycw 0.2, haml_lint 0.78
|
|
8
|
+
- Load extensions via `plugins:` instead of `require:`
|
|
9
|
+
- Remove obsolete `RSpec/StringAsInstanceDoubleConstant` (use `RSpec/VerifiedDoubleReference`)
|
|
10
|
+
- Enable `AllCops/UseProjectIndex` and depend on `rubydex` for cross-file cops (ArgumentMismatch, SuperArgumentMismatch, NameTypo, DeprecatedReference)
|
|
11
|
+
- Configure all 64 new cops; disabled: `Layout/EmptyLinesAfterModuleInclusion`, `Style/OneClassPerFile`, `Rails/FindByOrAssignmentMemoization`
|
|
12
|
+
|
|
3
13
|
## [0.1.0] - 2022-11-26
|
|
4
14
|
|
|
5
15
|
- Initial release
|
data/CLAUDE.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# CLAUDE.md
|
|
2
|
+
|
|
3
|
+
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
|
|
4
|
+
|
|
5
|
+
## What this is
|
|
6
|
+
|
|
7
|
+
A gem that ships an opinionated, shareable RuboCop configuration. The product is the YAML files at the repo root, not Ruby code: `lib/` contains only the version constant and an empty module.
|
|
8
|
+
|
|
9
|
+
## Commands
|
|
10
|
+
|
|
11
|
+
- `bin/setup`: runs `bundle install`
|
|
12
|
+
- `bundle exec rake`: the default task, which runs `spec` and then `rubocop`. CI runs this on Ruby 3.4 and 4.0 (`.github/workflows/main.yml`).
|
|
13
|
+
- `bundle exec rubocop`: lints the repo with its own config (`.rubocop.yml`). Pass a path to lint a single file.
|
|
14
|
+
- `bundle exec rake spec`: `spec/rubocop_fonsan_style_spec.rb` loads each shipped config and fails on removed, renamed or unknown cops. It also merges `.rubocop.all.yml` with RuboCop's defaults and fails on any cop still `pending`, including new cops no file mentions yet. After a gem bump, this is how missing decisions show up.
|
|
15
|
+
- `bin/rubocop_fonsan_style [args]`: runs RuboCop through `bundler/inline`, using only the gemspec's runtime dependencies. Use it to try the cops against another project without editing that project's Gemfile.
|
|
16
|
+
- Release: bump `VERSION` in `lib/rubocop_fonsan_style/version.rb`, run `bundle install` so `Gemfile.lock` picks up the new version, then run `bundle exec rake release`. Built `*.gem` files are gitignored.
|
|
17
|
+
|
|
18
|
+
## Config layout
|
|
19
|
+
|
|
20
|
+
The configs build on each other through `inherit_from`:
|
|
21
|
+
|
|
22
|
+
- `.rubocop.default.yml`: the core Ruby style. Loads `rubocop-performance` and `rubocop-rubycw` via `plugins:` and enables `AllCops/UseProjectIndex` (backed by the `rubydex` runtime dependency). It deliberately sets no `TargetRubyVersion`, so RuboCop infers it from each consuming project.
|
|
23
|
+
- `.rubocop.rails.yml`: loads `rubocop-rails` via `plugins:`.
|
|
24
|
+
- `.rubocop.rspec.yml`: loads `rubocop-rspec` via `plugins:`.
|
|
25
|
+
- `.rubocop.all.yml`: inherits the three files above.
|
|
26
|
+
- `.rubocop.yml`: this repo's own config, which inherits `.rubocop.all.yml` and pins `TargetRubyVersion: 3.4` to match the gemspec floor.
|
|
27
|
+
|
|
28
|
+
Consuming projects pick one of these files with `inherit_gem` (for example `inherit_gem: { rubocop_fonsan_style: .rubocop.all.yml }`). File names and paths are therefore a public interface, so don't rename or move them.
|
|
29
|
+
|
|
30
|
+
## Conventions when editing configs
|
|
31
|
+
|
|
32
|
+
- When enabling a cop that RuboCop marks as pending, add an inline comment with the version that introduced it, e.g. `Style/SuperArguments: # new in 1.64`. Each upgrade appends its batch of new cops at the end of the relevant file. Every pending cop gets an explicit `Enabled: true` or `Enabled: false`; never use `AllCops/NewCops`.
|
|
33
|
+
- Cop and plugin versions are tied to the version constraints in the gemspec (`rubocop ~> 1.92`, `rubocop-rails ~> 2.38`, `rubocop-rspec ~> 3.10`, `rubocop-performance ~> 1.27`, `rubocop-rubycw ~> 0.2`). A cop that only exists in a newer release needs a gemspec bump first. Keep runtime dependencies in the gemspec; the Gemfile only holds test/dev gems.
|
|
34
|
+
- Plugins go under `plugins:`, not `require:` (deprecated since rubocop 1.72).
|
|
35
|
+
- `haml_lint` is a runtime dependency, but this repo has no haml-lint config.
|
|
36
|
+
- Main style choices to stay consistent with: fixed indentation instead of alignment (arguments, arrays, parameters, multiline calls), trailing `.` for method chains, `end` aligned with the variable, no spaces inside hash braces or before block params (`{|x| ... }`), line length 200, method length 15, `Style/FrozenStringLiteralComment` disabled, and `Metrics/AbcSize`, `ClassLength` and `ModuleLength` disabled.
|
data/Gemfile.lock
CHANGED
|
@@ -1,116 +1,132 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
rubocop_fonsan_style (0.
|
|
5
|
-
haml_lint (~> 0.
|
|
6
|
-
rubocop (~> 1.
|
|
7
|
-
rubocop-performance (~> 1.
|
|
8
|
-
rubocop-rails (~> 2.
|
|
9
|
-
rubocop-rspec (~>
|
|
10
|
-
rubocop-rubycw (~> 0.
|
|
4
|
+
rubocop_fonsan_style (0.2.0)
|
|
5
|
+
haml_lint (~> 0.78)
|
|
6
|
+
rubocop (~> 1.92)
|
|
7
|
+
rubocop-performance (~> 1.27)
|
|
8
|
+
rubocop-rails (~> 2.38)
|
|
9
|
+
rubocop-rspec (~> 3.10)
|
|
10
|
+
rubocop-rubycw (~> 0.2)
|
|
11
|
+
rubydex (~> 0.4)
|
|
11
12
|
|
|
12
13
|
GEM
|
|
13
14
|
remote: https://rubygems.org/
|
|
14
15
|
specs:
|
|
15
|
-
activesupport (
|
|
16
|
+
activesupport (8.1.4)
|
|
16
17
|
base64
|
|
17
18
|
bigdecimal
|
|
18
|
-
concurrent-ruby (~> 1.0, >= 1.
|
|
19
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
19
20
|
connection_pool (>= 2.2.5)
|
|
20
21
|
drb
|
|
21
22
|
i18n (>= 1.6, < 2)
|
|
23
|
+
json
|
|
24
|
+
logger (>= 1.4.2)
|
|
22
25
|
minitest (>= 5.1)
|
|
23
|
-
|
|
24
|
-
tzinfo (~> 2.0)
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
haml (
|
|
26
|
+
securerandom (>= 0.3)
|
|
27
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
|
28
|
+
uri (>= 0.13.1)
|
|
29
|
+
ast (2.4.3)
|
|
30
|
+
base64 (0.3.0)
|
|
31
|
+
bigdecimal (4.1.3)
|
|
32
|
+
concurrent-ruby (1.3.8)
|
|
33
|
+
connection_pool (3.0.2)
|
|
34
|
+
diff-lcs (1.6.2)
|
|
35
|
+
drb (2.2.3)
|
|
36
|
+
haml (7.5.1)
|
|
37
|
+
prism (>= 1.1.0)
|
|
34
38
|
temple (>= 0.8.2)
|
|
35
39
|
thor
|
|
36
40
|
tilt
|
|
37
|
-
haml_lint (0.
|
|
38
|
-
haml (>=
|
|
39
|
-
parallel (
|
|
41
|
+
haml_lint (0.78.0)
|
|
42
|
+
haml (>= 5.0)
|
|
43
|
+
parallel (>= 1.10)
|
|
40
44
|
rainbow
|
|
41
45
|
rubocop (>= 1.0)
|
|
42
46
|
sysexits (~> 1.1)
|
|
43
|
-
i18n (1.
|
|
47
|
+
i18n (1.15.2)
|
|
44
48
|
concurrent-ruby (~> 1.0)
|
|
45
|
-
json (
|
|
46
|
-
language_server-protocol (3.17.0.
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
json (3.1.0)
|
|
50
|
+
language_server-protocol (3.17.0.6)
|
|
51
|
+
lint_roller (1.1.0)
|
|
52
|
+
logger (1.7.0)
|
|
53
|
+
minitest (6.0.6)
|
|
54
|
+
drb (~> 2.0)
|
|
55
|
+
prism (~> 1.5)
|
|
56
|
+
parallel (2.3.0)
|
|
57
|
+
parser (3.3.13.0)
|
|
51
58
|
ast (~> 2.4.1)
|
|
52
59
|
racc
|
|
53
|
-
|
|
54
|
-
|
|
60
|
+
prism (1.9.0)
|
|
61
|
+
racc (1.8.1)
|
|
62
|
+
rack (3.2.7)
|
|
55
63
|
rainbow (3.1.1)
|
|
56
|
-
rake (13.
|
|
57
|
-
regexp_parser (2.
|
|
58
|
-
rspec (3.
|
|
59
|
-
rspec-core (~> 3.
|
|
60
|
-
rspec-expectations (~> 3.
|
|
61
|
-
rspec-mocks (~> 3.
|
|
62
|
-
rspec-core (3.
|
|
63
|
-
rspec-support (~> 3.
|
|
64
|
-
rspec-expectations (3.
|
|
64
|
+
rake (13.4.2)
|
|
65
|
+
regexp_parser (2.13.1)
|
|
66
|
+
rspec (3.13.2)
|
|
67
|
+
rspec-core (~> 3.13.0)
|
|
68
|
+
rspec-expectations (~> 3.13.0)
|
|
69
|
+
rspec-mocks (~> 3.13.0)
|
|
70
|
+
rspec-core (3.13.6)
|
|
71
|
+
rspec-support (~> 3.13.0)
|
|
72
|
+
rspec-expectations (3.13.5)
|
|
65
73
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
66
|
-
rspec-support (~> 3.
|
|
67
|
-
rspec-mocks (3.
|
|
74
|
+
rspec-support (~> 3.13.0)
|
|
75
|
+
rspec-mocks (3.13.8)
|
|
68
76
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
69
|
-
rspec-support (~> 3.
|
|
70
|
-
rspec-support (3.
|
|
71
|
-
rubocop (1.
|
|
72
|
-
json (
|
|
73
|
-
language_server-protocol (
|
|
74
|
-
|
|
77
|
+
rspec-support (~> 3.13.0)
|
|
78
|
+
rspec-support (3.13.7)
|
|
79
|
+
rubocop (1.92.1)
|
|
80
|
+
json (>= 2.3)
|
|
81
|
+
language_server-protocol (~> 3.17.0.2)
|
|
82
|
+
lint_roller (~> 1.1.0)
|
|
83
|
+
parallel (>= 1.10)
|
|
75
84
|
parser (>= 3.3.0.2)
|
|
76
85
|
rainbow (>= 2.2.2, < 4.0)
|
|
77
|
-
regexp_parser (>= 2.
|
|
78
|
-
rubocop-ast (>= 1.
|
|
86
|
+
regexp_parser (>= 2.11.3, < 3.0)
|
|
87
|
+
rubocop-ast (>= 1.49.0, < 2.0)
|
|
79
88
|
ruby-progressbar (~> 1.7)
|
|
80
|
-
unicode-display_width (>= 2.4.0, <
|
|
81
|
-
rubocop-ast (1.
|
|
82
|
-
parser (>= 3.3.
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
rubocop (
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
rubocop-ast (>= 1.31.1, < 2.0)
|
|
90
|
-
rubocop-rails (2.26.2)
|
|
89
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
|
90
|
+
rubocop-ast (1.50.0)
|
|
91
|
+
parser (>= 3.3.7.2)
|
|
92
|
+
prism (~> 1.7)
|
|
93
|
+
rubocop-performance (1.27.0)
|
|
94
|
+
lint_roller (~> 1.1)
|
|
95
|
+
rubocop (>= 1.89.0, < 2.0)
|
|
96
|
+
rubocop-ast (>= 1.47.1, < 2.0)
|
|
97
|
+
rubocop-rails (2.38.0)
|
|
91
98
|
activesupport (>= 4.2.0)
|
|
99
|
+
lint_roller (~> 1.1)
|
|
92
100
|
rack (>= 1.1)
|
|
93
|
-
rubocop (>= 1.
|
|
94
|
-
rubocop-ast (>= 1.
|
|
95
|
-
rubocop-rspec (
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
rubocop
|
|
99
|
-
rubocop-rubycw (0.
|
|
100
|
-
|
|
101
|
+
rubocop (>= 1.89.0, < 2.0)
|
|
102
|
+
rubocop-ast (>= 1.44.0, < 2.0)
|
|
103
|
+
rubocop-rspec (3.10.2)
|
|
104
|
+
lint_roller (~> 1.1)
|
|
105
|
+
regexp_parser (>= 2.0)
|
|
106
|
+
rubocop (~> 1.86, >= 1.86.2)
|
|
107
|
+
rubocop-rubycw (0.2.2)
|
|
108
|
+
lint_roller (~> 1.1)
|
|
109
|
+
rubocop (~> 1.72, >= 1.72.1)
|
|
101
110
|
ruby-progressbar (1.13.0)
|
|
102
|
-
|
|
111
|
+
rubydex (0.4.3-arm64-darwin)
|
|
112
|
+
rubydex (0.4.3-x86_64-darwin)
|
|
113
|
+
rubydex (0.4.3-x86_64-linux)
|
|
114
|
+
securerandom (0.4.1)
|
|
103
115
|
sysexits (1.2.0)
|
|
104
|
-
temple (0.10.
|
|
105
|
-
thor (1.
|
|
106
|
-
tilt (2.
|
|
116
|
+
temple (0.10.7)
|
|
117
|
+
thor (1.5.0)
|
|
118
|
+
tilt (2.9.0)
|
|
107
119
|
tzinfo (2.0.6)
|
|
108
120
|
concurrent-ruby (~> 1.0)
|
|
109
|
-
unicode-display_width (
|
|
121
|
+
unicode-display_width (3.3.0)
|
|
122
|
+
unicode-emoji (~> 4.3)
|
|
123
|
+
unicode-emoji (4.3.0)
|
|
124
|
+
uri (1.1.2)
|
|
110
125
|
|
|
111
126
|
PLATFORMS
|
|
112
127
|
arm64-darwin-22
|
|
113
128
|
arm64-darwin-23
|
|
129
|
+
arm64-darwin-25
|
|
114
130
|
x86_64-darwin-20
|
|
115
131
|
x86_64-darwin-22
|
|
116
132
|
x86_64-linux
|
|
@@ -121,4 +137,4 @@ DEPENDENCIES
|
|
|
121
137
|
rubocop_fonsan_style!
|
|
122
138
|
|
|
123
139
|
BUNDLED WITH
|
|
124
|
-
|
|
140
|
+
4.0.11
|
|
@@ -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 = '>= 3.4.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
|
+
spec.add_dependency 'haml_lint', '~> 0.78'
|
|
33
|
+
spec.add_dependency 'rubocop', '~> 1.92'
|
|
34
|
+
spec.add_dependency 'rubocop-performance', '~> 1.27'
|
|
35
|
+
spec.add_dependency 'rubocop-rails', '~> 2.38'
|
|
36
|
+
spec.add_dependency 'rubocop-rspec', '~> 3.10'
|
|
37
|
+
spec.add_dependency 'rubocop-rubycw', '~> 0.2'
|
|
38
|
+
spec.add_dependency 'rubydex', '~> 0.4'
|
|
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
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rubocop_fonsan_style
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Fonsan
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: haml_lint
|
|
@@ -16,84 +15,98 @@ dependencies:
|
|
|
16
15
|
requirements:
|
|
17
16
|
- - "~>"
|
|
18
17
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '0.
|
|
18
|
+
version: '0.78'
|
|
20
19
|
type: :runtime
|
|
21
20
|
prerelease: false
|
|
22
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
22
|
requirements:
|
|
24
23
|
- - "~>"
|
|
25
24
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '0.
|
|
25
|
+
version: '0.78'
|
|
27
26
|
- !ruby/object:Gem::Dependency
|
|
28
27
|
name: rubocop
|
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
|
30
29
|
requirements:
|
|
31
30
|
- - "~>"
|
|
32
31
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '1.
|
|
32
|
+
version: '1.92'
|
|
34
33
|
type: :runtime
|
|
35
34
|
prerelease: false
|
|
36
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
36
|
requirements:
|
|
38
37
|
- - "~>"
|
|
39
38
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: '1.
|
|
39
|
+
version: '1.92'
|
|
41
40
|
- !ruby/object:Gem::Dependency
|
|
42
41
|
name: rubocop-performance
|
|
43
42
|
requirement: !ruby/object:Gem::Requirement
|
|
44
43
|
requirements:
|
|
45
44
|
- - "~>"
|
|
46
45
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: '1.
|
|
46
|
+
version: '1.27'
|
|
48
47
|
type: :runtime
|
|
49
48
|
prerelease: false
|
|
50
49
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
50
|
requirements:
|
|
52
51
|
- - "~>"
|
|
53
52
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: '1.
|
|
53
|
+
version: '1.27'
|
|
55
54
|
- !ruby/object:Gem::Dependency
|
|
56
55
|
name: rubocop-rails
|
|
57
56
|
requirement: !ruby/object:Gem::Requirement
|
|
58
57
|
requirements:
|
|
59
58
|
- - "~>"
|
|
60
59
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: '2.
|
|
60
|
+
version: '2.38'
|
|
62
61
|
type: :runtime
|
|
63
62
|
prerelease: false
|
|
64
63
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
64
|
requirements:
|
|
66
65
|
- - "~>"
|
|
67
66
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: '2.
|
|
67
|
+
version: '2.38'
|
|
69
68
|
- !ruby/object:Gem::Dependency
|
|
70
69
|
name: rubocop-rspec
|
|
71
70
|
requirement: !ruby/object:Gem::Requirement
|
|
72
71
|
requirements:
|
|
73
72
|
- - "~>"
|
|
74
73
|
- !ruby/object:Gem::Version
|
|
75
|
-
version: '
|
|
74
|
+
version: '3.10'
|
|
76
75
|
type: :runtime
|
|
77
76
|
prerelease: false
|
|
78
77
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
78
|
requirements:
|
|
80
79
|
- - "~>"
|
|
81
80
|
- !ruby/object:Gem::Version
|
|
82
|
-
version: '
|
|
81
|
+
version: '3.10'
|
|
83
82
|
- !ruby/object:Gem::Dependency
|
|
84
83
|
name: rubocop-rubycw
|
|
85
84
|
requirement: !ruby/object:Gem::Requirement
|
|
86
85
|
requirements:
|
|
87
86
|
- - "~>"
|
|
88
87
|
- !ruby/object:Gem::Version
|
|
89
|
-
version: '0.
|
|
88
|
+
version: '0.2'
|
|
90
89
|
type: :runtime
|
|
91
90
|
prerelease: false
|
|
92
91
|
version_requirements: !ruby/object:Gem::Requirement
|
|
93
92
|
requirements:
|
|
94
93
|
- - "~>"
|
|
95
94
|
- !ruby/object:Gem::Version
|
|
96
|
-
version: '0.
|
|
95
|
+
version: '0.2'
|
|
96
|
+
- !ruby/object:Gem::Dependency
|
|
97
|
+
name: rubydex
|
|
98
|
+
requirement: !ruby/object:Gem::Requirement
|
|
99
|
+
requirements:
|
|
100
|
+
- - "~>"
|
|
101
|
+
- !ruby/object:Gem::Version
|
|
102
|
+
version: '0.4'
|
|
103
|
+
type: :runtime
|
|
104
|
+
prerelease: false
|
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
106
|
+
requirements:
|
|
107
|
+
- - "~>"
|
|
108
|
+
- !ruby/object:Gem::Version
|
|
109
|
+
version: '0.4'
|
|
97
110
|
description: An opionated rubocop style
|
|
98
111
|
email:
|
|
99
112
|
- fonsan@gmail.com
|
|
@@ -106,7 +119,9 @@ files:
|
|
|
106
119
|
- ".rubocop.rails.yml"
|
|
107
120
|
- ".rubocop.rspec.yml"
|
|
108
121
|
- ".rubocop.yml"
|
|
122
|
+
- ".ruby-version"
|
|
109
123
|
- CHANGELOG.md
|
|
124
|
+
- CLAUDE.md
|
|
110
125
|
- CODE_OF_CONDUCT.md
|
|
111
126
|
- Gemfile
|
|
112
127
|
- Gemfile.lock
|
|
@@ -115,6 +130,7 @@ files:
|
|
|
115
130
|
- Rakefile
|
|
116
131
|
- lib/rubocop_fonsan_style.rb
|
|
117
132
|
- lib/rubocop_fonsan_style/version.rb
|
|
133
|
+
- rubocop_fonsan_style.gemspec
|
|
118
134
|
- sig/rubocop_fonsan_style.rbs
|
|
119
135
|
homepage: https://github.com/Fonsan/rubocop_fonsan_style
|
|
120
136
|
licenses:
|
|
@@ -123,7 +139,6 @@ metadata:
|
|
|
123
139
|
homepage_uri: https://github.com/Fonsan/rubocop_fonsan_style
|
|
124
140
|
source_code_uri: https://github.com/Fonsan/rubocop_fonsan_style
|
|
125
141
|
rubygems_mfa_required: 'true'
|
|
126
|
-
post_install_message:
|
|
127
142
|
rdoc_options: []
|
|
128
143
|
require_paths:
|
|
129
144
|
- lib
|
|
@@ -131,15 +146,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
131
146
|
requirements:
|
|
132
147
|
- - ">="
|
|
133
148
|
- !ruby/object:Gem::Version
|
|
134
|
-
version: 3.
|
|
149
|
+
version: 3.4.0
|
|
135
150
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
136
151
|
requirements:
|
|
137
152
|
- - ">="
|
|
138
153
|
- !ruby/object:Gem::Version
|
|
139
154
|
version: '0'
|
|
140
155
|
requirements: []
|
|
141
|
-
rubygems_version:
|
|
142
|
-
signing_key:
|
|
156
|
+
rubygems_version: 4.0.6
|
|
143
157
|
specification_version: 4
|
|
144
158
|
summary: Fonsan rubocop
|
|
145
159
|
test_files: []
|