paydici-rubocop 0.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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 0bb2f456db5a2b80a093f8c035aaf36fd849425c
4
+ data.tar.gz: 07f0af78e3d9b6950873eced77e5c92b31fbdd7b
5
+ SHA512:
6
+ metadata.gz: 3f8517bf2bbd13967da35bf705132deafb9ce80dc8ce7554d69e4a801c732c44c6d06a0be36c701cbb1971b09785bb7786072a7634d3789e37f6cbb354cedd49
7
+ data.tar.gz: 162dd29ebd38dbeebdeabdba315a937900aea712bdadaea171bbe3a5e525ddee2fcc27014d8afdcc9ecfe02f5bebbb9b195c429d023df2cbdadc4b05cbf03756
@@ -0,0 +1,8 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
@@ -0,0 +1,7 @@
1
+ inherit_from: default.yml
2
+
3
+ Style/GuardClause:
4
+ Enabled: false
5
+
6
+ Style/RegexpLiteral:
7
+ Enabled: false
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+
3
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in paydici-rubocop.gemspec
6
+ gemspec
@@ -0,0 +1,39 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ paydici-rubocop (0.1.0)
5
+ rubocop (= 0.53.0)
6
+ rubocop-rspec (= 1.26.0)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ ast (2.4.0)
12
+ parallel (1.12.1)
13
+ parser (2.5.1.0)
14
+ ast (~> 2.4.0)
15
+ powerpack (0.1.2)
16
+ rainbow (3.0.0)
17
+ rake (10.5.0)
18
+ rubocop (0.53.0)
19
+ parallel (~> 1.10)
20
+ parser (>= 2.5)
21
+ powerpack (~> 0.1)
22
+ rainbow (>= 2.2.2, < 4.0)
23
+ ruby-progressbar (~> 1.7)
24
+ unicode-display_width (~> 1.0, >= 1.0.1)
25
+ rubocop-rspec (1.26.0)
26
+ rubocop (>= 0.53.0)
27
+ ruby-progressbar (1.9.0)
28
+ unicode-display_width (1.4.0)
29
+
30
+ PLATFORMS
31
+ ruby
32
+
33
+ DEPENDENCIES
34
+ bundler (~> 1.16)
35
+ paydici-rubocop!
36
+ rake (~> 10.0)
37
+
38
+ BUNDLED WITH
39
+ 1.16.1
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Justin Scott
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
13
+ all 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
21
+ THE SOFTWARE.
@@ -0,0 +1,39 @@
1
+ # Paydici::Rubocop
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/paydici/rubocop`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'paydici-rubocop'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install paydici-rubocop
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/paydici-rubocop.
36
+
37
+ ## License
38
+
39
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -0,0 +1,2 @@
1
+ require 'bundler/gem_tasks'
2
+ task default: :spec
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'bundler/setup'
4
+ require 'paydici/rubocop'
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require 'irb'
14
+ IRB.start(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,249 @@
1
+ require: rubocop-rspec
2
+
3
+ ########################
4
+ ##### LAYOUT RULES #####
5
+ ########################
6
+
7
+ Layout/AlignParameters:
8
+ EnforcedStyle: with_fixed_indentation
9
+
10
+ Layout/CaseIndentation:
11
+ EnforcedStyle: end
12
+
13
+ Layout/IndentArray:
14
+ EnforcedStyle: consistent
15
+
16
+ Layout/IndentHash:
17
+ EnforcedStyle: consistent
18
+
19
+ Layout/EmptyLinesAroundArguments:
20
+ Enabled: false
21
+
22
+ Layout/EndAlignment:
23
+ EnforcedStyleAlignWith: variable
24
+
25
+ Layout/MultilineMethodCallBraceLayout:
26
+ Enabled: false
27
+
28
+ Layout/MultilineMethodCallIndentation:
29
+ EnforcedStyle: indented_relative_to_receiver
30
+
31
+ Layout/SpaceAroundEqualsInParameterDefault:
32
+ Enabled: false
33
+
34
+ Layout/SpaceInsideRangeLiteral:
35
+ Enabled: false
36
+
37
+ ########################
38
+ ###### LINT RULES ######
39
+ ########################
40
+
41
+ Lint/AssignmentInCondition:
42
+ Enabled: false
43
+
44
+ Lint/Loop:
45
+ Enabled: false
46
+
47
+ Lint/RescueException:
48
+ Enabled: false
49
+
50
+ Lint/UnusedMethodArgument:
51
+ AllowUnusedKeywordArguments: true
52
+
53
+ # Turn this off because any service using .!() errors
54
+ Lint/Void:
55
+ Enabled: false
56
+
57
+ ########################
58
+ ##### METRIC RULES #####
59
+ ########################
60
+
61
+ Metrics/AbcSize:
62
+ Enabled: false
63
+
64
+ Metrics/BlockLength:
65
+ Enabled: false
66
+
67
+ Metrics/ClassLength:
68
+ Enabled: false
69
+
70
+ Metrics/CyclomaticComplexity:
71
+ Enabled: false
72
+
73
+ Metrics/LineLength:
74
+ Enabled: false
75
+
76
+ Metrics/MethodLength:
77
+ Enabled: false
78
+
79
+ Metrics/ModuleLength:
80
+ Enabled: false
81
+
82
+ Metrics/ParameterLists:
83
+ Enabled: false
84
+
85
+ Metrics/ModuleLength:
86
+ Enabled: false
87
+
88
+ Metrics/PerceivedComplexity:
89
+ Enabled: false
90
+
91
+ ########################
92
+ ##### NAMING RULES #####
93
+ ########################
94
+
95
+ Naming/AccessorMethodName:
96
+ Enabled: false
97
+
98
+ ########################
99
+ ### PERFORMANCE RULES ##
100
+ ########################
101
+
102
+ Performance/Casecmp:
103
+ Enabled: false
104
+
105
+ ########################
106
+ #### SECURITY RULES ####
107
+ ########################
108
+
109
+ Security/YAMLLoad:
110
+ Enabled: false
111
+
112
+ ########################
113
+ ##### STYLES RULES #####
114
+ ########################
115
+
116
+ Style/Alias:
117
+ EnforcedStyle: prefer_alias_method
118
+
119
+ Style/AndOr:
120
+ EnforcedStyle: conditionals
121
+
122
+ Style/BracesAroundHashParameters:
123
+ Enabled: false
124
+
125
+ Style/ClassAndModuleChildren:
126
+ Enabled: false
127
+
128
+ Style/ClassVars:
129
+ Enabled: false
130
+
131
+ Style/DateTime:
132
+ Enabled: false
133
+
134
+ Style/Documentation:
135
+ Enabled: false
136
+
137
+ Style/EmptyElse:
138
+ EnforcedStyle: empty
139
+
140
+ Style/EmptyMethod:
141
+ EnforcedStyle: expanded
142
+
143
+ Style/FormatString:
144
+ Enabled: false
145
+
146
+ Style/FormatStringToken:
147
+ Enabled: false
148
+
149
+ # we want to use this but we should test memory/speed differences first
150
+ Style/FrozenStringLiteralComment:
151
+ Enabled: false
152
+
153
+ Style/Lambda:
154
+ EnforcedStyle: literal
155
+
156
+ Style/LambdaCall:
157
+ EnforcedStyle: braces
158
+
159
+ Style/MethodMissing:
160
+ Enabled: false
161
+
162
+ Style/NegatedIf:
163
+ EnforcedStyle: postfix
164
+
165
+ Style/NumericLiteralPrefix:
166
+ EnforcedOctalStyle: zero_only
167
+
168
+ Style/NumericPredicate:
169
+ EnforcedStyle: comparison
170
+
171
+ Style/PercentLiteralDelimiters:
172
+ Enabled: false
173
+
174
+ Style/RegexpLiteral:
175
+ AllowInnerSlashes: true
176
+
177
+ Style/RescueModifier:
178
+ Enabled: false
179
+
180
+ Style/RescueStandardError:
181
+ Enabled: false
182
+
183
+ # turn this on after servers are all updated to Ruby 2.3.6
184
+ Style/SafeNavigation:
185
+ Enabled: false
186
+
187
+ Style/StructInheritance:
188
+ Enabled: false
189
+
190
+ Style/SymbolArray:
191
+ EnforcedStyle: percent
192
+
193
+ ########################
194
+ ###### SPEC RULES ######
195
+ ########################
196
+
197
+ FactoryBot/DynamicAttributeDefinedStatically:
198
+ Enabled: false
199
+
200
+ RSpec/AnyInstance:
201
+ Enabled: false
202
+
203
+ RSpec/ContextWording:
204
+ Enabled: false
205
+
206
+ RSpec/DescribedClass:
207
+ Enabled: false
208
+
209
+ RSpec/DescribeClass:
210
+ Enabled: false
211
+
212
+ RSpec/ExampleLength:
213
+ Enabled: false
214
+
215
+ RSpec/ExampleWording:
216
+ Enabled: false
217
+
218
+ RSpec/ExpectInHook:
219
+ Enabled: false
220
+
221
+ RSpec/FilePath:
222
+ Enabled: false
223
+
224
+ RSpec/MessageChain:
225
+ Enabled: false
226
+
227
+ RSpec/MessageSpies:
228
+ EnforcedStyle: receive
229
+
230
+ RSpec/MultipleExpectations:
231
+ Enabled: false
232
+
233
+ RSpec/NamedSubject:
234
+ Enabled: false
235
+
236
+ RSpec/NestedGroups:
237
+ Enabled: false
238
+
239
+ RSpec/SubjectStub:
240
+ Enabled: false
241
+
242
+ RSpec/VerifiedDoubles:
243
+ Enabled: false
244
+
245
+ Style/BlockDelimiters:
246
+ EnforcedStyle: braces_for_chaining
247
+
248
+ Style/MixinUsage:
249
+ Enabled: false
@@ -0,0 +1,7 @@
1
+ require 'paydici/rubocop/version'
2
+
3
+ module Paydici
4
+ module Rubocop
5
+ # Your code goes here...
6
+ end
7
+ end
@@ -0,0 +1,5 @@
1
+ module Paydici
2
+ module Rubocop
3
+ VERSION = '0.1.0'.freeze
4
+ end
5
+ end
@@ -0,0 +1,36 @@
1
+
2
+ lib = File.expand_path('lib', __dir__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'paydici/rubocop/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'paydici-rubocop'
8
+ spec.version = Paydici::Rubocop::VERSION
9
+ spec.authors = ['Justin Scott']
10
+ spec.email = ['justin@paydici.com']
11
+
12
+ spec.summary = 'Paydici Rubocop Config'
13
+ spec.description = 'Paydici Rubocop Config'
14
+ spec.homepage = 'http://rubygems.org/gems/paydici-rubocop'
15
+ spec.license = 'MIT'
16
+
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
19
+ if spec.respond_to?(:metadata)
20
+ spec.metadata['allowed_push_host'] = 'https://rubygems.org'
21
+ else
22
+ raise 'RubyGems 2.0 or newer is required to protect against public gem pushes.'
23
+ end
24
+
25
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
26
+ f.match(%r{^(test|spec|features)/})
27
+ end
28
+ spec.bindir = 'exe'
29
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
30
+ spec.require_paths = ['lib']
31
+
32
+ spec.add_dependency 'rubocop', '0.53.0'
33
+ spec.add_dependency 'rubocop-rspec', '1.26.0'
34
+ spec.add_development_dependency 'bundler', '~> 1.16'
35
+ spec.add_development_dependency 'rake', '~> 10.0'
36
+ end
metadata ADDED
@@ -0,0 +1,114 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: paydici-rubocop
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Justin Scott
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-06-28 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.53.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.53.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: rubocop-rspec
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '='
32
+ - !ruby/object:Gem::Version
33
+ version: 1.26.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '='
39
+ - !ruby/object:Gem::Version
40
+ version: 1.26.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.16'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.16'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '10.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '10.0'
69
+ description: Paydici Rubocop Config
70
+ email:
71
+ - justin@paydici.com
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - ".gitignore"
77
+ - ".rubocop.yml"
78
+ - Gemfile
79
+ - Gemfile.lock
80
+ - LICENSE.txt
81
+ - README.md
82
+ - Rakefile
83
+ - bin/console
84
+ - bin/setup
85
+ - default.yml
86
+ - lib/paydici/rubocop.rb
87
+ - lib/paydici/rubocop/version.rb
88
+ - paydici-rubocop.gemspec
89
+ homepage: http://rubygems.org/gems/paydici-rubocop
90
+ licenses:
91
+ - MIT
92
+ metadata:
93
+ allowed_push_host: https://rubygems.org
94
+ post_install_message:
95
+ rdoc_options: []
96
+ require_paths:
97
+ - lib
98
+ required_ruby_version: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ required_rubygems_version: !ruby/object:Gem::Requirement
104
+ requirements:
105
+ - - ">="
106
+ - !ruby/object:Gem::Version
107
+ version: '0'
108
+ requirements: []
109
+ rubyforge_project:
110
+ rubygems_version: 2.4.5
111
+ signing_key:
112
+ specification_version: 4
113
+ summary: Paydici Rubocop Config
114
+ test_files: []