standard-rails 0.2.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +38 -26
- data/README.md +12 -7
- data/config/base.yml +98 -792
- data/lib/standard/rails/load_rubocop_rails_without_the_monkey_patch.rb +9 -1
- data/lib/standard/rails/plugin.rb +9 -5
- data/lib/standard/rails/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5eeb3e6ba8d4da6c2401a846947814610787ca970fb46f12a9e3afbdb5b5b17e
|
4
|
+
data.tar.gz: 267862f4b09d3a910eee0f38c7851443a6e4a7264502ca22c1e43424e7315fd3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63d213467768a22f8dd7bcb589c048e84661d26c5d86f547bc46113d37fe6c993efd61018222b0bcd9d064103b982751e64387194dadb13d149b0f3b9dfa9a43
|
7
|
+
data.tar.gz: 85ec0dcdce846df434133d9ebd0bf0bb7f4044b4766297b828904a528e80d90850954853e31e89283df2902159a56d32fa763a8b5a6649fae3e8396aadc2b334
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
## [1.0.0]
|
2
|
+
|
3
|
+
- Update Rubocop Rails to [v2.23.1](https://github.com/rubocop/rubocop-rails/releases/tag/v2.23.1)
|
4
|
+
- First time fully configured. This was done partly in consultation at [Test Double](https://testdouble.com/) and partly through [this fantastic RailsConf talk in 2023](https://www.youtube.com/watch?v=QVilOzkLdlI)!
|
5
|
+
|
1
6
|
## [0.2.0]
|
2
7
|
|
3
8
|
- Update Rubocop Rails to [v2.20.2](https://github.com/rubocop/rubocop-rails/releases/tag/v2.20.2)
|
data/Gemfile.lock
CHANGED
@@ -1,81 +1,93 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
standard-rails (0.
|
4
|
+
standard-rails (1.0.1)
|
5
5
|
lint_roller (~> 1.0)
|
6
|
-
rubocop-rails (~> 2.
|
6
|
+
rubocop-rails (~> 2.23.1)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
activesupport (7.
|
11
|
+
activesupport (7.1.2)
|
12
|
+
base64
|
13
|
+
bigdecimal
|
12
14
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
15
|
+
connection_pool (>= 2.2.5)
|
16
|
+
drb
|
13
17
|
i18n (>= 1.6, < 2)
|
14
18
|
minitest (>= 5.1)
|
19
|
+
mutex_m
|
15
20
|
tzinfo (~> 2.0)
|
16
21
|
ast (2.4.2)
|
17
|
-
base64 (0.
|
22
|
+
base64 (0.2.0)
|
23
|
+
bigdecimal (3.1.5)
|
18
24
|
concurrent-ruby (1.2.2)
|
25
|
+
connection_pool (2.4.1)
|
26
|
+
drb (2.2.0)
|
27
|
+
ruby2_keywords
|
19
28
|
i18n (1.14.1)
|
20
29
|
concurrent-ruby (~> 1.0)
|
21
|
-
json (2.
|
30
|
+
json (2.7.1)
|
22
31
|
language_server-protocol (3.17.0.3)
|
23
32
|
lint_roller (1.1.0)
|
24
|
-
m (1.6.
|
33
|
+
m (1.6.2)
|
25
34
|
method_source (>= 0.6.7)
|
26
35
|
rake (>= 0.9.2.2)
|
27
36
|
method_source (1.0.0)
|
28
37
|
minitest (5.20.0)
|
29
|
-
|
30
|
-
|
38
|
+
mutex_m (0.2.0)
|
39
|
+
parallel (1.24.0)
|
40
|
+
parser (3.3.0.2)
|
31
41
|
ast (~> 2.4.1)
|
32
42
|
racc
|
33
|
-
racc (1.7.
|
43
|
+
racc (1.7.3)
|
34
44
|
rack (3.0.8)
|
35
45
|
rainbow (3.1.1)
|
36
|
-
rake (13.0
|
37
|
-
regexp_parser (2.
|
46
|
+
rake (13.1.0)
|
47
|
+
regexp_parser (2.9.0)
|
38
48
|
rexml (3.2.6)
|
39
|
-
rubocop (1.
|
40
|
-
base64 (~> 0.1.1)
|
49
|
+
rubocop (1.59.0)
|
41
50
|
json (~> 2.3)
|
42
51
|
language_server-protocol (>= 3.17.0)
|
43
52
|
parallel (~> 1.10)
|
44
|
-
parser (>= 3.2.2.
|
53
|
+
parser (>= 3.2.2.4)
|
45
54
|
rainbow (>= 2.2.2, < 4.0)
|
46
55
|
regexp_parser (>= 1.8, < 3.0)
|
47
56
|
rexml (>= 3.2.5, < 4.0)
|
48
|
-
rubocop-ast (>= 1.
|
57
|
+
rubocop-ast (>= 1.30.0, < 2.0)
|
49
58
|
ruby-progressbar (~> 1.7)
|
50
59
|
unicode-display_width (>= 2.4.0, < 3.0)
|
51
|
-
rubocop-ast (1.
|
60
|
+
rubocop-ast (1.30.0)
|
52
61
|
parser (>= 3.2.1.0)
|
53
|
-
rubocop-performance (1.
|
54
|
-
rubocop (>= 1.
|
55
|
-
rubocop-ast (>=
|
56
|
-
rubocop-rails (2.
|
62
|
+
rubocop-performance (1.20.2)
|
63
|
+
rubocop (>= 1.48.1, < 2.0)
|
64
|
+
rubocop-ast (>= 1.30.0, < 2.0)
|
65
|
+
rubocop-rails (2.23.1)
|
57
66
|
activesupport (>= 4.2.0)
|
58
67
|
rack (>= 1.1)
|
59
68
|
rubocop (>= 1.33.0, < 2.0)
|
69
|
+
rubocop-ast (>= 1.30.0, < 2.0)
|
60
70
|
ruby-progressbar (1.13.0)
|
61
|
-
|
71
|
+
ruby2_keywords (0.0.5)
|
72
|
+
standard (1.33.0)
|
62
73
|
language_server-protocol (~> 3.17.0.2)
|
63
74
|
lint_roller (~> 1.0)
|
64
|
-
rubocop (~> 1.
|
75
|
+
rubocop (~> 1.59.0)
|
65
76
|
standard-custom (~> 1.0.0)
|
66
|
-
standard-performance (~> 1.
|
77
|
+
standard-performance (~> 1.3)
|
67
78
|
standard-custom (1.0.2)
|
68
79
|
lint_roller (~> 1.0)
|
69
80
|
rubocop (~> 1.50)
|
70
|
-
standard-performance (1.
|
81
|
+
standard-performance (1.3.0)
|
71
82
|
lint_roller (~> 1.1)
|
72
|
-
rubocop-performance (~> 1.
|
83
|
+
rubocop-performance (~> 1.20.1)
|
73
84
|
tzinfo (2.0.6)
|
74
85
|
concurrent-ruby (~> 1.0)
|
75
|
-
unicode-display_width (2.
|
86
|
+
unicode-display_width (2.5.0)
|
76
87
|
|
77
88
|
PLATFORMS
|
78
89
|
arm64-darwin-20
|
90
|
+
arm64-darwin-21
|
79
91
|
arm64-darwin-22
|
80
92
|
x86_64-linux
|
81
93
|
|
data/README.md
CHANGED
@@ -6,24 +6,29 @@ plugin configuration for the
|
|
6
6
|
as an extension to the [Standard Ruby
|
7
7
|
gem](https://github.com/standardrb/standard).
|
8
8
|
|
9
|
-
|
9
|
+
## Usage
|
10
|
+
|
11
|
+
First, if you haven't already, get your app set up to [run with the `standard`
|
12
|
+
gem](https://github.com/standardrb/standard#usage)
|
13
|
+
|
14
|
+
Next, to add the `standard-rails` plugin, you'll want to start by adding it to your Gemfile:
|
10
15
|
|
11
16
|
```ruby
|
12
|
-
gem "standard-rails"
|
17
|
+
gem "standard-rails", group: [:development, :test]
|
13
18
|
```
|
14
19
|
|
15
|
-
|
16
|
-
|
17
|
-
In your `.standard.yml` file, you can simply list `standard-rails` as a plugin:
|
20
|
+
Next, in your [`.standard.yml` file](https://github.com/standardrb/standard#yaml-options),
|
21
|
+
list `standard-rails` as a plugin:
|
18
22
|
|
19
23
|
```yaml
|
20
24
|
plugins:
|
21
25
|
- standard-rails
|
22
26
|
```
|
23
27
|
|
28
|
+
## Configuration
|
29
|
+
|
24
30
|
Even though it'll usually be inferred automatically, you can specify the exact
|
25
|
-
version of Rails you want the rules to run against
|
26
|
-
a nested hash:
|
31
|
+
version of Rails you want the rules to be run against like this:
|
27
32
|
|
28
33
|
```yaml
|
29
34
|
plugins:
|