rubocop-rails-suite 1.1.0 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/rubocop.yml +36 -19
  4. metadata +20 -20
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 543bac14c278ba90a0f61459c5b4ef3680746275442b2b57e188dd8f4213013f
4
- data.tar.gz: 57506d3e5c1c322201ea9142024a81fd14815b6a9ace3cfe635bcdf2ce7cc220
3
+ metadata.gz: ea42d2f79c67b7dce86a5226e0b7138c56a2424ce968f319319e8462476fd8b4
4
+ data.tar.gz: 116ff3d99a6b91f0ad714351231f5d6be3460fe6896b64067fb8950075c05a6f
5
5
  SHA512:
6
- metadata.gz: 050f63f2f7cac6cb179c25c0742ab90596bcaca0bb5d3d78d890a606ffda3f0c3b3bccb1704a6d93b1cc48b294cc418edd571ba2ac61b3f2e8650ae213ced8e3
7
- data.tar.gz: dba44b9dd80a6338a2a34591408058574846176fa3cd4580d43a30a813dc2ddef4330ad07b016b6b54736f3079ae2cf6b43c2109f7ce512f60fb04d402f9dc57
6
+ metadata.gz: 7e5847ddbbd161799c3ad6bc111d83ef17ef3b6d44616d84ee6a2cfaf4d67abf75c60fa1e2b9d55a313aa25683e7adab0b25d510d580a4408f70647baaa1a0d4
7
+ data.tar.gz: 0cdaec577ec8d5b09c9d8258c79404837b6185176c74d9bde4fde23f37672ae7f62b95c2613d165dca0bf918f76c5d6ae314eaa006e156299d412347ae915d5b
data/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [1.1.2] - 2024-10-23
6
+ ### Changed
7
+ - Enforced double quotes in RuboCop configuration for `config/**/*` and `spec/**/*` directories.
8
+
9
+ ## [1.1.1] - 2024-10-21
10
+ ### Added
11
+ - Added some default rules for RuboCop configuration.
12
+
5
13
  ## [1.1.0] - 2024-09-26
6
14
  ### Changed
7
15
  - Updated `rubocop` dependency to `>= 1.63.1, < 2.0`.
data/rubocop.yml CHANGED
@@ -17,7 +17,6 @@ AllCops:
17
17
  TargetRubyVersion: 3.0
18
18
  Exclude:
19
19
  - "db/schema.rb"
20
- - "config/**/*"
21
20
  - "bin/*"
22
21
 
23
22
  # Enable Rails-related cops
@@ -40,7 +39,7 @@ FactoryBot:
40
39
  Faker:
41
40
  Enabled: true
42
41
 
43
- # Layout and Style Cops for Consistency
42
+ # Style Cops
44
43
  Style/Documentation:
45
44
  Enabled: false
46
45
 
@@ -49,16 +48,6 @@ Style/FrozenStringLiteralComment:
49
48
  Exclude:
50
49
  - "config/**/*"
51
50
 
52
- Layout/EmptyLinesAroundBlockBody:
53
- Enabled: true
54
-
55
- Layout/EndAlignment:
56
- Enabled: true
57
- EnforcedStyleAlignWith: variable
58
-
59
- Lint/RequireParentheses:
60
- Enabled: true
61
-
62
51
  Style/TrailingCommaInArrayLiteral:
63
52
  Enabled: true
64
53
 
@@ -69,21 +58,49 @@ Style/HashSyntax:
69
58
  Enabled: true
70
59
  EnforcedShorthandSyntax: either
71
60
 
72
- Layout/SpaceInsideBlockBraces:
73
- Enabled: true
74
- EnforcedStyleForEmptyBraces: space
75
-
76
61
  Style/ColonMethodCall:
77
62
  Enabled: true
78
63
 
79
- Lint/UriEscapeUnescape:
80
- Enabled: true
81
-
82
64
  Style/StringLiterals:
83
65
  Enabled: true
84
66
  EnforcedStyle: double_quotes
85
67
  Include:
86
68
  - "app/**/*"
69
+ - "config/**/*"
87
70
  - "lib/**/*"
71
+ - "spec/**/*"
88
72
  - "test/**/*"
89
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.1.0
4
+ version: 1.1.2
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-26 00:00:00.000000000 Z
11
+ date: 2024-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 1.63.1
19
+ version: '1.67'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: '2.0'
@@ -26,57 +26,57 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 1.63.1
29
+ version: '1.67'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '2.0'
33
33
  - !ruby/object:Gem::Dependency
34
- name: rubocop-performance
34
+ name: rubocop-rails
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: 1.21.1
39
+ version: 2.26.2
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
- version: '2.0'
42
+ version: '3.0'
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - ">="
48
48
  - !ruby/object:Gem::Version
49
- version: 1.21.1
49
+ version: 2.26.2
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
- version: '2.0'
52
+ version: '3.0'
53
53
  - !ruby/object:Gem::Dependency
54
- name: rubocop-rails
54
+ name: rubocop-performance
55
55
  requirement: !ruby/object:Gem::Requirement
56
56
  requirements:
57
57
  - - ">="
58
58
  - !ruby/object:Gem::Version
59
- version: 2.23.0
59
+ version: 1.22.1
60
60
  - - "<"
61
61
  - !ruby/object:Gem::Version
62
- version: '3.0'
62
+ version: '2.0'
63
63
  type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - ">="
68
68
  - !ruby/object:Gem::Version
69
- version: 2.23.0
69
+ version: 1.22.1
70
70
  - - "<"
71
71
  - !ruby/object:Gem::Version
72
- version: '3.0'
72
+ version: '2.0'
73
73
  - !ruby/object:Gem::Dependency
74
74
  name: rubocop-factory_bot
75
75
  requirement: !ruby/object:Gem::Requirement
76
76
  requirements:
77
77
  - - ">="
78
78
  - !ruby/object:Gem::Version
79
- version: 2.24.0
79
+ version: 2.26.1
80
80
  - - "<"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '3.0'
@@ -86,7 +86,7 @@ dependencies:
86
86
  requirements:
87
87
  - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: 2.24.0
89
+ version: 2.26.1
90
90
  - - "<"
91
91
  - !ruby/object:Gem::Version
92
92
  version: '3.0'
@@ -96,7 +96,7 @@ dependencies:
96
96
  requirements:
97
97
  - - ">="
98
98
  - !ruby/object:Gem::Version
99
- version: 1.0.0
99
+ version: 1.1.0
100
100
  - - "<"
101
101
  - !ruby/object:Gem::Version
102
102
  version: '2.0'
@@ -106,7 +106,7 @@ dependencies:
106
106
  requirements:
107
107
  - - ">="
108
108
  - !ruby/object:Gem::Version
109
- version: 1.0.0
109
+ version: 1.1.0
110
110
  - - "<"
111
111
  - !ruby/object:Gem::Version
112
112
  version: '2.0'
@@ -116,7 +116,7 @@ dependencies:
116
116
  requirements:
117
117
  - - ">="
118
118
  - !ruby/object:Gem::Version
119
- version: 3.0.5
119
+ version: 3.1.0
120
120
  - - "<"
121
121
  - !ruby/object:Gem::Version
122
122
  version: '4.0'
@@ -126,7 +126,7 @@ dependencies:
126
126
  requirements:
127
127
  - - ">="
128
128
  - !ruby/object:Gem::Version
129
- version: 3.0.5
129
+ version: 3.1.0
130
130
  - - "<"
131
131
  - !ruby/object:Gem::Version
132
132
  version: '4.0'