ergomentum_rubocop 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: f5d8b298841cf382b7285e223f38447cde8e1274b4a43321bb84e599c25c1158
4
+ data.tar.gz: 027a11cc8984f107829b8cd0f4467be3282d917fea3ed3e4fbbdb7e2a57d62ee
5
+ SHA512:
6
+ metadata.gz: '08b9d5ac5017b2a36ad42acb8ebbd5c137f0fa41b4b913d36e9a380421f38c81493f7c63996030e00060eb00b0817c48e883d97c1c1ed932e5e1b4434542e804'
7
+ data.tar.gz: ba09e22cdc28de55cdf61d995bb520a705faed17a4c42db67d9781a0a01ffdaac473ee29a22a3a6e44ae98808b1c820bdab0441b95faef26e43cafb780aa1efd
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in omniauth-shipcloud.gemspec
6
+ gemspec
data/README.md ADDED
@@ -0,0 +1,39 @@
1
+ # Ergomentum RuboCop
2
+ [![Maintainability](https://api.codeclimate.com/v1/badges/29fa6b6665e58849d754/maintainability)](https://codeclimate.com/repos/60816477fe03790162008833/maintainability)
3
+ [![Test Coverage](https://api.codeclimate.com/v1/badges/29fa6b6665e58849d754/test_coverage)](https://codeclimate.com/repos/60816477fe03790162008833/test_coverage)
4
+ [![CircleCI](https://circleci.com/gh/ergomentum/ergomentum_rubocop.svg?style=shield&circle-token=e4c23ae32e276c21b9d2846424a9cb62aa7adab9)](
5
+ https://circleci.com/gh/ergomentum/ergomentum_rubocop)
6
+
7
+
8
+ ## Installation
9
+
10
+ Add this line to your application's Gemfile:
11
+
12
+ ```ruby
13
+ gem 'ergomentum_rubocop'
14
+ ```
15
+
16
+ And then execute:
17
+
18
+ $ bundle install
19
+
20
+ Or install it yourself as:
21
+
22
+ $ gem install ergomentum_rubocop
23
+
24
+ ## Usage
25
+
26
+ rubocop.yml
27
+ ```yml
28
+ inherit_gem:
29
+ ergomentum_rubocop:
30
+ - config/default_rails.yml
31
+ ```
32
+
33
+ or
34
+
35
+ ```yml
36
+ inherit_gem:
37
+ ergomentum_rubocop:
38
+ - config/default_gem.yml
39
+ ```
@@ -0,0 +1,4 @@
1
+ inherit_from: default_shared.yml
2
+
3
+ Gemspec/DateAssignment: # (new in 1.10)
4
+ Enabled: true
@@ -0,0 +1,46 @@
1
+ inherit_from: default_shared.yml
2
+ require:
3
+ - rubocop-rails
4
+
5
+ Rails/ActiveRecordCallbacksOrder:
6
+ Enabled: true
7
+ Rails/AfterCommitOverride:
8
+ Enabled: true
9
+ Rails/AttributeDefaultBlockValue: # (new in 2.9)
10
+ Enabled: true
11
+ Rails/Delegate:
12
+ Enabled: false
13
+ Rails/EnvironmentVariableAccess: # (new in 2.10)
14
+ Enabled: false
15
+ Rails/FilePath:
16
+ EnforcedStyle: arguments
17
+ Rails/FindById:
18
+ Enabled: true
19
+ Rails/Inquiry:
20
+ Enabled: true
21
+ Rails/MailerName:
22
+ Enabled: true
23
+ Rails/MatchRoute:
24
+ Enabled: true
25
+ Rails/NegateInclude:
26
+ Enabled: true
27
+ Rails/Pluck:
28
+ Enabled: true
29
+ Rails/PluckInWhere:
30
+ Enabled: true
31
+ Rails/RenderInline:
32
+ Enabled: true
33
+ Rails/RenderPlainText:
34
+ Enabled: true
35
+ Rails/ShortI18n:
36
+ Enabled: true
37
+ Rails/SquishedSQLHeredocs:
38
+ Enabled: true
39
+ Rails/TimeZoneAssignment: # (new in 2.10)
40
+ Enabled: true
41
+ Rails/WhereEquals: # (new in 2.9)
42
+ Enabled: true
43
+ Rails/WhereExists:
44
+ Enabled: true
45
+ Rails/WhereNot:
46
+ Enabled: true
@@ -0,0 +1,196 @@
1
+ ---
2
+ require:
3
+ - rubocop-performance
4
+ AllCops:
5
+ Exclude:
6
+ - vendor/**/*
7
+ - node_modules/**/*
8
+ Layout/DotPosition:
9
+ EnforcedStyle: trailing
10
+ Layout/FirstArrayElementLineBreak:
11
+ Enabled: true
12
+ Layout/FirstHashElementLineBreak:
13
+ Enabled: true
14
+ Layout/FirstMethodArgumentLineBreak:
15
+ Enabled: true
16
+ Layout/LineLength:
17
+ Max: 120
18
+ Layout/MultilineMethodCallIndentation:
19
+ Enabled: true
20
+ EnforcedStyle: indented
21
+ Layout/MultilineOperationIndentation:
22
+ Enabled: true
23
+ EnforcedStyle: indented
24
+ Layout/SpaceBeforeBrackets: # (new in 1.7)
25
+ Enabled: true
26
+ Lint/AmbiguousAssignment: # (new in 1.7)
27
+ Enabled: true
28
+ Lint/DeprecatedConstants: # (new in 1.8)
29
+ Enabled: true
30
+ Lint/DuplicateBranch: # (new in 1.3)
31
+ Enabled: true
32
+ Lint/DuplicateRegexpCharacterClassElement: # (new in 1.1)
33
+ Enabled: true
34
+ Lint/EmptyBlock: # (new in 1.1)
35
+ Enabled: true
36
+ Lint/EmptyClass: # (new in 1.3)
37
+ Enabled: true
38
+ Lint/LambdaWithoutLiteralBlock: # (new in 1.8)
39
+ Enabled: true
40
+ Lint/NoReturnInBeginEndBlocks: # (new in 1.2)
41
+ Enabled: true
42
+ Lint/NumberedParameterAssignment: # (new in 1.9)
43
+ Enabled: true
44
+ Lint/OrAssignmentToConstant: # (new in 1.9)
45
+ Enabled: true
46
+ Lint/RedundantDirGlobSort: # (new in 1.8)
47
+ Enabled: true
48
+ Lint/SymbolConversion: # (new in 1.9)
49
+ Enabled: true
50
+ Lint/ToEnumArguments: # (new in 1.1)
51
+ Enabled: true
52
+ Lint/TripleQuotes: # (new in 1.9)
53
+ Enabled: true
54
+ Lint/UnexpectedBlockArity: # (new in 1.5)
55
+ Enabled: true
56
+ Lint/UnmodifiedReduceAccumulator: # (new in 1.1)
57
+ Enabled: true
58
+ Metrics/AbcSize:
59
+ Enabled: false
60
+ Metrics/BlockLength:
61
+ Enabled: true
62
+ Exclude:
63
+ - gems/**/*_spec.rb
64
+ - spec/**/*
65
+ - config/routes.rb
66
+ - "*.gemspec"
67
+ Metrics/ClassLength:
68
+ Enabled: false
69
+ Metrics/MethodLength:
70
+ Enabled: false
71
+ Metrics/ModuleLength:
72
+ Enabled: false
73
+ Metrics/ParameterLists:
74
+ Enabled: false
75
+ Naming/PredicateName:
76
+ Exclude:
77
+ - spec/**/*
78
+ ForbiddenPrefixes:
79
+ - is_
80
+ NamePrefix:
81
+ - is_
82
+ - has_
83
+ - have_
84
+ Performance/AncestorsInclude:
85
+ Enabled: true
86
+ Performance/BigDecimalWithNumericArgument:
87
+ Enabled: true
88
+ Performance/BlockGivenWithExplicitBlock: # (new in 1.9)
89
+ Enabled: true
90
+ Performance/CollectionLiteralInLoop: # (new in 1.8)
91
+ Enabled: true
92
+ Performance/ConstantRegexp: # (new in 1.9)
93
+ Enabled: true
94
+ Performance/MapCompact: # (new in 1.11)
95
+ Enabled: true
96
+ Performance/MethodObjectAsBlock: # (new in 1.9)
97
+ Enabled: true
98
+ Performance/RedundantEqualityComparisonBlock: # (new in 1.10)
99
+ Enabled: true
100
+ Performance/RedundantSortBlock:
101
+ Enabled: true
102
+ Performance/RedundantSplitRegexpArgument: # (new in 1.10)
103
+ Enabled: true
104
+ Performance/RedundantStringChars:
105
+ Enabled: true
106
+ Performance/ReverseFirst:
107
+ Enabled: true
108
+ Performance/SortReverse:
109
+ Enabled: true
110
+ Performance/Squeeze:
111
+ Enabled: true
112
+ Performance/StringInclude:
113
+ Enabled: true
114
+ Performance/Sum:
115
+ Enabled: true
116
+ Style/ArgumentsForwarding: # (new in 1.1)
117
+ Enabled: true
118
+ Style/AsciiComments:
119
+ Enabled: false
120
+ Style/ClassAndModuleChildren:
121
+ Enabled: true
122
+ EnforcedStyle: nested
123
+ Style/CollectionCompact: # (new in 1.2)
124
+ Enabled: true
125
+ Style/CollectionMethods:
126
+ Enabled: true
127
+ Style/CommentAnnotation:
128
+ Enabled: false
129
+ Style/Documentation:
130
+ Enabled: false
131
+ Style/DocumentDynamicEvalDefinition: # (new in 1.1)
132
+ Enabled: true
133
+ Style/EndlessMethod: # (new in 1.8)
134
+ Enabled: true
135
+ Style/HashConversion: # (new in 1.10)
136
+ Enabled: true
137
+ Style/HashExcept: # (new in 1.7)
138
+ Enabled: true
139
+ Style/IfUnlessModifier:
140
+ Enabled: false
141
+ Style/IfWithBooleanLiteralBranches: # (new in 1.9)
142
+ Enabled: true
143
+ Style/MultilineBlockChain:
144
+ Enabled: false
145
+ Style/NegatedIfElseCondition: # (new in 1.2)
146
+ Enabled: true
147
+ Style/Next:
148
+ Enabled: false
149
+ Style/NilLambda: # (new in 1.3)
150
+ Enabled: true
151
+ Style/OptionHash:
152
+ Enabled: true
153
+ SuspiciousParamNames:
154
+ - options
155
+ - opts
156
+ - args
157
+ - params
158
+ - parameters
159
+ Style/RedundantArgument: # (new in 1.4)
160
+ Enabled: true
161
+ Style/StringChars: # (new in 1.12)
162
+ Enabled: true
163
+ Style/StringLiterals:
164
+ Enabled: true
165
+ EnforcedStyle: double_quotes
166
+ Style/StringLiteralsInInterpolation:
167
+ Enabled: true
168
+ EnforcedStyle: single_quotes
169
+ SupportedStyles:
170
+ - single_quotes
171
+ - double_quotes
172
+ Style/SwapValues: # (new in 1.1)
173
+ Enabled: true
174
+ Style/TrailingCommaInArguments:
175
+ Enabled: true
176
+ EnforcedStyleForMultiline: comma
177
+ SupportedStylesForMultiline:
178
+ - comma
179
+ - consistent_comma
180
+ - no_comma
181
+ Style/TrailingCommaInArrayLiteral:
182
+ Enabled: true
183
+ EnforcedStyleForMultiline: comma
184
+ SupportedStylesForMultiline:
185
+ - comma
186
+ - consistent_comma
187
+ - no_comma
188
+ Style/TrailingCommaInHashLiteral:
189
+ Enabled: true
190
+ EnforcedStyleForMultiline: comma
191
+ SupportedStylesForMultiline:
192
+ - comma
193
+ - consistent_comma
194
+ - no_comma
195
+ Style/TrivialAccessors:
196
+ Enabled: false
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/ergomentum_rubocop/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "ergomentum_rubocop"
7
+ spec.version = ErgomentumRubocop::VERSION
8
+ spec.authors = ["Ergomentum"]
9
+ spec.email = ["info@ergomentum.de"]
10
+ spec.summary = "Ergomentum RuboCop"
11
+ spec.description = <<~HERE
12
+ RuboCop style checking for Ergomentum projects.
13
+ HERE
14
+ spec.homepage = "https://www.ergomentum.de/"
15
+ spec.licenses = "Nonstandard"
16
+
17
+ spec.files = Dir.glob("{lib,config}/**/*") + %w[README.md Gemfile ergomentum_rubocop.gemspec]
18
+
19
+ spec.require_paths = ["lib"]
20
+ spec.required_ruby_version = ">= 3.0.0"
21
+
22
+ spec.add_dependency "rubocop"
23
+ spec.add_dependency "rubocop-performance"
24
+ spec.add_dependency "rubocop-rails"
25
+
26
+ spec.add_development_dependency "byebug"
27
+ spec.add_development_dependency "rake"
28
+ spec.add_development_dependency "rspec"
29
+ spec.add_development_dependency "rspec_junit_formatter"
30
+ spec.add_development_dependency "rubocop-rake"
31
+ spec.add_development_dependency "rubocop-rspec"
32
+ spec.add_development_dependency "simplecov"
33
+ spec.add_development_dependency "test-prof"
34
+ spec.add_development_dependency "webmock"
35
+ end
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "ergomentum_rubocop/version"
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ErgomentumRubocop
4
+ VERSION = "0.3.0"
5
+ end
metadata ADDED
@@ -0,0 +1,221 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ergomentum_rubocop
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.0
5
+ platform: ruby
6
+ authors:
7
+ - Ergomentum
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2021-06-09 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rubocop
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rubocop-performance
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rubocop-rails
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: byebug
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rspec_junit_formatter
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rubocop-rake
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rubocop-rspec
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: simplecov
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: test-prof
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: webmock
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ description: 'RuboCop style checking for Ergomentum projects.
182
+
183
+ '
184
+ email:
185
+ - info@ergomentum.de
186
+ executables: []
187
+ extensions: []
188
+ extra_rdoc_files: []
189
+ files:
190
+ - Gemfile
191
+ - README.md
192
+ - config/default_gem.yml
193
+ - config/default_rails.yml
194
+ - config/default_shared.yml
195
+ - ergomentum_rubocop.gemspec
196
+ - lib/ergomentum_rubocop.rb
197
+ - lib/ergomentum_rubocop/version.rb
198
+ homepage: https://www.ergomentum.de/
199
+ licenses:
200
+ - Nonstandard
201
+ metadata: {}
202
+ post_install_message:
203
+ rdoc_options: []
204
+ require_paths:
205
+ - lib
206
+ required_ruby_version: !ruby/object:Gem::Requirement
207
+ requirements:
208
+ - - ">="
209
+ - !ruby/object:Gem::Version
210
+ version: 3.0.0
211
+ required_rubygems_version: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
216
+ requirements: []
217
+ rubygems_version: 3.2.15
218
+ signing_key:
219
+ specification_version: 4
220
+ summary: Ergomentum RuboCop
221
+ test_files: []