webit-rails-rubocop 1.0.3

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.
Files changed (6) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/README.md +26 -0
  4. data/config.yml +4 -0
  5. data/cops/rails.yml +178 -0
  6. metadata +74 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 5ee0fa8a4dbbd402edf38f5362dca00494bfe5364beb7323cb13c50155c9a9c4
4
+ data.tar.gz: 52bbcc8c1e1a1e293807784723df4054e6c38496aacf4c2620ebe05bc8439267
5
+ SHA512:
6
+ metadata.gz: 5ee19ec44155de3b03c97358e24b1efabd2f942ccc4147d08ef5bcb9d0f052a111f369286988c244385eab62cd3ab8e1898865a4e39a9499810e308a3f42cd2d
7
+ data.tar.gz: 7d795767ddcce6df22e2ae86d4015766080c4e9f9971c6b3ddd83609b75231bbc14d5654b3f45f99bcad27c9ae7fc91bc3ac8a50908347c711cd9527664ef720
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 webit! Gesellschaft für neue Medien mbH
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,26 @@
1
+ # webit-rails-rubocop
2
+
3
+ This gem provides webit specific rubocop configurations for Rails. This **does not** include configurations from [webit-ruby-rubocop](https://github.com/webit-de/webit-ruby-rubocop).
4
+
5
+ For ruby-only configurations consider only using [webit-ruby-rubocop](https://github.com/webit-de/webit-ruby-rubocop).
6
+
7
+ ## Installation
8
+
9
+ Add the following line to your Gemfile:
10
+
11
+ ```ruby
12
+ gem "webit-rails-rubocop"
13
+ ```
14
+
15
+ In your own project, add a `.rubocop.yml` containing this configuration:
16
+
17
+ ```yml
18
+ inherit_gem:
19
+ webit-rails-rubocop: config.yml
20
+ ```
21
+
22
+ ## Usage
23
+
24
+ ```bash
25
+ $ bundle exec rubocop
26
+ ```
data/config.yml ADDED
@@ -0,0 +1,4 @@
1
+ inherit_from: ./cops/rails.yml
2
+
3
+ require:
4
+ - rubocop-rails
data/cops/rails.yml ADDED
@@ -0,0 +1,178 @@
1
+ Rails/ActionControllerFlashBeforeRender:
2
+ Enabled: true
3
+
4
+ Rails/ActionControllerTestCase:
5
+ Enabled: true
6
+
7
+ Rails/ActionOrder:
8
+ Enabled: false
9
+
10
+ Rails/ActiveRecordCallbacksOrder:
11
+ Enabled: true
12
+
13
+ Rails/ActiveSupportOnLoad:
14
+ Enabled: true
15
+
16
+ Rails/AddColumnIndex:
17
+ Enabled: true
18
+
19
+ Rails/AfterCommitOverride:
20
+ Enabled: true
21
+
22
+ Rails/AttributeDefaultBlockValue:
23
+ Enabled: true
24
+
25
+ Rails/CompactBlank:
26
+ Enabled: true
27
+
28
+ Rails/DangerousColumnNames:
29
+ Enabled: true
30
+
31
+ Rails/DeprecatedActiveModelErrorsMethods:
32
+ Enabled: true
33
+
34
+ Rails/DotSeparatedKeys:
35
+ Enabled: true
36
+
37
+ Rails/DuplicateAssociation:
38
+ Enabled: true
39
+
40
+ Rails/DuplicateScope:
41
+ Enabled: true
42
+
43
+ Rails/DurationArithmetic:
44
+ Enabled: true
45
+
46
+ Rails/EagerEvaluationLogMessage:
47
+ Enabled: true
48
+
49
+ Rails/EnvLocal:
50
+ Enabled: false
51
+
52
+ Rails/ExpandedDateRange:
53
+ Enabled: true
54
+
55
+ Rails/FilePath:
56
+ Enabled: true
57
+ EnforcedStyle: arguments
58
+
59
+ Rails/FindById:
60
+ Enabled: true
61
+
62
+ Rails/FreezeTime:
63
+ Enabled: true
64
+
65
+ Rails/I18nLazyLookup:
66
+ Enabled: true
67
+
68
+ Rails/I18nLocaleAssignment:
69
+ Enabled: true
70
+
71
+ Rails/I18nLocaleTexts:
72
+ Enabled: true
73
+
74
+ Rails/IgnoredColumnsAssignment:
75
+ Enabled: true
76
+
77
+ Rails/Inquiry:
78
+ Enabled: true
79
+
80
+ Rails/MailerName:
81
+ Enabled: true
82
+
83
+ Rails/MatchRoute:
84
+ Enabled: true
85
+
86
+ Rails/MigrationClassName:
87
+ Enabled: true
88
+
89
+ Rails/NegateInclude:
90
+ Enabled: true
91
+
92
+ Rails/Pluck:
93
+ Enabled: true
94
+
95
+ Rails/PluckInWhere:
96
+ Enabled: true
97
+
98
+ Rails/RedundantActiveRecordAllMethod:
99
+ Enabled: true
100
+
101
+ Rails/RedundantPresenceValidationOnBelongsTo:
102
+ Enabled: true
103
+
104
+ Rails/RedundantTravelBack:
105
+ Enabled: true
106
+
107
+ Rails/RenderInline:
108
+ Enabled: true
109
+
110
+ Rails/RenderPlainText:
111
+ Enabled: true
112
+
113
+ Rails/ResponseParsedBody:
114
+ Enabled: true
115
+
116
+ Rails/RootJoinChain:
117
+ Enabled: true
118
+
119
+ Rails/RootPathnameMethods:
120
+ Enabled: true
121
+
122
+ Rails/RootPublicPath:
123
+ Enabled: true
124
+
125
+ Rails/SelectMap:
126
+ Enabled: true
127
+
128
+ Rails/ShortI18n:
129
+ Enabled: true
130
+
131
+ Rails/SkipsModelValidations:
132
+ Enabled: false
133
+
134
+ Rails/SquishedSQLHeredocs:
135
+ Enabled: true
136
+
137
+ Rails/StripHeredoc:
138
+ Enabled: true
139
+
140
+ Rails/ThreeStateBooleanColumn:
141
+ Enabled: true
142
+
143
+ Rails/TimeZoneAssignment:
144
+ Enabled: true
145
+
146
+ Rails/ToFormattedS:
147
+ Enabled: true
148
+ EnforcedStyle: to_formatted_s
149
+
150
+ Rails/ToSWithArgument:
151
+ Enabled: true
152
+
153
+ Rails/TopLevelHashWithIndifferentAccess:
154
+ Enabled: true
155
+
156
+ Rails/TransactionExitStatement:
157
+ Enabled: true
158
+
159
+ Rails/UnusedIgnoredColumns:
160
+ Enabled: true
161
+
162
+ Rails/UnusedRenderContent:
163
+ Enabled: true
164
+
165
+ Rails/WhereEquals:
166
+ Enabled: true
167
+
168
+ Rails/WhereExists:
169
+ Enabled: true
170
+
171
+ Rails/WhereMissing:
172
+ Enabled: true
173
+
174
+ Rails/WhereNot:
175
+ Enabled: true
176
+
177
+ Rails/WhereNotWithMultipleConditions:
178
+ Enabled: true
metadata ADDED
@@ -0,0 +1,74 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: webit-rails-rubocop
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.3
5
+ platform: ruby
6
+ authors:
7
+ - Richard Böhme
8
+ - Roland Schwarzer
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 1980-01-02 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rubocop-rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 2.22.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 2.22.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: webit-ruby-rubocop
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '3.1'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '3.1'
41
+ description: This gem provides webit! specific rubocop configurations for Rails.
42
+ email:
43
+ - boehme@webit.de
44
+ - schwarzer@webit.de
45
+ executables: []
46
+ extensions: []
47
+ extra_rdoc_files: []
48
+ files:
49
+ - LICENSE
50
+ - README.md
51
+ - config.yml
52
+ - cops/rails.yml
53
+ homepage: https://github.com/webit-de/webit-rails-rubocop
54
+ licenses:
55
+ - MIT
56
+ metadata: {}
57
+ rdoc_options: []
58
+ require_paths:
59
+ - lib
60
+ required_ruby_version: !ruby/object:Gem::Requirement
61
+ requirements:
62
+ - - ">="
63
+ - !ruby/object:Gem::Version
64
+ version: 2.6.0
65
+ required_rubygems_version: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ requirements: []
71
+ rubygems_version: 3.6.9
72
+ specification_version: 4
73
+ summary: webit! specific rubocop configurations for Rails
74
+ test_files: []