rubocop-rails-suite 1.0.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +23 -0
  3. data/README.md +2 -4
  4. data/rubocop.yml +35 -28
  5. metadata +54 -45
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f81d0febf78c19ed68aa250d606184dc2b96c8ba685ce7c5eecbc5795ac42c3a
4
- data.tar.gz: 8c4fe4795198c5db8c6272fa78ba7825b486d28330c9ab5f2aec20c1d34e497e
3
+ metadata.gz: 890d5d6e2ded9c63de8028169f1d549c84ac6a842743482347de880ed0b9f064
4
+ data.tar.gz: f0dd0d13d8157f822caa32875bdeea7c741dd2c440a89d2dbcf7d0419da75a8f
5
5
  SHA512:
6
- metadata.gz: 246a8bcf50767b45935bd26824a3d3db270ac99889c63a92ba61e34527822f251908e038ddac2425f58c54653b248e5c41c065c55394802ab3ec091e2312f978
7
- data.tar.gz: 78ab7e8c7fa253496607e47be28b029a73a159d715cdf947d1f026184dfe89d3b2f52ea065a534b01cae7a8a55ceee9e473f9ce6b27b0a0324e0656f779df321
6
+ metadata.gz: affd86f8b06f9faff9839821d02a647f71d0135f20f957a5a9dbc11cdd67bd36de9c96bc4f741a6e3eb14af9acaf62bb8af0309ec31056cb69bf3af98118a581
7
+ data.tar.gz: 0e3be44c187b4c6be99dac28fe630708392b9c622dead746fe4b12977ffd0f969113cdacf74989dccb42c891739296f89db2c86323edf3e56c7defc4ce805efb
data/CHANGELOG.md ADDED
@@ -0,0 +1,23 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ ## [1.1.1] - 2024-10-21
6
+ ### Added
7
+ - Added some default rules for RuboCop configuration.
8
+
9
+ ## [1.1.0] - 2024-09-26
10
+ ### Changed
11
+ - Updated `rubocop` dependency to `>= 1.63.1, < 2.0`.
12
+ - Updated `rubocop-performance` to `>= 1.21.1, < 2.0`.
13
+ - Updated `rubocop-rails` to `>= 2.23.0, < 3.0`.
14
+ - Updated `rubocop-factory_bot` to `>= 2.24.0, < 3.0`.
15
+ - Updated `rubocop-faker` to `>= 1.0.0, < 2.0`.
16
+ - Updated `rubocop-rspec` to `>= 3.0.5, < 4.0`.
17
+
18
+ ### Removed
19
+ - Removed `rubocop-migration` and `rubocop-rake` from the suite.
20
+
21
+ ## [1.0.0] - 2024-09-22
22
+ ### Added
23
+ - Initial release with core RuboCop, performance, RSpec, FactoryBot, and Rails linting.
data/README.md CHANGED
@@ -8,10 +8,8 @@
8
8
  - [`rubocop-rails`](https://github.com/rubocop/rubocop-rails) - Rails-specific linting rules.
9
9
  - [`rubocop-performance`](https://github.com/rubocop/rubocop-performance) - Rules focused on optimizing Ruby performance.
10
10
  - [`rubocop-rspec`](https://github.com/rubocop/rubocop-rspec) - Linting rules for RSpec tests.
11
- - [`rubocop-factory_bot`](https://github.com/rubocop-hq/rubocop-factory_bot) - Linting rules for `factory_bot` usage.
12
- - [`rubocop-faker`](https://github.com/nebulab/rubocop-faker) - Linting rules for `faker` usage.
13
- - [`rubocop-migration`](https://github.com/xavier/rubocop-migration) - Best practices for database migrations.
14
- - [`rubocop-rake`](https://github.com/rubocop/rubocop-rake) - Linting rules for Rake tasks.
11
+ - [`rubocop-factory_bot`](https://github.com/rubocop/rubocop-factory_bot) - Linting rules for `factory_bot` usage.
12
+ - [`rubocop-faker`](https://github.com/koic/rubocop-faker) - Linting rules for `faker` usage.
15
13
 
16
14
  ## Installation
17
15
 
data/rubocop.yml CHANGED
@@ -8,8 +8,6 @@ require:
8
8
  - rubocop-rails
9
9
  - rubocop-factory_bot
10
10
  - rubocop-faker
11
- - rubocop-migration
12
- - rubocop-rake
13
11
  - rubocop-rspec
14
12
 
15
13
  # General configuration for all cops
@@ -34,10 +32,6 @@ Performance:
34
32
  RSpec:
35
33
  Enabled: true
36
34
 
37
- # Enable Rake-related cops
38
- Rake:
39
- Enabled: true
40
-
41
35
  # Enable FactoryBot-related cops
42
36
  FactoryBot:
43
37
  Enabled: true
@@ -46,11 +40,7 @@ FactoryBot:
46
40
  Faker:
47
41
  Enabled: true
48
42
 
49
- # Enable Migration-related cops
50
- Migration/AddCheckConstraint:
51
- Enabled: true
52
-
53
- # Layout and Style Cops for Consistency
43
+ # Style Cops
54
44
  Style/Documentation:
55
45
  Enabled: false
56
46
 
@@ -59,16 +49,6 @@ Style/FrozenStringLiteralComment:
59
49
  Exclude:
60
50
  - "config/**/*"
61
51
 
62
- Layout/EmptyLinesAroundBlockBody:
63
- Enabled: true
64
-
65
- Layout/EndAlignment:
66
- Enabled: true
67
- EnforcedStyleAlignWith: variable
68
-
69
- Lint/RequireParentheses:
70
- Enabled: true
71
-
72
52
  Style/TrailingCommaInArrayLiteral:
73
53
  Enabled: true
74
54
 
@@ -79,21 +59,48 @@ Style/HashSyntax:
79
59
  Enabled: true
80
60
  EnforcedShorthandSyntax: either
81
61
 
82
- Layout/SpaceInsideBlockBraces:
83
- Enabled: true
84
- EnforcedStyleForEmptyBraces: space
85
-
86
62
  Style/ColonMethodCall:
87
63
  Enabled: true
88
64
 
89
- Lint/UriEscapeUnescape:
90
- Enabled: true
91
-
92
65
  Style/StringLiterals:
93
66
  Enabled: true
94
67
  EnforcedStyle: double_quotes
95
68
  Include:
96
69
  - "app/**/*"
70
+ - "config/**/*"
97
71
  - "lib/**/*"
98
72
  - "test/**/*"
99
73
  - "Gemfile"
74
+
75
+ # Layout Cops
76
+ Layout/EmptyLinesAroundBlockBody:
77
+ Enabled: true
78
+
79
+ Layout/EndAlignment:
80
+ Enabled: true
81
+ EnforcedStyleAlignWith: variable
82
+
83
+ Layout/SpaceInsideBlockBraces:
84
+ Enabled: true
85
+ EnforcedStyleForEmptyBraces: space
86
+
87
+ Layout/LineLength:
88
+ Max: 130
89
+
90
+ # Lint Cops
91
+ Lint/RequireParentheses:
92
+ Enabled: true
93
+
94
+ Lint/UriEscapeUnescape:
95
+ Enabled: true
96
+
97
+ # Metrics Cops
98
+ Metrics/MethodLength:
99
+ Max: 17
100
+
101
+ # RSpec Cops
102
+ RSpec/MultipleExpectations:
103
+ Max: 5
104
+
105
+ RSpec/MultipleMemoizedHelpers:
106
+ Max: 6
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-rails-suite
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - George Mihai Grigore
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-22 00:00:00.000000000 Z
11
+ date: 2024-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,120 +16,129 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '1.67'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '2.0'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
27
  - - ">="
25
28
  - !ruby/object:Gem::Version
26
- version: '0'
29
+ version: '1.67'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '2.0'
27
33
  - !ruby/object:Gem::Dependency
28
- name: rubocop-performance
34
+ name: rubocop-rails
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
37
  - - ">="
32
38
  - !ruby/object:Gem::Version
33
- version: '0'
39
+ version: 2.26.2
40
+ - - "<"
41
+ - !ruby/object:Gem::Version
42
+ version: '3.0'
34
43
  type: :runtime
35
44
  prerelease: false
36
45
  version_requirements: !ruby/object:Gem::Requirement
37
46
  requirements:
38
47
  - - ">="
39
48
  - !ruby/object:Gem::Version
40
- version: '0'
49
+ version: 2.26.2
50
+ - - "<"
51
+ - !ruby/object:Gem::Version
52
+ version: '3.0'
41
53
  - !ruby/object:Gem::Dependency
42
- name: rubocop-rails
54
+ name: rubocop-performance
43
55
  requirement: !ruby/object:Gem::Requirement
44
56
  requirements:
45
57
  - - ">="
46
58
  - !ruby/object:Gem::Version
47
- version: '0'
59
+ version: 1.22.1
60
+ - - "<"
61
+ - !ruby/object:Gem::Version
62
+ version: '2.0'
48
63
  type: :runtime
49
64
  prerelease: false
50
65
  version_requirements: !ruby/object:Gem::Requirement
51
66
  requirements:
52
67
  - - ">="
53
68
  - !ruby/object:Gem::Version
54
- version: '0'
69
+ version: 1.22.1
70
+ - - "<"
71
+ - !ruby/object:Gem::Version
72
+ version: '2.0'
55
73
  - !ruby/object:Gem::Dependency
56
74
  name: rubocop-factory_bot
57
75
  requirement: !ruby/object:Gem::Requirement
58
76
  requirements:
59
77
  - - ">="
60
78
  - !ruby/object:Gem::Version
61
- version: '0'
79
+ version: 2.26.1
80
+ - - "<"
81
+ - !ruby/object:Gem::Version
82
+ version: '3.0'
62
83
  type: :runtime
63
84
  prerelease: false
64
85
  version_requirements: !ruby/object:Gem::Requirement
65
86
  requirements:
66
87
  - - ">="
67
88
  - !ruby/object:Gem::Version
68
- version: '0'
89
+ version: 2.26.1
90
+ - - "<"
91
+ - !ruby/object:Gem::Version
92
+ version: '3.0'
69
93
  - !ruby/object:Gem::Dependency
70
94
  name: rubocop-faker
71
95
  requirement: !ruby/object:Gem::Requirement
72
96
  requirements:
73
97
  - - ">="
74
98
  - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :runtime
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: rubocop-migration
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
99
+ version: 1.1.0
100
+ - - "<"
88
101
  - !ruby/object:Gem::Version
89
- version: '0'
102
+ version: '2.0'
90
103
  type: :runtime
91
104
  prerelease: false
92
105
  version_requirements: !ruby/object:Gem::Requirement
93
106
  requirements:
94
107
  - - ">="
95
108
  - !ruby/object:Gem::Version
96
- version: '0'
97
- - !ruby/object:Gem::Dependency
98
- name: rubocop-rake
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
109
+ version: 1.1.0
110
+ - - "<"
102
111
  - !ruby/object:Gem::Version
103
- version: '0'
104
- type: :runtime
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: '0'
112
+ version: '2.0'
111
113
  - !ruby/object:Gem::Dependency
112
114
  name: rubocop-rspec
113
115
  requirement: !ruby/object:Gem::Requirement
114
116
  requirements:
115
117
  - - ">="
116
118
  - !ruby/object:Gem::Version
117
- version: '0'
119
+ version: 3.1.0
120
+ - - "<"
121
+ - !ruby/object:Gem::Version
122
+ version: '4.0'
118
123
  type: :runtime
119
124
  prerelease: false
120
125
  version_requirements: !ruby/object:Gem::Requirement
121
126
  requirements:
122
127
  - - ">="
123
128
  - !ruby/object:Gem::Version
124
- version: '0'
125
- description: Rubocop Rails Suite offers enhanced rules for Rails apps, focusing on
126
- performance, RSpec, factory_bot, and migration linting.
129
+ version: 3.1.0
130
+ - - "<"
131
+ - !ruby/object:Gem::Version
132
+ version: '4.0'
133
+ description: Provides enhanced linting rules for Ruby on Rails, focusing on performance,
134
+ RSpec, factory_bot, and Faker integration.
127
135
  email:
128
136
  - grigore.george.mihaii@gmail.com
129
137
  executables: []
130
138
  extensions: []
131
139
  extra_rdoc_files: []
132
140
  files:
141
+ - CHANGELOG.md
133
142
  - LICENSE.txt
134
143
  - README.md
135
144
  - rubocop.yml
@@ -158,5 +167,5 @@ requirements: []
158
167
  rubygems_version: 3.4.6
159
168
  signing_key:
160
169
  specification_version: 4
161
- summary: A suite of RuboCop rules for Rails applications.
170
+ summary: Enhanced RuboCop rules for Rails applications.
162
171
  test_files: []