boxt_ruby_style_guide 7.2.0 → 7.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/default.yml +24 -18
- data/rails.yml +18 -22
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c33f8a553a049bb92d0a05f2db91337de1ba0d210b8799c74632f9ed73ef77d
|
4
|
+
data.tar.gz: ec711fb499081ed58f3b60916c67161e7c65b4558313873878aad4269c9edf84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bdb25540762d772df538cc2d4deab4ee97dff944931641960ecee46f11550c8c28c490ad15c6a524eacd1fefe46cf26776b19696b6ee412f5f6c671356821aac
|
7
|
+
data.tar.gz: 5e18ff9b8966467313273e217d4cecd3d7f202b6008eded7a7260bf6d8ad898d185194305bee451a9dfbb5cd60dcb238a5aa384b8c72469343f2f09939070b61
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
7.2.
|
1
|
+
7.2.1
|
data/default.yml
CHANGED
@@ -1,33 +1,39 @@
|
|
1
1
|
AllCops:
|
2
|
-
TargetRubyVersion: 2.7.1
|
3
2
|
Exclude:
|
4
3
|
- "**/*/schema.rb"
|
5
|
-
-
|
6
|
-
-
|
7
|
-
-
|
8
|
-
-
|
4
|
+
- Gemfile.lock
|
5
|
+
- node_modules/**/*
|
6
|
+
- tmp/**/*
|
7
|
+
- vendor/**/*
|
8
|
+
TargetRubyVersion: 2.7.1
|
9
9
|
Layout/LineLength:
|
10
|
-
Max: 120 # Increase line length to 120
|
11
10
|
Exclude:
|
12
|
-
-
|
11
|
+
- config/routes.rb
|
12
|
+
Max: 120
|
13
|
+
Metrics/AbcSize:
|
14
|
+
Exclude:
|
15
|
+
- db/migrate/**/*
|
13
16
|
Metrics/BlockLength:
|
14
17
|
Exclude:
|
15
18
|
- "*.gemspec"
|
16
|
-
-
|
17
|
-
-
|
18
|
-
-
|
19
|
-
-
|
19
|
+
- Gemfile
|
20
|
+
- config/routes.rb
|
21
|
+
- db/migrate/**/*
|
22
|
+
- spec/**/*
|
23
|
+
- test/**/*
|
20
24
|
Metrics/ClassLength:
|
21
25
|
Exclude:
|
22
|
-
-
|
23
|
-
-
|
26
|
+
- db/migrate/**/*
|
27
|
+
- spec/**/*
|
28
|
+
- test/**/*
|
24
29
|
Metrics/MethodLength:
|
25
30
|
Exclude:
|
26
|
-
-
|
27
|
-
-
|
31
|
+
- db/migrate/**/*
|
32
|
+
- spec/**/*
|
33
|
+
- test/**/*
|
34
|
+
Style/Documentation:
|
35
|
+
Enabled: false
|
28
36
|
Style/DoubleNegation:
|
29
37
|
Enabled: false
|
30
|
-
Style/Documentation:
|
31
|
-
Enabled: false # Disable Style/Documentation because...
|
32
38
|
Style/StringLiterals:
|
33
|
-
EnforcedStyle: double_quotes
|
39
|
+
EnforcedStyle: double_quotes
|
data/rails.yml
CHANGED
@@ -1,29 +1,11 @@
|
|
1
|
-
# Rails specific cops
|
2
|
-
Rails/ApplicationController:
|
3
|
-
Exclude:
|
4
|
-
- "spec/**/*"
|
5
|
-
- "test/**/*"
|
6
|
-
Rails/SkipsModelValidations:
|
7
|
-
Exclude:
|
8
|
-
- "db/migrate/**/*"
|
9
|
-
- "lib/tasks/**/*"
|
10
|
-
- "spec/**/*"
|
11
|
-
- "test/**/*"
|
12
|
-
Rails/UnknownEnv:
|
13
|
-
Environments:
|
14
|
-
- cucumber
|
15
|
-
- development
|
16
|
-
- production
|
17
|
-
- qa
|
18
|
-
- test
|
19
|
-
- uat
|
20
|
-
|
21
|
-
# These rails cops are currently pending and will be enabled by default at some point, but adding for now to stop
|
22
|
-
# Rubocop or VSCode complaining...
|
23
1
|
Rails/ActiveRecordCallbacksOrder:
|
24
2
|
Enabled: true
|
25
3
|
Rails/AfterCommitOverride:
|
26
4
|
Enabled: true
|
5
|
+
Rails/ApplicationController:
|
6
|
+
Exclude:
|
7
|
+
- spec/**/*
|
8
|
+
- test/**/*
|
27
9
|
Rails/FindById:
|
28
10
|
Enabled: true
|
29
11
|
Rails/Inquiry:
|
@@ -44,8 +26,22 @@ Rails/RenderPlainText:
|
|
44
26
|
Enabled: true
|
45
27
|
Rails/ShortI18n:
|
46
28
|
Enabled: true
|
29
|
+
Rails/SkipsModelValidations:
|
30
|
+
Exclude:
|
31
|
+
- db/migrate/**/*
|
32
|
+
- lib/tasks/**/*
|
33
|
+
- spec/**/*
|
34
|
+
- test/**/*
|
47
35
|
Rails/SquishedSQLHeredocs:
|
48
36
|
Enabled: true
|
37
|
+
Rails/UnknownEnv:
|
38
|
+
Environments:
|
39
|
+
- cucumber
|
40
|
+
- development
|
41
|
+
- production
|
42
|
+
- qa
|
43
|
+
- test
|
44
|
+
- uat
|
49
45
|
Rails/WhereExists:
|
50
46
|
Enabled: true
|
51
47
|
Rails/WhereNot:
|