rubocop-github 0.16.1 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -22
- data/STYLEGUIDE.md +16 -16
- data/config/default.yml +334 -2
- data/config/rails.yml +127 -2
- data/lib/rubocop/cop/github/insecure_hash_algorithm.rb +1 -1
- data/lib/rubocop/cop/github/rails_application_record.rb +2 -2
- data/lib/rubocop/cop/github/rails_controller_render_action_symbol.rb +11 -5
- data/lib/rubocop/cop/github/rails_controller_render_literal.rb +7 -7
- data/lib/rubocop/cop/github/rails_controller_render_paths_exist.rb +4 -4
- data/lib/rubocop/cop/github/rails_controller_render_shorthand.rb +4 -11
- data/lib/rubocop/cop/github/rails_render_inline.rb +2 -2
- data/lib/rubocop/cop/github/rails_render_object_collection.rb +3 -3
- data/lib/rubocop/cop/github/rails_view_render_literal.rb +6 -6
- data/lib/rubocop/cop/github/rails_view_render_paths_exist.rb +3 -3
- data/lib/rubocop/cop/github/rails_view_render_shorthand.rb +3 -3
- data/lib/rubocop/cop/github/render_literal_helpers.rb +6 -5
- metadata +27 -33
- data/config/_default_shared.yml +0 -329
- data/config/_rails_shared.yml +0 -120
- data/config/default_deprecated.yml +0 -4
- data/config/default_edge.yml +0 -4
- data/config/rails_deprecated.yml +0 -7
- data/config/rails_edge.yml +0 -4
data/config/_rails_shared.yml
DELETED
@@ -1,120 +0,0 @@
|
|
1
|
-
Rails/OutputSafety:
|
2
|
-
Enabled: true
|
3
|
-
|
4
|
-
Rails/PluralizationGrammar:
|
5
|
-
Enabled: true
|
6
|
-
|
7
|
-
Rails/RequestReferer:
|
8
|
-
Enabled: true
|
9
|
-
EnforcedStyle: referrer
|
10
|
-
|
11
|
-
Rails/ScopeArgs:
|
12
|
-
Enabled: true
|
13
|
-
|
14
|
-
Rails/UniqBeforePluck:
|
15
|
-
Enabled: true
|
16
|
-
|
17
|
-
GitHub/RailsApplicationRecord:
|
18
|
-
Enabled: true
|
19
|
-
|
20
|
-
GitHub/RailsControllerRenderActionSymbol:
|
21
|
-
Enabled: true
|
22
|
-
Include:
|
23
|
-
- 'app/controllers/**/*.rb'
|
24
|
-
|
25
|
-
GitHub/RailsControllerRenderLiteral:
|
26
|
-
Enabled: true
|
27
|
-
StyleGuide: https://github.com/github/rubocop-github/blob/master/guides/rails-render-literal.md
|
28
|
-
Include:
|
29
|
-
- 'app/controllers/**/*.rb'
|
30
|
-
|
31
|
-
GitHub/RailsControllerRenderPathsExist:
|
32
|
-
Enabled: true
|
33
|
-
ViewPath:
|
34
|
-
- 'app/views'
|
35
|
-
Include:
|
36
|
-
- 'app/controllers/**/*.rb'
|
37
|
-
|
38
|
-
GitHub/RailsControllerRenderShorthand:
|
39
|
-
Enabled: true
|
40
|
-
StyleGuide: https://github.com/github/rubocop-github/blob/master/guides/rails-controller-render-shorthand.md
|
41
|
-
Include:
|
42
|
-
- 'app/controllers/**/*.rb'
|
43
|
-
|
44
|
-
GitHub/RailsRenderInline:
|
45
|
-
Enabled: true
|
46
|
-
StyleGuide: https://github.com/github/rubocop-github/blob/master/guides/rails-controller-render-inline.md
|
47
|
-
Include:
|
48
|
-
- 'app/controllers/**/*.rb'
|
49
|
-
- 'app/helpers/**/*.rb'
|
50
|
-
- 'app/view_models/**/*.rb'
|
51
|
-
- 'app/views/**/*.erb'
|
52
|
-
|
53
|
-
GitHub/RailsRenderObjectCollection:
|
54
|
-
Enabled: false
|
55
|
-
|
56
|
-
GitHub/RailsViewRenderLiteral:
|
57
|
-
Enabled: true
|
58
|
-
StyleGuide: https://github.com/github/rubocop-github/blob/master/guides/rails-render-literal.md
|
59
|
-
Include:
|
60
|
-
- 'app/helpers/**/*.rb'
|
61
|
-
- 'app/view_models/**/*.rb'
|
62
|
-
- 'app/views/**/*.erb'
|
63
|
-
|
64
|
-
GitHub/RailsViewRenderPathsExist:
|
65
|
-
Enabled: true
|
66
|
-
ViewPath:
|
67
|
-
- 'app/views'
|
68
|
-
Include:
|
69
|
-
- 'app/helpers/**/*.rb'
|
70
|
-
- 'app/view_models/**/*.rb'
|
71
|
-
- 'app/views/**/*.erb'
|
72
|
-
|
73
|
-
GitHub/RailsViewRenderShorthand:
|
74
|
-
Enabled: true
|
75
|
-
Include:
|
76
|
-
- 'app/helpers/**/*.rb'
|
77
|
-
- 'app/view_models/**/*.rb'
|
78
|
-
- 'app/views/**/*.erb'
|
79
|
-
|
80
|
-
# Exclude Rails ERB files from incompatible cops
|
81
|
-
|
82
|
-
Layout/BlockAlignment:
|
83
|
-
Exclude:
|
84
|
-
- 'app/views/**/*.erb'
|
85
|
-
|
86
|
-
Style/For:
|
87
|
-
Exclude:
|
88
|
-
- 'app/views/**/*.erb'
|
89
|
-
|
90
|
-
Style/OneLineConditional:
|
91
|
-
Exclude:
|
92
|
-
- 'app/views/**/*.erb'
|
93
|
-
|
94
|
-
Style/Semicolon:
|
95
|
-
Exclude:
|
96
|
-
- 'app/views/**/*.erb'
|
97
|
-
|
98
|
-
Layout/SpaceInsideParens:
|
99
|
-
Exclude:
|
100
|
-
- 'app/views/**/*.erb'
|
101
|
-
|
102
|
-
Style/StringLiterals:
|
103
|
-
Exclude:
|
104
|
-
- 'app/views/**/*.erb'
|
105
|
-
|
106
|
-
Layout/TrailingEmptyLines:
|
107
|
-
Exclude:
|
108
|
-
- 'app/views/**/*.erb'
|
109
|
-
|
110
|
-
Layout/TrailingWhitespace:
|
111
|
-
Exclude:
|
112
|
-
- 'app/views/**/*.erb'
|
113
|
-
|
114
|
-
Layout/InitialIndentation:
|
115
|
-
Exclude:
|
116
|
-
- 'app/views/**/*.erb'
|
117
|
-
|
118
|
-
Lint/UselessAccessModifier:
|
119
|
-
ContextCreatingMethods:
|
120
|
-
- concerning
|
data/config/default_edge.yml
DELETED
data/config/rails_deprecated.yml
DELETED
data/config/rails_edge.yml
DELETED