dashbrains-rubocop-config 1.0.0 → 1.0.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 208da1b4ec50f34b8d13fbea4d797afbfb2e2bcba1bd7c9171fdba28e0c5072c
4
- data.tar.gz: 4a04ec5ce65467f3843e1064d77670ee9e3fc14c8bfaf92a620c209d5dd15f27
3
+ metadata.gz: a245aea0f467b59a87ac9a6824ca3b03ee75ca489e9f8fa91340c2c644cdee79
4
+ data.tar.gz: 0e83e032333f963d9bb09f68770fb85d968b46878f3e40e839eb8013649c68f9
5
5
  SHA512:
6
- metadata.gz: cef99e9738afe13d0952dd6b12a8ef8185d419281df028be54dd26bd7a1b4e4da20ab69e3b478c0d6b2d5d0c197a0a9fabd41735ad3220984cb58b0f9d266138
7
- data.tar.gz: eb6681f4da9992354b11fc8c8d74b0927ac2416c45da71b870304af93181a8c689c7c20f07bf928095a80434d08b62b6398a6b1a9fee0f084969eee0574134ce
6
+ metadata.gz: a326e45d0ad25120d07b1c37f5e1b29778a00524e4878a864f47191589efb7619088da89fbbdab3808d03703f4c71c3752625e17913f5d56887ca9759f92fb02
7
+ data.tar.gz: 58527ccf04a5e6167b31933ae3702a12a9e12d03b6619fe7d0545906fca5027c6b52bea466f60b48b2f0251f191134f48d2e687e0f76740cf41e1ad0b5e59968
@@ -0,0 +1,31 @@
1
+ name: automerge
2
+ on:
3
+ pull_request:
4
+ types:
5
+ - labeled
6
+ - unlabeled
7
+ - synchronize
8
+ - opened
9
+ - edited
10
+ - ready_for_review
11
+ - reopened
12
+ - unlocked
13
+ pull_request_review:
14
+ types:
15
+ - submitted
16
+ check_suite:
17
+ types:
18
+ - completed
19
+ status: {}
20
+ jobs:
21
+ automerge:
22
+ runs-on: ubuntu-latest
23
+ permissions:
24
+ contents: write
25
+ steps:
26
+ - id: automerge
27
+ name: automerge
28
+ uses: "pascalgn/automerge-action@v0.16.3"
29
+ env:
30
+ GITHUB_TOKEN: "${{ secrets.PAT_TOKEN }}"
31
+ MERGE_LABELS: "autorelease: pending"
@@ -0,0 +1,30 @@
1
+ name: Format & Lint & Build & Analysis
2
+
3
+ on:
4
+ merge_group:
5
+ pull_request:
6
+ workflow_dispatch:
7
+ workflow_call:
8
+
9
+ jobs:
10
+ rubocop:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: Checkout
14
+ uses: actions/checkout@v4
15
+ - uses: ruby/setup-ruby@v1
16
+ with:
17
+ bundler-cache: true
18
+ - name: Run rubocop
19
+ run: bundle exec rubocop -f github
20
+
21
+ bundler-audit:
22
+ runs-on: ubuntu-latest
23
+ steps:
24
+ - name: Checkout
25
+ uses: actions/checkout@v4
26
+ - uses: ruby/setup-ruby@v1
27
+ with:
28
+ bundler-cache: true
29
+ - name: Run bundler-audit
30
+ run: bundle exec bundler-audit --update
@@ -0,0 +1,41 @@
1
+ name: release
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+
8
+ jobs:
9
+ check:
10
+ name: Run format & lint & build check
11
+ uses: dashbrains/rubocop-config/.github/workflows/lint_format.yml@main
12
+
13
+ release-please:
14
+ runs-on: ubuntu-latest
15
+ needs: [ check ]
16
+ permissions:
17
+ contents: write
18
+ pull-requests: write
19
+ steps:
20
+ - uses: GoogleCloudPlatform/release-please-action@v4
21
+ id: release
22
+ with:
23
+ release-type: ruby
24
+ token: "${{ secrets.PAT_TOKEN }}"
25
+ - uses: actions/checkout@v4
26
+ if: ${{ steps.release.outputs.release_created }}
27
+ - uses: ruby/setup-ruby@v1
28
+ if: ${{ steps.release.outputs.release_created }}
29
+ - run: bundle install
30
+ if: ${{ steps.release.outputs.release_created }}
31
+ - name: publish gem
32
+ run: |
33
+ mkdir -p $HOME/.gem
34
+ touch $HOME/.gem/credentials
35
+ chmod 0600 $HOME/.gem/credentials
36
+ printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
37
+ gem build *.gemspec
38
+ gem push *.gem
39
+ env:
40
+ GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
41
+ if: ${{ steps.release.outputs.release_created }}
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.3.4
data/.tool-versions ADDED
@@ -0,0 +1 @@
1
+ ruby 3.3.4
data/CHANGELOG.md ADDED
@@ -0,0 +1,36 @@
1
+ # Changelog
2
+
3
+ ## [1.0.4](https://github.com/DashBrains/rubocop-config/compare/v1.0.3...v1.0.4) (2024-08-31)
4
+
5
+
6
+ ### Miscellaneous Chores
7
+
8
+ * release 1.0.4 ([a9103ea](https://github.com/DashBrains/rubocop-config/commit/a9103ea30c9f2277be121bade06142ac7d97a42b))
9
+
10
+ ## [1.0.3](https://github.com/DashBrains/rubocop-config/compare/v1.0.2...v1.0.3) (2024-08-24)
11
+
12
+
13
+ ### Miscellaneous Chores
14
+
15
+ * release 1.0.3 ([a9d6700](https://github.com/DashBrains/rubocop-config/commit/a9d670007b75a6267ba47f80147f537dc95bb446))
16
+
17
+ ## [1.0.2](https://github.com/DashBrains/rubocop-config/compare/v1.0.1...v1.0.2) (2024-08-24)
18
+
19
+
20
+ ### Miscellaneous Chores
21
+
22
+ * release 1.0.2 ([1c93338](https://github.com/DashBrains/rubocop-config/commit/1c93338614b9f0bad74b520305db93b6a119d16f))
23
+
24
+ ## 1.0.1 (2024-08-24)
25
+
26
+
27
+ ### Features
28
+
29
+ * add platforms ([93ebbb3](https://github.com/DashBrains/rubocop-config/commit/93ebbb3d7f5632481093bfa84f410c04675e5a58))
30
+ * revert brakeman ([cb87ce1](https://github.com/DashBrains/rubocop-config/commit/cb87ce1ae48643249b3d3d5de365290ef835b566))
31
+ * update dependencies and added release please ([3a26cb1](https://github.com/DashBrains/rubocop-config/commit/3a26cb1f745107b44c45bfe86dfa4a900ecd330e))
32
+
33
+
34
+ ### Miscellaneous Chores
35
+
36
+ * release 1.0.1 ([4170f69](https://github.com/DashBrains/rubocop-config/commit/4170f6967a74b945f9b58bd82e1fbff9200d207f))
data/Gemfile CHANGED
@@ -6,3 +6,19 @@ source 'https://rubygems.org'
6
6
  gemspec
7
7
 
8
8
  gem 'bundler'
9
+
10
+ gem 'rubocop', require: false
11
+ gem 'rubocop-capybara', require: false
12
+ gem 'rubocop-factory_bot', require: false
13
+ gem 'rubocop-graphql', require: false
14
+ gem 'rubocop-minitest', require: false
15
+ gem 'rubocop-performance', require: false
16
+ gem 'rubocop-rails', require: false
17
+ gem 'rubocop-rspec', require: false
18
+ gem 'rubocop-rspec_rails', require: false
19
+ gem 'rubocop-sorbet', require: false
20
+
21
+ group :development do
22
+ # Bundle-audit
23
+ gem 'bundler-audit', require: false
24
+ end
data/Gemfile.lock CHANGED
@@ -1,83 +1,119 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dashbrains-rubocop-config (1.0.0)
4
+ dashbrains-rubocop-config (1.0.4)
5
5
  rubocop
6
+ rubocop-capybara
7
+ rubocop-factory_bot
6
8
  rubocop-graphql
7
9
  rubocop-minitest
8
10
  rubocop-performance
9
11
  rubocop-rails
10
12
  rubocop-rspec
13
+ rubocop-rspec_rails
11
14
  rubocop-sorbet
12
15
 
13
16
  GEM
14
17
  remote: https://rubygems.org/
15
18
  specs:
16
- activesupport (7.0.6)
17
- concurrent-ruby (~> 1.0, >= 1.0.2)
19
+ activesupport (7.2.1)
20
+ base64
21
+ bigdecimal
22
+ concurrent-ruby (~> 1.0, >= 1.3.1)
23
+ connection_pool (>= 2.2.5)
24
+ drb
18
25
  i18n (>= 1.6, < 2)
26
+ logger (>= 1.4.2)
19
27
  minitest (>= 5.1)
20
- tzinfo (~> 2.0)
28
+ securerandom (>= 0.3)
29
+ tzinfo (~> 2.0, >= 2.0.5)
21
30
  ast (2.4.2)
22
- concurrent-ruby (1.2.2)
23
- i18n (1.14.1)
31
+ base64 (0.2.0)
32
+ bigdecimal (3.1.8)
33
+ bundler-audit (0.9.2)
34
+ bundler (>= 1.2.0, < 3)
35
+ thor (~> 1.0)
36
+ concurrent-ruby (1.3.4)
37
+ connection_pool (2.4.1)
38
+ drb (2.2.1)
39
+ i18n (1.14.5)
24
40
  concurrent-ruby (~> 1.0)
25
- json (2.6.3)
41
+ json (2.7.2)
26
42
  language_server-protocol (3.17.0.3)
27
- minitest (5.19.0)
28
- parallel (1.23.0)
29
- parser (3.2.2.3)
43
+ logger (1.6.0)
44
+ minitest (5.25.1)
45
+ parallel (1.26.3)
46
+ parser (3.3.4.2)
30
47
  ast (~> 2.4.1)
31
48
  racc
32
- racc (1.7.1)
33
- rack (3.0.8)
49
+ racc (1.8.1)
50
+ rack (3.1.7)
34
51
  rainbow (3.1.1)
35
- regexp_parser (2.8.1)
36
- rexml (3.2.6)
37
- rubocop (1.55.1)
52
+ regexp_parser (2.9.2)
53
+ rubocop (1.66.0)
38
54
  json (~> 2.3)
39
55
  language_server-protocol (>= 3.17.0)
40
56
  parallel (~> 1.10)
41
- parser (>= 3.2.2.3)
57
+ parser (>= 3.3.0.2)
42
58
  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)
59
+ regexp_parser (>= 2.4, < 3.0)
60
+ rubocop-ast (>= 1.32.1, < 2.0)
46
61
  ruby-progressbar (~> 1.7)
47
62
  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)
63
+ rubocop-ast (1.32.1)
64
+ parser (>= 3.3.1.0)
65
+ rubocop-capybara (2.21.0)
51
66
  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)
67
+ rubocop-factory_bot (2.26.1)
68
+ rubocop (~> 1.61)
69
+ rubocop-graphql (1.5.4)
70
+ rubocop (>= 1.50, < 2)
71
+ rubocop-minitest (0.36.0)
72
+ rubocop (>= 1.61, < 2.0)
73
+ rubocop-ast (>= 1.31.1, < 2.0)
74
+ rubocop-performance (1.21.1)
75
+ rubocop (>= 1.48.1, < 2.0)
76
+ rubocop-ast (>= 1.31.1, < 2.0)
77
+ rubocop-rails (2.26.0)
62
78
  activesupport (>= 4.2.0)
63
79
  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)
80
+ rubocop (>= 1.52.0, < 2.0)
81
+ rubocop-ast (>= 1.31.1, < 2.0)
82
+ rubocop-rspec (3.0.4)
83
+ rubocop (~> 1.61)
84
+ rubocop-rspec_rails (2.30.0)
85
+ rubocop (~> 1.61)
86
+ rubocop-rspec (~> 3, >= 3.0.1)
87
+ rubocop-sorbet (0.8.5)
88
+ rubocop (>= 1)
71
89
  ruby-progressbar (1.13.0)
90
+ securerandom (0.3.1)
91
+ thor (1.3.2)
72
92
  tzinfo (2.0.6)
73
93
  concurrent-ruby (~> 1.0)
74
- unicode-display_width (2.4.2)
94
+ unicode-display_width (2.5.0)
75
95
 
76
96
  PLATFORMS
77
97
  arm64-darwin-22
98
+ arm64-darwin-23
99
+ arm64-darwin-24
100
+ ruby
101
+ x86_64-linux
78
102
 
79
103
  DEPENDENCIES
104
+ bundler
105
+ bundler-audit
80
106
  dashbrains-rubocop-config!
107
+ rubocop
108
+ rubocop-capybara
109
+ rubocop-factory_bot
110
+ rubocop-graphql
111
+ rubocop-minitest
112
+ rubocop-performance
113
+ rubocop-rails
114
+ rubocop-rspec
115
+ rubocop-rspec_rails
116
+ rubocop-sorbet
81
117
 
82
118
  BUNDLED WITH
83
- 2.4.17
119
+ 2.5.17
@@ -1,8 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require_relative 'lib/version'
4
+
3
5
  Gem::Specification.new do |spec|
4
6
  spec.name = 'dashbrains-rubocop-config'
5
- spec.version = '1.0.0'
7
+ spec.version = Dashbrains::Rubocop::Config::VERSION
6
8
  spec.authors = ['DashBrains']
7
9
  spec.email = ['contact@dashbrains.dev']
8
10
 
@@ -10,7 +12,7 @@ Gem::Specification.new do |spec|
10
12
  spec.description = 'Shared Rubocop config used at DashBrains'
11
13
  spec.homepage = 'https://github.com/DashBrains/rubocop-config'
12
14
  spec.license = 'MIT'
13
- spec.required_ruby_version = '>= 2.6.0'
15
+ spec.required_ruby_version = '>= 3.0.0'
14
16
 
15
17
  spec.metadata['allowed_push_host'] = 'https://rubygems.org'
16
18
 
@@ -24,12 +26,16 @@ Gem::Specification.new do |spec|
24
26
  `git ls-files -z`.split("\x0")
25
27
  .reject { |f| f.match(%r{^(test|spec|features)/}) }
26
28
  end
29
+ spec.require_paths = ['lib']
27
30
 
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'
31
+ spec.add_dependency 'rubocop'
32
+ spec.add_dependency 'rubocop-capybara'
33
+ spec.add_dependency 'rubocop-factory_bot'
34
+ spec.add_dependency 'rubocop-graphql'
35
+ spec.add_dependency 'rubocop-minitest'
36
+ spec.add_dependency 'rubocop-performance'
37
+ spec.add_dependency 'rubocop-rails'
38
+ spec.add_dependency 'rubocop-rspec'
39
+ spec.add_dependency 'rubocop-rspec_rails'
40
+ spec.add_dependency 'rubocop-sorbet'
35
41
  end
data/lib/version.rb ADDED
@@ -0,0 +1,10 @@
1
+ # typed: false
2
+ # frozen_string_literal: true
3
+
4
+ module Dashbrains
5
+ module Rubocop
6
+ module Config
7
+ VERSION = '1.0.4'
8
+ end
9
+ end
10
+ end
data/renovate.json CHANGED
@@ -1,6 +1,23 @@
1
1
  {
2
- "$schema": "https://docs.renovatebot.com/renovate-schema.json",
3
- "extends": [
4
- "config:base"
5
- ]
6
- }
2
+ "$schema": "https://docs.renovatebot.com/renovate-schema.json",
3
+ "extends": [
4
+ "config:base"
5
+ ],
6
+ "groupName": "all dependencies",
7
+ "groupSlug": "all",
8
+ "lockFileMaintenance": {
9
+ "enabled": false,
10
+ "automerge": true
11
+ },
12
+ "packageRules": [
13
+ {
14
+ "groupName": "all dependencies",
15
+ "groupSlug": "all",
16
+ "matchPackagePatterns": [
17
+ "*"
18
+ ],
19
+ "automerge": true
20
+ }
21
+ ],
22
+ "separateMajorMinor": false
23
+ }
data/rubocop.yml CHANGED
@@ -5,6 +5,9 @@ require:
5
5
  - rubocop-graphql
6
6
  - rubocop-rspec
7
7
  - rubocop-sorbet
8
+ - rubocop-factory_bot
9
+ - rubocop-capybara
10
+ - rubocop-rspec_rails
8
11
 
9
12
  AllCops:
10
13
  DisplayCopNames: true
@@ -77,3 +80,6 @@ Metrics/PerceivedComplexity:
77
80
 
78
81
  Metrics/ParameterLists:
79
82
  Max: 10
83
+
84
+ Gemspec/RequiredRubyVersion:
85
+ Enabled: false
data/sig/config.rbs ADDED
@@ -0,0 +1,8 @@
1
+ module Dashbrains
2
+ module Rubocop
3
+ module Config
4
+ VERSION: String
5
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
6
+ end
7
+ end
8
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dashbrains-rubocop-config
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - DashBrains
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-04 00:00:00.000000000 Z
11
+ date: 2024-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -24,6 +24,34 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rubocop-capybara
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-factory_bot
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'
27
55
  - !ruby/object:Gem::Dependency
28
56
  name: rubocop-graphql
29
57
  requirement: !ruby/object:Gem::Requirement
@@ -94,6 +122,20 @@ dependencies:
94
122
  - - ">="
95
123
  - !ruby/object:Gem::Version
96
124
  version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rubocop-rspec_rails
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
97
139
  - !ruby/object:Gem::Dependency
98
140
  name: rubocop-sorbet
99
141
  requirement: !ruby/object:Gem::Requirement
@@ -115,15 +157,23 @@ executables: []
115
157
  extensions: []
116
158
  extra_rdoc_files: []
117
159
  files:
160
+ - ".github/workflows/automerge.yml"
161
+ - ".github/workflows/lint_format.yml"
162
+ - ".github/workflows/release.yml"
118
163
  - ".gitignore"
119
164
  - ".rubocop.yml"
165
+ - ".ruby-version"
166
+ - ".tool-versions"
167
+ - CHANGELOG.md
120
168
  - Gemfile
121
169
  - Gemfile.lock
122
170
  - LICENSE.txt
123
171
  - README.md
124
172
  - dashbrains-rubocop-config.gemspec
173
+ - lib/version.rb
125
174
  - renovate.json
126
175
  - rubocop.yml
176
+ - sig/config.rbs
127
177
  homepage: https://github.com/DashBrains/rubocop-config
128
178
  licenses:
129
179
  - MIT
@@ -132,7 +182,7 @@ metadata:
132
182
  homepage_uri: https://github.com/DashBrains/rubocop-config
133
183
  source_code_uri: https://github.com/DashBrains/rubocop-config
134
184
  rubygems_mfa_required: 'true'
135
- post_install_message:
185
+ post_install_message:
136
186
  rdoc_options: []
137
187
  require_paths:
138
188
  - lib
@@ -140,15 +190,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
140
190
  requirements:
141
191
  - - ">="
142
192
  - !ruby/object:Gem::Version
143
- version: 2.6.0
193
+ version: 3.0.0
144
194
  required_rubygems_version: !ruby/object:Gem::Requirement
145
195
  requirements:
146
196
  - - ">="
147
197
  - !ruby/object:Gem::Version
148
198
  version: '0'
149
199
  requirements: []
150
- rubygems_version: 3.4.17
151
- signing_key:
200
+ rubygems_version: 3.5.11
201
+ signing_key:
152
202
  specification_version: 4
153
203
  summary: Rubocop config for DashBrains
154
204
  test_files: []