pludoni-rubocop 1.37.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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 77724f00543121fe7e46218a10fccd236b2cb5f34fd8c7f7cdda66ea0309bc07
4
+ data.tar.gz: 7dc287112a9406235ec8b0ddfde5ed69f595632f8d6528503e7023b1f17cb04a
5
+ SHA512:
6
+ metadata.gz: d21bfd3b09bca053444de5528a4a1062a0fecd91fe43501cff67ab5164f21c3519d791819a2f98c77cf84956f1cd3b448a564bca16f3ecd3728fdae9b46ba5f3
7
+ data.tar.gz: 7c4dfc37393ce5353ca3cdc57484423938e90b2a741cb88b95f488d7b76a972e70365e9f3d3755e7ef88f19ec541772a2c1f41e0b9c87f130b7fb1b33c8ea101
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in pludoni-rubocop.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
data/Gemfile.lock ADDED
@@ -0,0 +1,63 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ pludoni-rubocop (1.37.0)
5
+ rubocop (~> 1.37.0)
6
+ rubocop-performance (~> 1.15.0)
7
+ rubocop-rails (~> 2.17.2)
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ activesupport (7.0.4)
13
+ concurrent-ruby (~> 1.0, >= 1.0.2)
14
+ i18n (>= 1.6, < 2)
15
+ minitest (>= 5.1)
16
+ tzinfo (~> 2.0)
17
+ ast (2.4.2)
18
+ concurrent-ruby (1.1.10)
19
+ i18n (1.12.0)
20
+ concurrent-ruby (~> 1.0)
21
+ json (2.6.2)
22
+ minitest (5.16.3)
23
+ parallel (1.22.1)
24
+ parser (3.1.2.1)
25
+ ast (~> 2.4.1)
26
+ rack (3.0.0)
27
+ rainbow (3.1.1)
28
+ rake (13.0.6)
29
+ regexp_parser (2.6.0)
30
+ rexml (3.2.5)
31
+ rubocop (1.37.1)
32
+ json (~> 2.3)
33
+ parallel (~> 1.10)
34
+ parser (>= 3.1.2.1)
35
+ rainbow (>= 2.2.2, < 4.0)
36
+ regexp_parser (>= 1.8, < 3.0)
37
+ rexml (>= 3.2.5, < 4.0)
38
+ rubocop-ast (>= 1.23.0, < 2.0)
39
+ ruby-progressbar (~> 1.7)
40
+ unicode-display_width (>= 1.4.0, < 3.0)
41
+ rubocop-ast (1.23.0)
42
+ parser (>= 3.1.1.0)
43
+ rubocop-performance (1.15.0)
44
+ rubocop (>= 1.7.0, < 2.0)
45
+ rubocop-ast (>= 0.4.0)
46
+ rubocop-rails (2.17.2)
47
+ activesupport (>= 4.2.0)
48
+ rack (>= 1.1)
49
+ rubocop (>= 1.33.0, < 2.0)
50
+ ruby-progressbar (1.11.0)
51
+ tzinfo (2.0.5)
52
+ concurrent-ruby (~> 1.0)
53
+ unicode-display_width (2.3.0)
54
+
55
+ PLATFORMS
56
+ x86_64-linux
57
+
58
+ DEPENDENCIES
59
+ pludoni-rubocop!
60
+ rake (~> 13.0)
61
+
62
+ BUNDLED WITH
63
+ 2.3.13
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 Stefan Wienert
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.
data/README.md ADDED
@@ -0,0 +1,42 @@
1
+ # Pludoni::Rubocop
2
+
3
+ Rubocop shared Gem config for our company projects
4
+
5
+ ## Installation
6
+
7
+ Install the gem and add to the application's Gemfile by executing:
8
+
9
+ bundle add pludoni-rubocop --git https://github.com/pludoni/pludoni-rubocop.git
10
+
11
+ Or add manually to Gemfile:
12
+
13
+ ```ruby
14
+ group :development, :test do
15
+ gem 'pludoni-rubocop', git: 'https://github.com/pludoni/pludoni-rubocop.git', require: false
16
+ end
17
+ ```
18
+
19
+ ## Usage
20
+
21
+ Add to ``.rubocop.yml``:
22
+
23
+ ```yaml
24
+ inherit_gem:
25
+ pludoni-rubocop:
26
+ - default.yml
27
+ - rails.yml
28
+ ```
29
+
30
+ If you have a ``.codeclimate.yml`` change it to match the Rubocop version:
31
+
32
+ ```yaml
33
+ # .codeclimate.yml
34
+ plugins:
35
+ rubocop:
36
+ enabled: true
37
+ channel: rubocop-1-37
38
+ ```
39
+
40
+ ## License
41
+
42
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ task default: %i[]
data/default.yml ADDED
@@ -0,0 +1,160 @@
1
+ ---
2
+ require:
3
+ - rubocop-performance
4
+ AllCops:
5
+ NewCops: enable
6
+ TargetRubyVersion: 2.7
7
+ Exclude:
8
+ - 'bin/*'
9
+ - 'scripts/**/*'
10
+ - 'scripts/*'
11
+ - 'script/**/*'
12
+ - 'one-time/**/*'
13
+ - 'one-timer/**/*'
14
+ - 'one-timers/**/*'
15
+ - 'db/**/*'
16
+ - 'config.ru'
17
+ - 'Rakefile'
18
+ - 'lib/templates/**/*'
19
+ - 'vender/**/*'
20
+ - 'spec/spec_helper.rb'
21
+ - 'node_modules/**/*'
22
+ - 'spec/rails_helper.rb'
23
+ Style/GuardClause:
24
+ MinBodyLength: 1
25
+ Enabled: false
26
+ Style/AndOr:
27
+ Enabled: false
28
+ EnforcedStyle: conditionals
29
+ Style/PercentLiteralDelimiters:
30
+ PreferredDelimiters: {}
31
+ Enabled: false
32
+ Style/Alias:
33
+ Enabled: false
34
+ Style/Documentation:
35
+ Enabled: false
36
+ Lint/UnusedMethodArgument:
37
+ Enabled: false
38
+ Metrics/ModuleLength:
39
+ Enabled: false
40
+ Style/StringLiterals:
41
+ Enabled: false
42
+ Style/IfUnlessModifier:
43
+ Enabled: false
44
+ Metrics/MethodLength:
45
+ Enabled: false
46
+ Layout/LineLength:
47
+ Max: 150
48
+ Exclude:
49
+ - spec/**/*
50
+ Metrics/AbcSize:
51
+ Enabled: false
52
+ Metrics/ClassLength:
53
+ Enabled: false
54
+ Layout/DotPosition:
55
+ Enabled: false
56
+ Style/BlockDelimiters:
57
+ Enabled: false
58
+ Layout/ParameterAlignment:
59
+ EnforcedStyle: with_fixed_indentation
60
+ Layout/HashAlignment:
61
+ EnforcedHashRocketStyle:
62
+ - key
63
+ - table
64
+ EnforcedColonStyle:
65
+ - key
66
+ - table
67
+
68
+ Layout/MultilineMethodCallIndentation:
69
+ EnforcedStyle: indented
70
+ # class Admin::PageController
71
+ Style/ClassAndModuleChildren:
72
+ Enabled: false
73
+
74
+ # asddsa == 0 -> asddsa.zero?
75
+ Style/NumericPredicate:
76
+ Enabled: false
77
+ Performance/StringReplacement:
78
+ Enabled: false
79
+ # ->() {} -- lambda {|a| }
80
+ Style/Lambda:
81
+ EnforcedStyle: 'literal'
82
+ # if bla.nil? -- if bla == nil
83
+ Style/NilComparison:
84
+ Enabled: false
85
+ # Ruby 3
86
+ Style/FrozenStringLiteralComment:
87
+ Enabled: false
88
+ # def bla; end
89
+ Style/EmptyMethod:
90
+ Enabled: false
91
+ # [ "700", "200" ] -> %w[w w]
92
+ Style/WordArray:
93
+ Enabled: false
94
+ # RSpec nervt
95
+ Metrics/BlockLength:
96
+ AllowedMethods: ['task', 'namespace', 'get', 'post', 'describe', 'context', 'specify', 'it', 'route_param', 'draw', 'register', 'register_page', 'controller', 'included', 'params', 'resource', 'with_options', 'use_cassette', 'configure', 'transaction']
97
+ Bundler/OrderedGems:
98
+ Enabled: false
99
+ # update_all, update_column
100
+ # set_ und get_ verbote
101
+ Naming/AccessorMethodName:
102
+ Enabled: false
103
+ Style/TrailingCommaInArrayLiteral:
104
+ Enabled: false
105
+ Style/TrailingCommaInHashLiteral:
106
+ Enabled: false
107
+ Style/SymbolArray:
108
+ Enabled: false
109
+ Style/AsciiComments:
110
+ Enabled: false
111
+ Style/FormatString:
112
+ Enabled: false
113
+ Style/FormatStringToken:
114
+ Enabled: false
115
+ Metrics/PerceivedComplexity:
116
+ Enabled: false
117
+ Style/DoubleNegation:
118
+ Enabled: false
119
+ Style/ZeroLengthPredicate:
120
+ Enabled: false
121
+ Style/SafeNavigation:
122
+ Enabled: false
123
+ Lint/MissingCopEnableDirective:
124
+ Enabled: false
125
+ Naming/MemoizedInstanceVariableName:
126
+ EnforcedStyleForLeadingUnderscores: optional
127
+ Style/NonNilCheck:
128
+ Enabled: false
129
+ Style/RedundantSelf:
130
+ Enabled: false
131
+ Layout/ArgumentAlignment:
132
+ Enabled: false
133
+ Layout/MultilineMethodCallBraceLayout:
134
+ Enabled: false
135
+ Layout/EmptyLineAfterGuardClause:
136
+ Enabled: false
137
+ Lint/MissingSuper:
138
+ Enabled: false
139
+ Naming/PredicateName:
140
+ Enabled: false
141
+ Style/ClassVars:
142
+ Enabled: false
143
+ Style/AccessorGrouping:
144
+ Enabled: false
145
+ Style/NumericLiterals:
146
+ Enabled: false
147
+ Style/SymbolProc:
148
+ Enabled: false
149
+ Layout/EmptyLinesAroundAttributeAccessor:
150
+ Enabled: false
151
+ Performance/Casecmp:
152
+ Enabled: false
153
+ Lint/SuppressedException:
154
+ Enabled: false
155
+ Style/NegatedIf:
156
+ Enabled: false
157
+ Style/QuotedSymbols:
158
+ Enabled: false
159
+ Metrics/ParameterLists:
160
+ CountKeywordArgs: false
@@ -0,0 +1,39 @@
1
+ # frozen_string_literal: true
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = "pludoni-rubocop"
5
+ spec.version = "1.37.0"
6
+ spec.authors = ["Stefan Wienert"]
7
+ spec.email = ["info@stefanwienert.de"]
8
+
9
+ spec.summary = "Shared company Rubocop"
10
+ spec.description = "Shared company Rubocop"
11
+ spec.homepage = "https://github.com/pludoni/pludoni-rubocop"
12
+ spec.license = "MIT"
13
+ spec.required_ruby_version = ">= 2.7.0"
14
+
15
+ # spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"
16
+
17
+ spec.metadata["homepage_uri"] = spec.homepage
18
+ #spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here."
19
+ #spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
20
+
21
+ # Specify which files should be added to the gem when it is released.
22
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
23
+ spec.files = Dir.chdir(__dir__) do
24
+ `git ls-files -z`.split("\x0").reject do |f|
25
+ (f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
26
+ end
27
+ end
28
+ spec.bindir = "exe"
29
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
30
+ spec.require_paths = ["lib"]
31
+
32
+ # Uncomment to register a new dependency of your gem
33
+ spec.add_dependency 'rubocop', '~> 1.37.0'
34
+ spec.add_dependency 'rubocop-rails', '~> 2.17.2'
35
+ spec.add_dependency 'rubocop-performance', '~> 1.15.0'
36
+
37
+ # For more information and examples about making a new gem, check out our
38
+ # guide at: https://bundler.io/guides/creating_gem.html
39
+ end
data/rails.yml ADDED
@@ -0,0 +1,17 @@
1
+ require:
2
+ - rubocop-rails
3
+ Rails:
4
+ Enabled: true
5
+ Rails/HasAndBelongsToMany:
6
+ Enabled: false
7
+ Rails/ActionFilter:
8
+ Enabled: false
9
+ # Rails 5 -> im Controller/Request Test get :foo, params: {}
10
+ Rails/HttpPositionalArguments:
11
+ Enabled: false
12
+ Rails/SkipsModelValidations:
13
+ Enabled: false
14
+ Rails/ApplicationRecord:
15
+ Enabled: false
16
+ Rails/EnumHash:
17
+ Enabled: false
metadata ADDED
@@ -0,0 +1,94 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pludoni-rubocop
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.37.0
5
+ platform: ruby
6
+ authors:
7
+ - Stefan Wienert
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2022-12-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: 1.37.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 1.37.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: rubocop-rails
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 2.17.2
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 2.17.2
41
+ - !ruby/object:Gem::Dependency
42
+ name: rubocop-performance
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 1.15.0
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 1.15.0
55
+ description: Shared company Rubocop
56
+ email:
57
+ - info@stefanwienert.de
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - Gemfile
63
+ - Gemfile.lock
64
+ - LICENSE.txt
65
+ - README.md
66
+ - Rakefile
67
+ - default.yml
68
+ - pludoni-rubocop.gemspec
69
+ - rails.yml
70
+ homepage: https://github.com/pludoni/pludoni-rubocop
71
+ licenses:
72
+ - MIT
73
+ metadata:
74
+ homepage_uri: https://github.com/pludoni/pludoni-rubocop
75
+ post_install_message:
76
+ rdoc_options: []
77
+ require_paths:
78
+ - lib
79
+ required_ruby_version: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: 2.7.0
84
+ required_rubygems_version: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ requirements: []
90
+ rubygems_version: 3.2.33
91
+ signing_key:
92
+ specification_version: 4
93
+ summary: Shared company Rubocop
94
+ test_files: []