rubocop-scc 1.0.0 → 1.1.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/config/rails.yml +10 -10
- 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: 1cd0d3e782b23df6b4b807a4aa30a9a6e7022917135a471c250fd38e9fd974b0
|
|
4
|
+
data.tar.gz: d4d21c94f327202467be80f8d92836c96d41c53da28a5d41f5894671e9ec7107
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 976a5e464b343e1a59dd9112fc5ef7fdf0a2c1191c9c908f692b5016671e173e4e41d77de699261141bb49d674f864bdd789a44a295293c9f55e21391fe5b5b9
|
|
7
|
+
data.tar.gz: b8364a5a0120f9b901cde0eee04c2e40184d05b9f484b57f429d811e9e45eb0843bd29cb38a5401aacf9afd3949b248957494f758e1621611fb84ef453910350
|
data/config/rails.yml
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
require: rubocop/cop/
|
|
1
|
+
require: rubocop/cop/Sequoiacap
|
|
2
2
|
|
|
3
3
|
Rails:
|
|
4
4
|
Enabled: true
|
|
@@ -98,47 +98,47 @@ Rails/Validation:
|
|
|
98
98
|
Rails/UniqBeforePluck:
|
|
99
99
|
Enabled: true
|
|
100
100
|
|
|
101
|
-
|
|
101
|
+
Sequoiacap/RailsControllerRenderActionSymbol:
|
|
102
102
|
Enabled: true
|
|
103
103
|
Include:
|
|
104
104
|
- 'app/controllers/**/*.rb'
|
|
105
105
|
|
|
106
|
-
|
|
106
|
+
Sequoiacap/RailsControllerRenderLiteral:
|
|
107
107
|
Enabled: true
|
|
108
108
|
StyleGuide: https://github.com/github/rubocop-github/blob/master/guides/rails-render-literal.md
|
|
109
109
|
Include:
|
|
110
110
|
- 'app/controllers/**/*.rb'
|
|
111
111
|
|
|
112
|
-
|
|
112
|
+
Sequoiacap/RailsControllerRenderPathsExist:
|
|
113
113
|
Enabled: false
|
|
114
114
|
ViewPath:
|
|
115
115
|
- 'app/views'
|
|
116
116
|
Include:
|
|
117
117
|
- 'app/controllers/**/*.rb'
|
|
118
118
|
|
|
119
|
-
|
|
119
|
+
Sequoiacap/RailsControllerRenderShorthand:
|
|
120
120
|
Enabled: true
|
|
121
121
|
StyleGuide: https://github.com/github/rubocop-github/blob/master/guides/rails-controller-render-shorthand.md
|
|
122
122
|
Include:
|
|
123
123
|
- 'app/controllers/**/*.rb'
|
|
124
124
|
|
|
125
|
-
|
|
125
|
+
Sequoiacap/ClassName:
|
|
126
126
|
Description: Use :class_name => "Model" instead of :class_name => Model.name
|
|
127
127
|
to avoid a long cascade of autoloading.
|
|
128
128
|
Enabled: true
|
|
129
129
|
|
|
130
|
-
|
|
130
|
+
Sequoiacap/DefaultScope:
|
|
131
131
|
Description: Avoid `default_scope`. Default scopes make it difficult to
|
|
132
132
|
refactor data access patterns since the scope becomes part of every query unless
|
|
133
133
|
explicitly excluded, even when it is unnecessary or incidental to the desired logic.
|
|
134
134
|
Enabled: true
|
|
135
135
|
|
|
136
|
-
|
|
136
|
+
Sequoiacap/FactoryClassUseString:
|
|
137
137
|
Description: Cop to tell developers to use :class => "MyClass" instead of :class => MyClass,
|
|
138
138
|
because the latter slows down reloading zeus.
|
|
139
139
|
Enabled: true
|
|
140
140
|
|
|
141
|
-
|
|
141
|
+
Sequoiacap/NoTimeout:
|
|
142
142
|
Description: Do not use Timeout.timeout. In combination with Rails autoloading,
|
|
143
143
|
timeout can cause Segmentation Faults in version of Ruby we use.
|
|
144
144
|
It can also cause logic errors since it can raise in
|
|
@@ -146,7 +146,7 @@ sequoiacap/NoTimeout:
|
|
|
146
146
|
ensure proper timing behavior for web requests.
|
|
147
147
|
Enabled: true
|
|
148
148
|
|
|
149
|
-
|
|
149
|
+
Sequoiacap/SimpleModifierConditional:
|
|
150
150
|
Enabled: true
|
|
151
151
|
StyleGuide: https://github.com/airbnb/ruby#only-simple-if-unless
|
|
152
152
|
|