dashbrains-rubocop-config 1.0.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: 208da1b4ec50f34b8d13fbea4d797afbfb2e2bcba1bd7c9171fdba28e0c5072c
4
+ data.tar.gz: 4a04ec5ce65467f3843e1064d77670ee9e3fc14c8bfaf92a620c209d5dd15f27
5
+ SHA512:
6
+ metadata.gz: cef99e9738afe13d0952dd6b12a8ef8185d419281df028be54dd26bd7a1b4e4da20ab69e3b478c0d6b2d5d0c197a0a9fabd41735ad3220984cb58b0f9d266138
7
+ data.tar.gz: eb6681f4da9992354b11fc8c8d74b0927ac2416c45da71b870304af93181a8c689c7c20f07bf928095a80434d08b62b6398a6b1a9fee0f084969eee0574134ce
data/.gitignore ADDED
@@ -0,0 +1,56 @@
1
+ *.gem
2
+ *.rbc
3
+ /.config
4
+ /coverage/
5
+ /InstalledFiles
6
+ /pkg/
7
+ /spec/reports/
8
+ /spec/examples.txt
9
+ /test/tmp/
10
+ /test/version_tmp/
11
+ /tmp/
12
+
13
+ # Used by dotenv library to load environment variables.
14
+ # .env
15
+
16
+ # Ignore Byebug command history file.
17
+ .byebug_history
18
+
19
+ ## Specific to RubyMotion:
20
+ .dat*
21
+ .repl_history
22
+ build/
23
+ *.bridgesupport
24
+ build-iPhoneOS/
25
+ build-iPhoneSimulator/
26
+
27
+ ## Specific to RubyMotion (use of CocoaPods):
28
+ #
29
+ # We recommend against adding the Pods directory to your .gitignore. However
30
+ # you should judge for yourself, the pros and cons are mentioned at:
31
+ # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
32
+ #
33
+ # vendor/Pods/
34
+
35
+ ## Documentation cache and generated files:
36
+ /.yardoc/
37
+ /_yardoc/
38
+ /doc/
39
+ /rdoc/
40
+
41
+ ## Environment normalization:
42
+ /.bundle/
43
+ /vendor/bundle
44
+ /lib/bundler/man/
45
+
46
+ # for a library or gem, you might want to ignore these files since the code is
47
+ # intended to run in multiple environments; otherwise, check them in:
48
+ # Gemfile.lock
49
+ # .ruby-version
50
+ # .ruby-gemset
51
+
52
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
53
+ .rvmrc
54
+
55
+ # Used by RuboCop. Remote config files pulled in from inherit_from directive.
56
+ # .rubocop-https?--*
data/.rubocop.yml ADDED
@@ -0,0 +1,2 @@
1
+ inherit_from:
2
+ - ./rubocop.yml
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 dashbrains-rubocop-config.gemspec
6
+ gemspec
7
+
8
+ gem 'bundler'
data/Gemfile.lock ADDED
@@ -0,0 +1,83 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ dashbrains-rubocop-config (1.0.0)
5
+ rubocop
6
+ rubocop-graphql
7
+ rubocop-minitest
8
+ rubocop-performance
9
+ rubocop-rails
10
+ rubocop-rspec
11
+ rubocop-sorbet
12
+
13
+ GEM
14
+ remote: https://rubygems.org/
15
+ specs:
16
+ activesupport (7.0.6)
17
+ concurrent-ruby (~> 1.0, >= 1.0.2)
18
+ i18n (>= 1.6, < 2)
19
+ minitest (>= 5.1)
20
+ tzinfo (~> 2.0)
21
+ ast (2.4.2)
22
+ concurrent-ruby (1.2.2)
23
+ i18n (1.14.1)
24
+ concurrent-ruby (~> 1.0)
25
+ json (2.6.3)
26
+ language_server-protocol (3.17.0.3)
27
+ minitest (5.19.0)
28
+ parallel (1.23.0)
29
+ parser (3.2.2.3)
30
+ ast (~> 2.4.1)
31
+ racc
32
+ racc (1.7.1)
33
+ rack (3.0.8)
34
+ rainbow (3.1.1)
35
+ regexp_parser (2.8.1)
36
+ rexml (3.2.6)
37
+ rubocop (1.55.1)
38
+ json (~> 2.3)
39
+ language_server-protocol (>= 3.17.0)
40
+ parallel (~> 1.10)
41
+ parser (>= 3.2.2.3)
42
+ rainbow (>= 2.2.2, < 4.0)
43
+ regexp_parser (>= 1.8, < 3.0)
44
+ rexml (>= 3.2.5, < 4.0)
45
+ rubocop-ast (>= 1.28.1, < 2.0)
46
+ ruby-progressbar (~> 1.7)
47
+ unicode-display_width (>= 2.4.0, < 3.0)
48
+ rubocop-ast (1.29.0)
49
+ parser (>= 3.2.1.0)
50
+ rubocop-capybara (2.18.0)
51
+ rubocop (~> 1.41)
52
+ rubocop-factory_bot (2.23.1)
53
+ rubocop (~> 1.33)
54
+ rubocop-graphql (1.4.0)
55
+ rubocop (>= 0.90, < 2)
56
+ rubocop-minitest (0.31.0)
57
+ rubocop (>= 1.39, < 2.0)
58
+ rubocop-performance (1.18.0)
59
+ rubocop (>= 1.7.0, < 2.0)
60
+ rubocop-ast (>= 0.4.0)
61
+ rubocop-rails (2.20.2)
62
+ activesupport (>= 4.2.0)
63
+ rack (>= 1.1)
64
+ rubocop (>= 1.33.0, < 2.0)
65
+ rubocop-rspec (2.23.0)
66
+ rubocop (~> 1.33)
67
+ rubocop-capybara (~> 2.17)
68
+ rubocop-factory_bot (~> 2.22)
69
+ rubocop-sorbet (0.7.1)
70
+ rubocop (>= 0.90.0)
71
+ ruby-progressbar (1.13.0)
72
+ tzinfo (2.0.6)
73
+ concurrent-ruby (~> 1.0)
74
+ unicode-display_width (2.4.2)
75
+
76
+ PLATFORMS
77
+ arm64-darwin-22
78
+
79
+ DEPENDENCIES
80
+ dashbrains-rubocop-config!
81
+
82
+ BUNDLED WITH
83
+ 2.4.17
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 DashBrains
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 @@
1
+ # rubocop-config
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = 'dashbrains-rubocop-config'
5
+ spec.version = '1.0.0'
6
+ spec.authors = ['DashBrains']
7
+ spec.email = ['contact@dashbrains.dev']
8
+
9
+ spec.summary = 'Rubocop config for DashBrains'
10
+ spec.description = 'Shared Rubocop config used at DashBrains'
11
+ spec.homepage = 'https://github.com/DashBrains/rubocop-config'
12
+ spec.license = 'MIT'
13
+ spec.required_ruby_version = '>= 2.6.0'
14
+
15
+ spec.metadata['allowed_push_host'] = 'https://rubygems.org'
16
+
17
+ spec.metadata['homepage_uri'] = spec.homepage
18
+ spec.metadata['source_code_uri'] = 'https://github.com/DashBrains/rubocop-config'
19
+ spec.metadata['rubygems_mfa_required'] = 'true'
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(File.expand_path(__dir__)) do
24
+ `git ls-files -z`.split("\x0")
25
+ .reject { |f| f.match(%r{^(test|spec|features)/}) }
26
+ end
27
+
28
+ spec.add_runtime_dependency 'rubocop'
29
+ spec.add_runtime_dependency 'rubocop-graphql'
30
+ spec.add_runtime_dependency 'rubocop-minitest'
31
+ spec.add_runtime_dependency 'rubocop-performance'
32
+ spec.add_runtime_dependency 'rubocop-rails'
33
+ spec.add_runtime_dependency 'rubocop-rspec'
34
+ spec.add_runtime_dependency 'rubocop-sorbet'
35
+ end
data/renovate.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "$schema": "https://docs.renovatebot.com/renovate-schema.json",
3
+ "extends": [
4
+ "config:base"
5
+ ]
6
+ }
data/rubocop.yml ADDED
@@ -0,0 +1,79 @@
1
+ require:
2
+ - rubocop-minitest
3
+ - rubocop-performance
4
+ - rubocop-rails
5
+ - rubocop-graphql
6
+ - rubocop-rspec
7
+ - rubocop-sorbet
8
+
9
+ AllCops:
10
+ DisplayCopNames: true
11
+ DisplayStyleGuide: true
12
+ NewCops: enable
13
+ TargetRubyVersion: <%= RUBY_VERSION[/\d+\.\d+/] %>
14
+ Exclude:
15
+ - "bin/*"
16
+ - db/schema.rb
17
+ - "node_modules/**/*"
18
+ - "tmp/**/*"
19
+ - "vendor/**/*"
20
+
21
+ Layout/HashAlignment:
22
+ EnforcedColonStyle: table
23
+ EnforcedHashRocketStyle: table
24
+
25
+ Layout/SpaceAroundEqualsInParameterDefault:
26
+ EnforcedStyle: space
27
+
28
+ Metrics/AbcSize:
29
+ Enabled: false
30
+
31
+ Metrics/BlockLength:
32
+ Max: 200
33
+ Exclude:
34
+ - 'spec/**/*.rb'
35
+ - 'db/seeds.rb'
36
+
37
+ Metrics/ClassLength:
38
+ Max: 200
39
+ Exclude:
40
+ - "test/**/*"
41
+
42
+ Metrics/MethodLength:
43
+ Max: 200
44
+ CountComments: false
45
+ Exclude:
46
+ - "db/migrate/*"
47
+ - "test/**/*"
48
+
49
+ Metrics/ModuleLength:
50
+ Max: 200
51
+ Exclude:
52
+ - "app/libs/countries.rb"
53
+
54
+ Naming/MemoizedInstanceVariableName:
55
+ EnforcedStyleForLeadingUnderscores: optional
56
+
57
+ Style/Documentation:
58
+ Enabled: false
59
+
60
+ Style/FrozenStringLiteralComment:
61
+ Enabled: true
62
+
63
+ Style/StringLiterals:
64
+ EnforcedStyle: single_quotes
65
+ SupportedStyles:
66
+ - single_quotes
67
+ - double_quotes
68
+
69
+ Layout/LineLength:
70
+ Max: 200
71
+
72
+ Metrics/CyclomaticComplexity:
73
+ Max: 10
74
+
75
+ Metrics/PerceivedComplexity:
76
+ Max: 10
77
+
78
+ Metrics/ParameterLists:
79
+ Max: 10
metadata ADDED
@@ -0,0 +1,154 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: dashbrains-rubocop-config
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - DashBrains
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-08-04 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-graphql
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-minitest
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: rubocop-performance
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
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: rubocop-rails
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
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: rubocop-rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
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: rubocop-sorbet
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ description: Shared Rubocop config used at DashBrains
112
+ email:
113
+ - contact@dashbrains.dev
114
+ executables: []
115
+ extensions: []
116
+ extra_rdoc_files: []
117
+ files:
118
+ - ".gitignore"
119
+ - ".rubocop.yml"
120
+ - Gemfile
121
+ - Gemfile.lock
122
+ - LICENSE.txt
123
+ - README.md
124
+ - dashbrains-rubocop-config.gemspec
125
+ - renovate.json
126
+ - rubocop.yml
127
+ homepage: https://github.com/DashBrains/rubocop-config
128
+ licenses:
129
+ - MIT
130
+ metadata:
131
+ allowed_push_host: https://rubygems.org
132
+ homepage_uri: https://github.com/DashBrains/rubocop-config
133
+ source_code_uri: https://github.com/DashBrains/rubocop-config
134
+ rubygems_mfa_required: 'true'
135
+ post_install_message:
136
+ rdoc_options: []
137
+ require_paths:
138
+ - lib
139
+ required_ruby_version: !ruby/object:Gem::Requirement
140
+ requirements:
141
+ - - ">="
142
+ - !ruby/object:Gem::Version
143
+ version: 2.6.0
144
+ required_rubygems_version: !ruby/object:Gem::Requirement
145
+ requirements:
146
+ - - ">="
147
+ - !ruby/object:Gem::Version
148
+ version: '0'
149
+ requirements: []
150
+ rubygems_version: 3.4.17
151
+ signing_key:
152
+ specification_version: 4
153
+ summary: Rubocop config for DashBrains
154
+ test_files: []