checkoff 0.223.0 → 0.225.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/checkoff.gemspec +10 -5
- data/lib/checkoff/cli.rb +1 -1
- data/lib/checkoff/clients.rb +1 -1
- data/lib/checkoff/custom_fields.rb +1 -1
- data/lib/checkoff/events.rb +1 -1
- data/lib/checkoff/internal/config_loader.rb +2 -3
- data/lib/checkoff/internal/selector_classes/section/function_evaluator.rb +3 -2
- data/lib/checkoff/my_tasks.rb +1 -1
- data/lib/checkoff/portfolios.rb +11 -9
- data/lib/checkoff/projects.rb +1 -1
- data/lib/checkoff/sections.rb +3 -4
- data/lib/checkoff/tags.rb +66 -17
- data/lib/checkoff/tasks.rb +1 -1
- data/lib/checkoff/version.rb +1 -1
- data/lib/checkoff/workspaces.rb +1 -1
- data/rbi/checkoff.rbi +4529 -0
- data/sig/checkoff.rbs +3749 -0
- metadata +4 -210
- data/.circleci/config.yml +0 -291
- data/.envrc +0 -9
- data/.git-hooks/pre_commit/circle_ci.rb +0 -26
- data/.git-hooks/pre_commit/punchlist.rb +0 -52
- data/.git-hooks/pre_commit/solargraph_typecheck.rb +0 -77
- data/.gitattributes +0 -6
- data/.gitignore +0 -65
- data/.markdownlint_style.rb +0 -4
- data/.mdlrc +0 -1
- data/.overcommit.yml +0 -115
- data/.rubocop.yml +0 -143
- data/.rubocop_todo.yml +0 -90
- data/.solargraph.yml +0 -35
- data/.yamllint.yml +0 -8
- data/.yardopts +0 -2
- data/CODE_OF_CONDUCT.md +0 -133
- data/CONTRIBUTING.rst +0 -75
- data/DEVELOPMENT.md +0 -69
- data/GLOSSARY.md +0 -16
- data/Gemfile +0 -67
- data/Gemfile.lock +0 -351
- data/LICENSE +0 -21
- data/Makefile +0 -139
- data/bin/brakeman +0 -27
- data/bin/bump +0 -29
- data/bin/checkoff +0 -29
- data/bin/console +0 -15
- data/bin/overcommit +0 -29
- data/bin/overcommit_branch +0 -114
- data/bin/rake +0 -29
- data/bin/rubocop +0 -27
- data/bin/setup +0 -8
- data/bin/solargraph +0 -27
- data/bin/sord +0 -27
- data/bin/spoom +0 -27
- data/bin/srb +0 -27
- data/bin/srb-rbi +0 -27
- data/bin/tapioca +0 -27
- data/bin/yard +0 -27
- data/config/annotations_asana.rb +0 -253
- data/config/annotations_misc.rb +0 -68
- data/config/env.1p +0 -2
- data/docs/.gitignore +0 -3
- data/docs/cookiecutter_input.json +0 -17
- data/docs/example_project.png +0 -0
- data/fix.sh +0 -534
- data/metrics/bigfiles_high_water_mark +0 -1
- data/metrics/brakeman_high_water_mark +0 -1
- data/metrics/bundle-audit_high_water_mark +0 -1
- data/metrics/cane_high_water_mark +0 -1
- data/metrics/eslint_high_water_mark +0 -1
- data/metrics/flake8_high_water_mark +0 -1
- data/metrics/flay_high_water_mark +0 -1
- data/metrics/flog_high_water_mark +0 -1
- data/metrics/jscs_high_water_mark +0 -1
- data/metrics/mdl_high_water_mark +0 -1
- data/metrics/pep8_high_water_mark +0 -1
- data/metrics/punchlist_high_water_mark +0 -1
- data/metrics/pycodestyle_high_water_mark +0 -1
- data/metrics/rails_best_practices_high_water_mark +0 -1
- data/metrics/rubocop_high_water_mark +0 -1
- data/metrics/scalastyle_high_water_mark +0 -1
- data/metrics/shellcheck_high_water_mark +0 -1
- data/package.json +0 -9
- data/rakelib/citest.rake +0 -4
- data/rakelib/clear_metrics.rake +0 -9
- data/rakelib/console.rake +0 -15
- data/rakelib/default.rake +0 -4
- data/rakelib/doc.rake +0 -6
- data/rakelib/gem_tasks.rake +0 -3
- data/rakelib/localtest.rake +0 -4
- data/rakelib/overcommit.rake +0 -6
- data/rakelib/quality.rake +0 -4
- data/rakelib/repl.rake +0 -4
- data/rakelib/test.rake +0 -10
- data/rakelib/trigger_next_builds.rake +0 -7
- data/rakelib/undercover.rake +0 -8
- data/requirements_dev.txt +0 -2
- data/sorbet/config +0 -4
- data/sorbet/rbi/annotations/.gitattributes +0 -1
- data/sorbet/rbi/annotations/activesupport.rbi +0 -453
- data/sorbet/rbi/annotations/faraday.rbi +0 -17
- data/sorbet/rbi/annotations/minitest.rbi +0 -119
- data/sorbet/rbi/annotations/mocha.rbi +0 -34
- data/sorbet/rbi/annotations/rainbow.rbi +0 -269
- data/sorbet/rbi/annotations/webmock.rbi +0 -9
- data/sorbet/rbi/dsl/.gitattributes +0 -1
- data/sorbet/rbi/dsl/active_support/callbacks.rbi +0 -23
- data/sorbet/rbi/gems/.gitattributes +0 -1
- data/sorbet/rbi/gems/activesupport@7.1.5.rbi +0 -18746
- data/sorbet/rbi/gems/addressable@2.8.6.rbi +0 -1994
- data/sorbet/rbi/gems/ansi@1.5.0.rbi +0 -688
- data/sorbet/rbi/gems/asana@0.10.6-ab9393136d9ca59b75e42a661fdddc1c65c8f7c3.rbi +0 -6142
- data/sorbet/rbi/gems/ast@2.4.2.rbi +0 -585
- data/sorbet/rbi/gems/backport@1.2.0.rbi +0 -523
- data/sorbet/rbi/gems/base64@0.2.0.rbi +0 -509
- data/sorbet/rbi/gems/benchmark@0.4.0.rbi +0 -618
- data/sorbet/rbi/gems/bigdecimal@3.1.5.rbi +0 -78
- data/sorbet/rbi/gems/brakeman@6.2.2.rbi +0 -222
- data/sorbet/rbi/gems/builder@3.2.4.rbi +0 -505
- data/sorbet/rbi/gems/bump@0.10.0.rbi +0 -169
- data/sorbet/rbi/gems/cache@0.4.1.rbi +0 -211
- data/sorbet/rbi/gems/cache_method@0.2.7.rbi +0 -293
- data/sorbet/rbi/gems/chef-utils@18.3.0.rbi +0 -9
- data/sorbet/rbi/gems/childprocess@5.1.0.rbi +0 -383
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +0 -3427
- data/sorbet/rbi/gems/commander@4.6.0.rbi +0 -9
- data/sorbet/rbi/gems/concurrent-ruby@1.2.3.rbi +0 -11591
- data/sorbet/rbi/gems/connection_pool@2.4.1.rbi +0 -9
- data/sorbet/rbi/gems/crack@0.4.5.rbi +0 -145
- data/sorbet/rbi/gems/diff-lcs@1.5.1.rbi +0 -969
- data/sorbet/rbi/gems/docile@1.4.0.rbi +0 -377
- data/sorbet/rbi/gems/drb@2.2.1.rbi +0 -1347
- data/sorbet/rbi/gems/e2mmap@0.1.0.rbi +0 -9
- data/sorbet/rbi/gems/erubi@1.13.0.rbi +0 -152
- data/sorbet/rbi/gems/faraday-em_http@1.0.0.rbi +0 -222
- data/sorbet/rbi/gems/faraday-em_synchrony@1.0.0.rbi +0 -126
- data/sorbet/rbi/gems/faraday-excon@1.1.0.rbi +0 -136
- data/sorbet/rbi/gems/faraday-httpclient@1.0.1.rbi +0 -145
- data/sorbet/rbi/gems/faraday-multipart@1.0.4.rbi +0 -259
- data/sorbet/rbi/gems/faraday-net_http@1.0.1.rbi +0 -142
- data/sorbet/rbi/gems/faraday-net_http_persistent@1.2.0.rbi +0 -118
- data/sorbet/rbi/gems/faraday-patron@1.0.0.rbi +0 -125
- data/sorbet/rbi/gems/faraday-rack@1.0.0.rbi +0 -133
- data/sorbet/rbi/gems/faraday-retry@1.0.3.rbi +0 -198
- data/sorbet/rbi/gems/faraday@1.10.3.rbi +0 -2729
- data/sorbet/rbi/gems/faraday_middleware-multi_json@0.0.6.rbi +0 -29
- data/sorbet/rbi/gems/faraday_middleware@1.2.0.rbi +0 -1004
- data/sorbet/rbi/gems/gli@2.22.0.rbi +0 -9
- data/sorbet/rbi/gems/hashdiff@1.0.1.rbi +0 -351
- data/sorbet/rbi/gems/highline@2.0.3.rbi +0 -9
- data/sorbet/rbi/gems/i18n@1.14.6.rbi +0 -2359
- data/sorbet/rbi/gems/imagen@0.1.8.rbi +0 -340
- data/sorbet/rbi/gems/iniparse@1.5.0.rbi +0 -899
- data/sorbet/rbi/gems/jaro_winkler@1.6.0.rbi +0 -22
- data/sorbet/rbi/gems/json@2.7.1.rbi +0 -1562
- data/sorbet/rbi/gems/jwt@2.7.1.rbi +0 -1405
- data/sorbet/rbi/gems/kramdown-parser-gfm@1.1.0.rbi +0 -128
- data/sorbet/rbi/gems/kramdown@2.4.0.rbi +0 -3272
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +0 -14238
- data/sorbet/rbi/gems/logger@1.6.2.rbi +0 -923
- data/sorbet/rbi/gems/mdl@0.13.0.rbi +0 -445
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +0 -273
- data/sorbet/rbi/gems/mime-types-data@3.2023.1205.rbi +0 -127
- data/sorbet/rbi/gems/mime-types@3.5.1.rbi +0 -1252
- data/sorbet/rbi/gems/minitest-profile@0.0.2.rbi +0 -136
- data/sorbet/rbi/gems/minitest-reporters@1.6.1.rbi +0 -1014
- data/sorbet/rbi/gems/minitest@5.21.1.rbi +0 -1539
- data/sorbet/rbi/gems/mixlib-cli@2.1.8.rbi +0 -314
- data/sorbet/rbi/gems/mixlib-config@3.0.27.rbi +0 -581
- data/sorbet/rbi/gems/mixlib-shellout@3.2.7.rbi +0 -629
- data/sorbet/rbi/gems/mocha@2.1.0.rbi +0 -12
- data/sorbet/rbi/gems/multi_json@1.15.0.rbi +0 -268
- data/sorbet/rbi/gems/multi_xml@0.6.0.rbi +0 -102
- data/sorbet/rbi/gems/multipart-post@2.3.0.rbi +0 -234
- data/sorbet/rbi/gems/mutex_m@0.3.0.rbi +0 -97
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +0 -159
- data/sorbet/rbi/gems/nokogiri@1.17.0.rbi +0 -8201
- data/sorbet/rbi/gems/oauth2@1.4.11.rbi +0 -833
- data/sorbet/rbi/gems/overcommit@0.64.1.rbi +0 -2400
- data/sorbet/rbi/gems/parallel@1.23.0.rbi +0 -274
- data/sorbet/rbi/gems/parlour@5.0.0.rbi +0 -3007
- data/sorbet/rbi/gems/parser@3.2.2.4.rbi +0 -7253
- data/sorbet/rbi/gems/prism@1.2.0.rbi +0 -39085
- data/sorbet/rbi/gems/pry@0.14.2.rbi +0 -10070
- data/sorbet/rbi/gems/public_suffix@5.0.4.rbi +0 -936
- data/sorbet/rbi/gems/punchlist@1.3.2.rbi +0 -173
- data/sorbet/rbi/gems/racc@1.8.1.rbi +0 -162
- data/sorbet/rbi/gems/rack@3.1.8.rbi +0 -4896
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +0 -403
- data/sorbet/rbi/gems/rake@13.1.0.rbi +0 -3022
- data/sorbet/rbi/gems/rbi@0.2.1.rbi +0 -4535
- data/sorbet/rbi/gems/rbs@2.8.4.rbi +0 -5613
- data/sorbet/rbi/gems/regexp_parser@2.8.3.rbi +0 -3750
- data/sorbet/rbi/gems/reverse_markdown@2.1.1.rbi +0 -390
- data/sorbet/rbi/gems/rexml@3.3.9.rbi +0 -4964
- data/sorbet/rbi/gems/rubocop-ast@1.30.0.rbi +0 -7127
- data/sorbet/rbi/gems/rubocop-minitest@0.34.5.rbi +0 -2577
- data/sorbet/rbi/gems/rubocop-performance@1.20.2.rbi +0 -3262
- data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +0 -329
- data/sorbet/rbi/gems/rubocop-rspec@3.0.0.rbi +0 -7546
- data/sorbet/rbi/gems/rubocop@1.59.0.rbi +0 -57238
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +0 -1318
- data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +0 -9
- data/sorbet/rbi/gems/rugged@1.6.3.rbi +0 -1577
- data/sorbet/rbi/gems/securerandom@0.4.0.rbi +0 -75
- data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +0 -217
- data/sorbet/rbi/gems/simplecov-lcov@0.8.0.rbi +0 -256
- data/sorbet/rbi/gems/simplecov@0.22.0.rbi +0 -2149
- data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +0 -9
- data/sorbet/rbi/gems/solargraph-rails@1.1.0-9dc37915bd4f3b169046e34db6fb32193ab347d8.rbi +0 -320
- data/sorbet/rbi/gems/solargraph@0.50.1-904b9304770a59fac393c5cc3cad481e5bdf0fd8.rbi +0 -9396
- data/sorbet/rbi/gems/sord@5.1.0.rbi +0 -820
- data/sorbet/rbi/gems/source_finder@3.2.1.rbi +0 -317
- data/sorbet/rbi/gems/spoom@1.5.0.rbi +0 -4932
- data/sorbet/rbi/gems/tapioca@0.16.5.rbi +0 -3617
- data/sorbet/rbi/gems/thor@1.3.2.rbi +0 -4378
- data/sorbet/rbi/gems/tilt@2.4.0.rbi +0 -933
- data/sorbet/rbi/gems/tomlrb@2.0.3.rbi +0 -9
- data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +0 -5918
- data/sorbet/rbi/gems/undercover@0.5.0.rbi +0 -433
- data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +0 -66
- data/sorbet/rbi/gems/webmock@3.19.1.rbi +0 -1769
- data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +0 -435
- data/sorbet/rbi/gems/yard@0.9.37.rbi +0 -18406
- data/sorbet/rbi/todo.rbi +0 -11
- data/sorbet/tapioca/config.yml +0 -13
- data/sorbet/tapioca/require.rb +0 -4
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: checkoff
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.225.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vince Broz
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -102,56 +102,10 @@ executables:
|
|
102
102
|
extensions: []
|
103
103
|
extra_rdoc_files: []
|
104
104
|
files:
|
105
|
-
- ".circleci/config.yml"
|
106
|
-
- ".envrc"
|
107
|
-
- ".git-hooks/pre_commit/circle_ci.rb"
|
108
|
-
- ".git-hooks/pre_commit/punchlist.rb"
|
109
|
-
- ".git-hooks/pre_commit/solargraph_typecheck.rb"
|
110
|
-
- ".gitattributes"
|
111
|
-
- ".gitignore"
|
112
|
-
- ".markdownlint_style.rb"
|
113
|
-
- ".mdlrc"
|
114
|
-
- ".overcommit.yml"
|
115
|
-
- ".rubocop.yml"
|
116
|
-
- ".rubocop_todo.yml"
|
117
|
-
- ".solargraph.yml"
|
118
|
-
- ".yamllint.yml"
|
119
|
-
- ".yardopts"
|
120
|
-
- CODE_OF_CONDUCT.md
|
121
|
-
- CONTRIBUTING.rst
|
122
|
-
- DEVELOPMENT.md
|
123
|
-
- GLOSSARY.md
|
124
|
-
- Gemfile
|
125
|
-
- Gemfile.lock
|
126
|
-
- LICENSE
|
127
|
-
- Makefile
|
128
105
|
- README.md
|
129
106
|
- Rakefile
|
130
|
-
- bin/brakeman
|
131
|
-
- bin/bump
|
132
|
-
- bin/checkoff
|
133
|
-
- bin/console
|
134
|
-
- bin/overcommit
|
135
|
-
- bin/overcommit_branch
|
136
|
-
- bin/rake
|
137
|
-
- bin/rubocop
|
138
|
-
- bin/setup
|
139
|
-
- bin/solargraph
|
140
|
-
- bin/sord
|
141
|
-
- bin/spoom
|
142
|
-
- bin/srb
|
143
|
-
- bin/srb-rbi
|
144
|
-
- bin/tapioca
|
145
|
-
- bin/yard
|
146
107
|
- checkoff.gemspec
|
147
|
-
- config/annotations_asana.rb
|
148
|
-
- config/annotations_misc.rb
|
149
|
-
- config/env.1p
|
150
|
-
- docs/.gitignore
|
151
|
-
- docs/cookiecutter_input.json
|
152
|
-
- docs/example_project.png
|
153
108
|
- exe/checkoff
|
154
|
-
- fix.sh
|
155
109
|
- lib/checkoff.rb
|
156
110
|
- lib/checkoff/attachments.rb
|
157
111
|
- lib/checkoff/cli.rb
|
@@ -206,168 +160,8 @@ files:
|
|
206
160
|
- lib/checkoff/timing.rb
|
207
161
|
- lib/checkoff/version.rb
|
208
162
|
- lib/checkoff/workspaces.rb
|
209
|
-
-
|
210
|
-
-
|
211
|
-
- metrics/bundle-audit_high_water_mark
|
212
|
-
- metrics/cane_high_water_mark
|
213
|
-
- metrics/eslint_high_water_mark
|
214
|
-
- metrics/flake8_high_water_mark
|
215
|
-
- metrics/flay_high_water_mark
|
216
|
-
- metrics/flog_high_water_mark
|
217
|
-
- metrics/jscs_high_water_mark
|
218
|
-
- metrics/mdl_high_water_mark
|
219
|
-
- metrics/pep8_high_water_mark
|
220
|
-
- metrics/punchlist_high_water_mark
|
221
|
-
- metrics/pycodestyle_high_water_mark
|
222
|
-
- metrics/rails_best_practices_high_water_mark
|
223
|
-
- metrics/rubocop_high_water_mark
|
224
|
-
- metrics/scalastyle_high_water_mark
|
225
|
-
- metrics/shellcheck_high_water_mark
|
226
|
-
- package.json
|
227
|
-
- rakelib/citest.rake
|
228
|
-
- rakelib/clear_metrics.rake
|
229
|
-
- rakelib/console.rake
|
230
|
-
- rakelib/default.rake
|
231
|
-
- rakelib/doc.rake
|
232
|
-
- rakelib/gem_tasks.rake
|
233
|
-
- rakelib/localtest.rake
|
234
|
-
- rakelib/overcommit.rake
|
235
|
-
- rakelib/quality.rake
|
236
|
-
- rakelib/repl.rake
|
237
|
-
- rakelib/test.rake
|
238
|
-
- rakelib/trigger_next_builds.rake
|
239
|
-
- rakelib/undercover.rake
|
240
|
-
- requirements_dev.txt
|
241
|
-
- sorbet/config
|
242
|
-
- sorbet/rbi/annotations/.gitattributes
|
243
|
-
- sorbet/rbi/annotations/activesupport.rbi
|
244
|
-
- sorbet/rbi/annotations/faraday.rbi
|
245
|
-
- sorbet/rbi/annotations/minitest.rbi
|
246
|
-
- sorbet/rbi/annotations/mocha.rbi
|
247
|
-
- sorbet/rbi/annotations/rainbow.rbi
|
248
|
-
- sorbet/rbi/annotations/webmock.rbi
|
249
|
-
- sorbet/rbi/dsl/.gitattributes
|
250
|
-
- sorbet/rbi/dsl/active_support/callbacks.rbi
|
251
|
-
- sorbet/rbi/gems/.gitattributes
|
252
|
-
- sorbet/rbi/gems/activesupport@7.1.5.rbi
|
253
|
-
- sorbet/rbi/gems/addressable@2.8.6.rbi
|
254
|
-
- sorbet/rbi/gems/ansi@1.5.0.rbi
|
255
|
-
- sorbet/rbi/gems/asana@0.10.6-ab9393136d9ca59b75e42a661fdddc1c65c8f7c3.rbi
|
256
|
-
- sorbet/rbi/gems/ast@2.4.2.rbi
|
257
|
-
- sorbet/rbi/gems/backport@1.2.0.rbi
|
258
|
-
- sorbet/rbi/gems/base64@0.2.0.rbi
|
259
|
-
- sorbet/rbi/gems/benchmark@0.4.0.rbi
|
260
|
-
- sorbet/rbi/gems/bigdecimal@3.1.5.rbi
|
261
|
-
- sorbet/rbi/gems/brakeman@6.2.2.rbi
|
262
|
-
- sorbet/rbi/gems/builder@3.2.4.rbi
|
263
|
-
- sorbet/rbi/gems/bump@0.10.0.rbi
|
264
|
-
- sorbet/rbi/gems/cache@0.4.1.rbi
|
265
|
-
- sorbet/rbi/gems/cache_method@0.2.7.rbi
|
266
|
-
- sorbet/rbi/gems/chef-utils@18.3.0.rbi
|
267
|
-
- sorbet/rbi/gems/childprocess@5.1.0.rbi
|
268
|
-
- sorbet/rbi/gems/coderay@1.1.3.rbi
|
269
|
-
- sorbet/rbi/gems/commander@4.6.0.rbi
|
270
|
-
- sorbet/rbi/gems/concurrent-ruby@1.2.3.rbi
|
271
|
-
- sorbet/rbi/gems/connection_pool@2.4.1.rbi
|
272
|
-
- sorbet/rbi/gems/crack@0.4.5.rbi
|
273
|
-
- sorbet/rbi/gems/diff-lcs@1.5.1.rbi
|
274
|
-
- sorbet/rbi/gems/docile@1.4.0.rbi
|
275
|
-
- sorbet/rbi/gems/drb@2.2.1.rbi
|
276
|
-
- sorbet/rbi/gems/e2mmap@0.1.0.rbi
|
277
|
-
- sorbet/rbi/gems/erubi@1.13.0.rbi
|
278
|
-
- sorbet/rbi/gems/faraday-em_http@1.0.0.rbi
|
279
|
-
- sorbet/rbi/gems/faraday-em_synchrony@1.0.0.rbi
|
280
|
-
- sorbet/rbi/gems/faraday-excon@1.1.0.rbi
|
281
|
-
- sorbet/rbi/gems/faraday-httpclient@1.0.1.rbi
|
282
|
-
- sorbet/rbi/gems/faraday-multipart@1.0.4.rbi
|
283
|
-
- sorbet/rbi/gems/faraday-net_http@1.0.1.rbi
|
284
|
-
- sorbet/rbi/gems/faraday-net_http_persistent@1.2.0.rbi
|
285
|
-
- sorbet/rbi/gems/faraday-patron@1.0.0.rbi
|
286
|
-
- sorbet/rbi/gems/faraday-rack@1.0.0.rbi
|
287
|
-
- sorbet/rbi/gems/faraday-retry@1.0.3.rbi
|
288
|
-
- sorbet/rbi/gems/faraday@1.10.3.rbi
|
289
|
-
- sorbet/rbi/gems/faraday_middleware-multi_json@0.0.6.rbi
|
290
|
-
- sorbet/rbi/gems/faraday_middleware@1.2.0.rbi
|
291
|
-
- sorbet/rbi/gems/gli@2.22.0.rbi
|
292
|
-
- sorbet/rbi/gems/hashdiff@1.0.1.rbi
|
293
|
-
- sorbet/rbi/gems/highline@2.0.3.rbi
|
294
|
-
- sorbet/rbi/gems/i18n@1.14.6.rbi
|
295
|
-
- sorbet/rbi/gems/imagen@0.1.8.rbi
|
296
|
-
- sorbet/rbi/gems/iniparse@1.5.0.rbi
|
297
|
-
- sorbet/rbi/gems/jaro_winkler@1.6.0.rbi
|
298
|
-
- sorbet/rbi/gems/json@2.7.1.rbi
|
299
|
-
- sorbet/rbi/gems/jwt@2.7.1.rbi
|
300
|
-
- sorbet/rbi/gems/kramdown-parser-gfm@1.1.0.rbi
|
301
|
-
- sorbet/rbi/gems/kramdown@2.4.0.rbi
|
302
|
-
- sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi
|
303
|
-
- sorbet/rbi/gems/logger@1.6.2.rbi
|
304
|
-
- sorbet/rbi/gems/mdl@0.13.0.rbi
|
305
|
-
- sorbet/rbi/gems/method_source@1.0.0.rbi
|
306
|
-
- sorbet/rbi/gems/mime-types-data@3.2023.1205.rbi
|
307
|
-
- sorbet/rbi/gems/mime-types@3.5.1.rbi
|
308
|
-
- sorbet/rbi/gems/minitest-profile@0.0.2.rbi
|
309
|
-
- sorbet/rbi/gems/minitest-reporters@1.6.1.rbi
|
310
|
-
- sorbet/rbi/gems/minitest@5.21.1.rbi
|
311
|
-
- sorbet/rbi/gems/mixlib-cli@2.1.8.rbi
|
312
|
-
- sorbet/rbi/gems/mixlib-config@3.0.27.rbi
|
313
|
-
- sorbet/rbi/gems/mixlib-shellout@3.2.7.rbi
|
314
|
-
- sorbet/rbi/gems/mocha@2.1.0.rbi
|
315
|
-
- sorbet/rbi/gems/multi_json@1.15.0.rbi
|
316
|
-
- sorbet/rbi/gems/multi_xml@0.6.0.rbi
|
317
|
-
- sorbet/rbi/gems/multipart-post@2.3.0.rbi
|
318
|
-
- sorbet/rbi/gems/mutex_m@0.3.0.rbi
|
319
|
-
- sorbet/rbi/gems/netrc@0.11.0.rbi
|
320
|
-
- sorbet/rbi/gems/nokogiri@1.17.0.rbi
|
321
|
-
- sorbet/rbi/gems/oauth2@1.4.11.rbi
|
322
|
-
- sorbet/rbi/gems/overcommit@0.64.1.rbi
|
323
|
-
- sorbet/rbi/gems/parallel@1.23.0.rbi
|
324
|
-
- sorbet/rbi/gems/parlour@5.0.0.rbi
|
325
|
-
- sorbet/rbi/gems/parser@3.2.2.4.rbi
|
326
|
-
- sorbet/rbi/gems/prism@1.2.0.rbi
|
327
|
-
- sorbet/rbi/gems/pry@0.14.2.rbi
|
328
|
-
- sorbet/rbi/gems/public_suffix@5.0.4.rbi
|
329
|
-
- sorbet/rbi/gems/punchlist@1.3.2.rbi
|
330
|
-
- sorbet/rbi/gems/racc@1.8.1.rbi
|
331
|
-
- sorbet/rbi/gems/rack@3.1.8.rbi
|
332
|
-
- sorbet/rbi/gems/rainbow@3.1.1.rbi
|
333
|
-
- sorbet/rbi/gems/rake@13.1.0.rbi
|
334
|
-
- sorbet/rbi/gems/rbi@0.2.1.rbi
|
335
|
-
- sorbet/rbi/gems/rbs@2.8.4.rbi
|
336
|
-
- sorbet/rbi/gems/regexp_parser@2.8.3.rbi
|
337
|
-
- sorbet/rbi/gems/reverse_markdown@2.1.1.rbi
|
338
|
-
- sorbet/rbi/gems/rexml@3.3.9.rbi
|
339
|
-
- sorbet/rbi/gems/rubocop-ast@1.30.0.rbi
|
340
|
-
- sorbet/rbi/gems/rubocop-minitest@0.34.5.rbi
|
341
|
-
- sorbet/rbi/gems/rubocop-performance@1.20.2.rbi
|
342
|
-
- sorbet/rbi/gems/rubocop-rake@0.6.0.rbi
|
343
|
-
- sorbet/rbi/gems/rubocop-rspec@3.0.0.rbi
|
344
|
-
- sorbet/rbi/gems/rubocop@1.59.0.rbi
|
345
|
-
- sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi
|
346
|
-
- sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi
|
347
|
-
- sorbet/rbi/gems/rugged@1.6.3.rbi
|
348
|
-
- sorbet/rbi/gems/securerandom@0.4.0.rbi
|
349
|
-
- sorbet/rbi/gems/simplecov-html@0.12.3.rbi
|
350
|
-
- sorbet/rbi/gems/simplecov-lcov@0.8.0.rbi
|
351
|
-
- sorbet/rbi/gems/simplecov@0.22.0.rbi
|
352
|
-
- sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi
|
353
|
-
- sorbet/rbi/gems/solargraph-rails@1.1.0-9dc37915bd4f3b169046e34db6fb32193ab347d8.rbi
|
354
|
-
- sorbet/rbi/gems/solargraph@0.50.1-904b9304770a59fac393c5cc3cad481e5bdf0fd8.rbi
|
355
|
-
- sorbet/rbi/gems/sord@5.1.0.rbi
|
356
|
-
- sorbet/rbi/gems/source_finder@3.2.1.rbi
|
357
|
-
- sorbet/rbi/gems/spoom@1.5.0.rbi
|
358
|
-
- sorbet/rbi/gems/tapioca@0.16.5.rbi
|
359
|
-
- sorbet/rbi/gems/thor@1.3.2.rbi
|
360
|
-
- sorbet/rbi/gems/tilt@2.4.0.rbi
|
361
|
-
- sorbet/rbi/gems/tomlrb@2.0.3.rbi
|
362
|
-
- sorbet/rbi/gems/tzinfo@2.0.6.rbi
|
363
|
-
- sorbet/rbi/gems/undercover@0.5.0.rbi
|
364
|
-
- sorbet/rbi/gems/unicode-display_width@2.5.0.rbi
|
365
|
-
- sorbet/rbi/gems/webmock@3.19.1.rbi
|
366
|
-
- sorbet/rbi/gems/yard-sorbet@0.9.0.rbi
|
367
|
-
- sorbet/rbi/gems/yard@0.9.37.rbi
|
368
|
-
- sorbet/rbi/todo.rbi
|
369
|
-
- sorbet/tapioca/config.yml
|
370
|
-
- sorbet/tapioca/require.rb
|
163
|
+
- rbi/checkoff.rbi
|
164
|
+
- sig/checkoff.rbs
|
371
165
|
homepage: https://github.com/apiology/checkoff
|
372
166
|
licenses:
|
373
167
|
- MIT license
|
data/.circleci/config.yml
DELETED
@@ -1,291 +0,0 @@
|
|
1
|
-
---
|
2
|
-
version: 2.1
|
3
|
-
|
4
|
-
commands:
|
5
|
-
run_with_languages:
|
6
|
-
description: "Run the given command in an environment that includes relevant langauges in the PATH"
|
7
|
-
parameters:
|
8
|
-
command:
|
9
|
-
type: string
|
10
|
-
description: "What command to execute"
|
11
|
-
label:
|
12
|
-
type: string
|
13
|
-
description: "What to label the run"
|
14
|
-
default: <<parameters.command>>
|
15
|
-
steps:
|
16
|
-
- run:
|
17
|
-
name: <<parameters.label>>
|
18
|
-
command: |
|
19
|
-
export PATH="${HOME}/.pyenv/bin:${PATH}"
|
20
|
-
export PATH="${HOME}/.rbenv/bin:${HOME}/.rbenv/shims:${PATH}"
|
21
|
-
export PATH="${HOME}/project/node_modules/.bin:${PATH}"
|
22
|
-
eval "$(pyenv init --path)"
|
23
|
-
eval "$(pyenv virtualenv-init -)"
|
24
|
-
eval "$(rbenv init -)"
|
25
|
-
|
26
|
-
# keep this in a single place for both main and child builds for cachability
|
27
|
-
BUNDLE_PATH="$(pwd)/vendor/bundle"
|
28
|
-
export BUNDLE_PATH
|
29
|
-
GEM_HOME="${BUNDLE_PATH}"
|
30
|
-
export GEM_HOME
|
31
|
-
|
32
|
-
<<parameters.command>>
|
33
|
-
environment:
|
34
|
-
# https://app.circleci.com/pipelines/github/apiology/cookiecutter-pypackage/4/workflows/29074dc8-944c-4600-8aaa-5116575fed90/jobs/4
|
35
|
-
"LC_ALL": "C.UTF-8"
|
36
|
-
"LANG": "C.UTF-8"
|
37
|
-
set_up_environment:
|
38
|
-
description: "Install source environment"
|
39
|
-
steps:
|
40
|
-
- checkout
|
41
|
-
- run:
|
42
|
-
name: Update timestamps to original commit time
|
43
|
-
command: |
|
44
|
-
git ls-tree -r --name-only HEAD | while read filename; do \
|
45
|
-
unixtime=$(git log -1 --format="%at" -- "${filename}")
|
46
|
-
touchtime=$(date -d @$unixtime +'%Y%m%d%H%M.%S')
|
47
|
-
touch -t ${touchtime} "${filename}"
|
48
|
-
done
|
49
|
-
- restore_cache:
|
50
|
-
keys:
|
51
|
-
- rbenv-v5-{{ checksum "Gemfile.lock" }}-
|
52
|
-
- rbenv-v5-
|
53
|
-
- restore_cache:
|
54
|
-
keys:
|
55
|
-
- pyenv-v2-{{ checksum "requirements_dev.txt" }}-
|
56
|
-
- pyenv-v2-
|
57
|
-
- pyenv-
|
58
|
-
- run:
|
59
|
-
name: Initialize packages
|
60
|
-
command: |
|
61
|
-
# measuring slows down the script - only enable when you
|
62
|
-
# want to debug where this is spending time
|
63
|
-
|
64
|
-
# export FIX_SH_TIMING_LOG=/tmp/fix_sh_timing.log
|
65
|
-
|
66
|
-
BUNDLE_PATH="$(pwd)/vendor/bundle"
|
67
|
-
export BUNDLE_PATH
|
68
|
-
GEM_HOME="${BUNDLE_PATH}"
|
69
|
-
export GEM_HOME
|
70
|
-
|
71
|
-
'./fix.sh'
|
72
|
-
- store_artifacts:
|
73
|
-
path: /tmp/fix_sh_timing.log
|
74
|
-
- run:
|
75
|
-
name: Verify Gemfile.lock
|
76
|
-
command: |
|
77
|
-
if ! git diff --exit-code Gemfile.lock
|
78
|
-
then
|
79
|
-
>&2 echo "Please resolve changes to Gemfile.lock after bundle install to avoid caching difficulties"
|
80
|
-
exit 1
|
81
|
-
fi
|
82
|
-
- save_cache:
|
83
|
-
key: pyenv-v2-{{ checksum "requirements_dev.txt" }}-{{ checksum ".python-version" }}
|
84
|
-
paths:
|
85
|
-
- "requirements_dev.txt.installed"
|
86
|
-
- "/home/circleci/.cache/pip/wheels"
|
87
|
-
- "/home/circleci/.pyenv"
|
88
|
-
- run:
|
89
|
-
name: Download new circleci tool
|
90
|
-
command: |
|
91
|
-
curl -fLSs \
|
92
|
-
https://raw.githubusercontent.com/CircleCI-Public/circleci-cli/master/install.sh | sudo bash
|
93
|
-
quality:
|
94
|
-
description: "Quality checks"
|
95
|
-
steps:
|
96
|
-
- set_up_environment
|
97
|
-
- run_with_languages:
|
98
|
-
label: Run overcommit
|
99
|
-
command: |
|
100
|
-
# Coax overcommit into working
|
101
|
-
git config --global user.email "test@test.test"
|
102
|
-
git config --global user.name "Test Test"
|
103
|
-
bundle exec overcommit --sign
|
104
|
-
bundle exec overcommit --sign pre-commit
|
105
|
-
|
106
|
-
if [ $(git rev-parse --abbrev-ref HEAD) == "main" ]
|
107
|
-
then
|
108
|
-
bundle exec overcommit --run
|
109
|
-
else
|
110
|
-
bundle exec bin/overcommit_branch
|
111
|
-
fi
|
112
|
-
- run_with_languages:
|
113
|
-
label: Run brakeman
|
114
|
-
command: |
|
115
|
-
bundle exec brakeman --no-pager --force
|
116
|
-
- run_with_languages:
|
117
|
-
label: Run Rubocop
|
118
|
-
command: |
|
119
|
-
bundle exec rubocop
|
120
|
-
- run_with_languages:
|
121
|
-
label: Ratchet rubocop quality
|
122
|
-
command: |
|
123
|
-
set -x
|
124
|
-
bundle exec rubocop --regenerate-todo --no-exclude-limit --auto-gen-only-exclude --no-auto-gen-timestamp
|
125
|
-
if [ -f .rubocop_todo.yml ]
|
126
|
-
then
|
127
|
-
git diff --exit-code .rubocop.yml
|
128
|
-
git diff --exit-code .rubocop_todo.yml
|
129
|
-
fi
|
130
|
-
update_dependencies:
|
131
|
-
description: "Update dependencies whose build may have triggered this build"
|
132
|
-
parameters:
|
133
|
-
gems:
|
134
|
-
type: string
|
135
|
-
description: "Space-separated list of gems to update"
|
136
|
-
steps:
|
137
|
-
- run_with_languages:
|
138
|
-
label: Update dependencies
|
139
|
-
command: |
|
140
|
-
set -x
|
141
|
-
for package in <<parameters.gems>>
|
142
|
-
do
|
143
|
-
REMOTE_VERSION=$(gem search "${package}" | \
|
144
|
-
grep "${package}" | cut -d\( -f2 | cut -d\) -f1)
|
145
|
-
BUNDLED_VERSION=$(bundle info "${package}" | \
|
146
|
-
head -1 | cut -d\( -f2 | cut -d\) -f1)
|
147
|
-
if [ ${REMOTE_VERSION:?} == ${BUNDLED_VERSION:?} ]
|
148
|
-
then
|
149
|
-
continue
|
150
|
-
fi
|
151
|
-
|
152
|
-
bundle update --conservative "${package}"
|
153
|
-
|
154
|
-
BUNDLED_VERSION=$(bundle info "${package}" | \
|
155
|
-
head -1 | cut -d\( -f2 | cut -d\) -f1)
|
156
|
-
|
157
|
-
if [ ${REMOTE_VERSION:?} == ${BUNDLED_VERSION:?} ]
|
158
|
-
then
|
159
|
-
continue
|
160
|
-
fi
|
161
|
-
|
162
|
-
echo "Waiting for ${package} v${REMOTE_VERSION} to be"\
|
163
|
-
"available..."
|
164
|
-
sleep 20
|
165
|
-
bundle update "${package}"
|
166
|
-
|
167
|
-
BUNDLED_VERSION=$(bundle info "${package}" | \
|
168
|
-
head -1 | cut -d\( -f2 | cut -d\) -f1)
|
169
|
-
|
170
|
-
|
171
|
-
if [ ${REMOTE_VERSION:?} != ${BUNDLED_VERSION:?} ]
|
172
|
-
then
|
173
|
-
>&2 echo "Manually upgrade to ${package}"\
|
174
|
-
"v${REMOTE_VERSION}"
|
175
|
-
exit 1
|
176
|
-
fi
|
177
|
-
done
|
178
|
-
if [ -z "$(git status --porcelain Gemfile.lock)" ]
|
179
|
-
then
|
180
|
-
echo "No updates needed"
|
181
|
-
exit 0
|
182
|
-
fi
|
183
|
-
# Push any dependency gem updates
|
184
|
-
git config user.email 'vince@broz.cc'
|
185
|
-
git config user.name 'Vince Broz'
|
186
|
-
git status
|
187
|
-
# bundle exec so that overcommit is used from Gemfile for
|
188
|
-
# git hooks
|
189
|
-
#
|
190
|
-
# https://app.circleci.com/pipelines/github/apiology/"${package}"-rails/806/workflows/40fdf1ef-fa23-421b-a0f1-641ea0ed1641/jobs/1173
|
191
|
-
#
|
192
|
-
bundle exec overcommit --sign pre-commit
|
193
|
-
bundle exec git commit -m "Bump dependency releases" Gemfile.lock || true
|
194
|
-
OVERCOMMIT_DEBUG=1 bundle exec git push --set-upstream origin "${CIRCLE_BRANCH:?}"
|
195
|
-
echo "Avoiding double build after git push"
|
196
|
-
exit 1
|
197
|
-
jobs:
|
198
|
-
quality:
|
199
|
-
working_directory: ~/checkoff
|
200
|
-
docker:
|
201
|
-
- image: cimg/base:current
|
202
|
-
steps:
|
203
|
-
- quality
|
204
|
-
build:
|
205
|
-
working_directory: ~/checkoff
|
206
|
-
docker:
|
207
|
-
- image: cimg/base:current
|
208
|
-
steps:
|
209
|
-
- set_up_environment
|
210
|
-
- when:
|
211
|
-
condition:
|
212
|
-
equal: [<< pipeline.git.branch >>, "main"]
|
213
|
-
steps:
|
214
|
-
- update_dependencies:
|
215
|
-
gems: checkoff
|
216
|
-
# - run_with_languages:
|
217
|
-
# label: Typecheck
|
218
|
-
# command: make citypecheck citypecoverage
|
219
|
-
- save_cache:
|
220
|
-
key: rbenv-v5-{{ checksum "Gemfile.lock" }}-{{ checksum ".ruby-version" }}
|
221
|
-
paths:
|
222
|
-
- "Gemfile.lock.installed"
|
223
|
-
- "types.installed"
|
224
|
-
- "vendor/bundle"
|
225
|
-
- "/home/circleci/.rbenv"
|
226
|
-
- ".yardoc"
|
227
|
-
- "/home/circleci/.cache/solargraph"
|
228
|
-
- run_with_languages:
|
229
|
-
label: Test
|
230
|
-
command: |
|
231
|
-
make citest cicoverage
|
232
|
-
# This seemed to shave 5ish% of the build time off when added
|
233
|
-
resource_class: large
|
234
|
-
publish_gem:
|
235
|
-
working_directory: ~/checkoff
|
236
|
-
docker:
|
237
|
-
- image: cimg/base:current
|
238
|
-
steps:
|
239
|
-
- set_up_environment
|
240
|
-
- run_with_languages:
|
241
|
-
label: Make RubyGems release
|
242
|
-
command: |
|
243
|
-
set -x
|
244
|
-
|
245
|
-
# Coax overcommit into working
|
246
|
-
git config --global user.email "test@test.test"
|
247
|
-
git config --global user.name "Test Test"
|
248
|
-
# bump runs 'bundle' after excluding env vars, but doesn't
|
249
|
-
# use --conservative or exclude env vars when running 'git
|
250
|
-
# commit', which might need an updated gem. This results
|
251
|
-
# in periodic unexpected failures, fixed by later caching
|
252
|
-
# :(
|
253
|
-
#
|
254
|
-
# Let's just use the system bundle path here
|
255
|
-
unset BUNDLE_PATH
|
256
|
-
bundle install
|
257
|
-
bundle exec bump --commit-message ' [skip ci]' --tag --tag-prefix=v minor
|
258
|
-
# bundle exec needed for overcommit hooks
|
259
|
-
#
|
260
|
-
# if this step fails, check that
|
261
|
-
# https://app.circleci.com/settings/project/github/apiology/checkoff/ssh
|
262
|
-
# includes a read-write 'user key':
|
263
|
-
bundle exec git push --set-upstream origin "${CIRCLE_BRANCH:?}"
|
264
|
-
git status
|
265
|
-
bundle exec rake release trigger_next_builds
|
266
|
-
|
267
|
-
workflows:
|
268
|
-
version: 2
|
269
|
-
weekly:
|
270
|
-
triggers:
|
271
|
-
- schedule:
|
272
|
-
cron: "0 0 * * 6"
|
273
|
-
filters:
|
274
|
-
branches:
|
275
|
-
only:
|
276
|
-
- main
|
277
|
-
jobs:
|
278
|
-
- build
|
279
|
-
- quality
|
280
|
-
quality:
|
281
|
-
jobs:
|
282
|
-
- quality
|
283
|
-
build:
|
284
|
-
jobs:
|
285
|
-
- build
|
286
|
-
- publish_gem:
|
287
|
-
requires:
|
288
|
-
- build
|
289
|
-
filters:
|
290
|
-
branches:
|
291
|
-
only: main
|
data/.envrc
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
# typed: true
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
require 'overcommit'
|
5
|
-
require 'overcommit/hook/pre_commit/base'
|
6
|
-
|
7
|
-
module Overcommit
|
8
|
-
module Hook
|
9
|
-
module PreCommit
|
10
|
-
# CircleCI plugin for Overcommit to validate config file (.circleci/config.yml)
|
11
|
-
class CircleCi < Base
|
12
|
-
# @return [Symbol, Array<[Symbol, String]>]
|
13
|
-
def run
|
14
|
-
result = execute(command)
|
15
|
-
return :pass if result.success?
|
16
|
-
|
17
|
-
if result.success?
|
18
|
-
:pass
|
19
|
-
else
|
20
|
-
[:fail, result.stderr]
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
@@ -1,52 +0,0 @@
|
|
1
|
-
# typed: true
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
require 'overcommit'
|
5
|
-
require 'overcommit/hook/pre_commit/base'
|
6
|
-
|
7
|
-
# Overcommit configuration
|
8
|
-
module Overcommit
|
9
|
-
module Hook
|
10
|
-
module PreCommit
|
11
|
-
# Runs `punchlist` against any modified Ruby files.
|
12
|
-
class Punchlist < Base
|
13
|
-
# @param stdout [String]
|
14
|
-
# @return [Array<Overcommit::Hook::Message>]
|
15
|
-
def parse_output(stdout)
|
16
|
-
stdout.split("\n").map do |line|
|
17
|
-
# @sg-ignore
|
18
|
-
file, line_no, _message = line.split(':', 3)
|
19
|
-
Overcommit::Hook::Message.new(:error, file, line_no.to_i, line)
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
# @return [String]
|
24
|
-
def files_glob
|
25
|
-
"{" \
|
26
|
-
"#{applicable_files.join(',')}" \
|
27
|
-
"}"
|
28
|
-
end
|
29
|
-
|
30
|
-
# @return [Symbol, Array<Overcommit::Hook::Message>]
|
31
|
-
def run
|
32
|
-
# @sg-ignore
|
33
|
-
# @type [Overcommit::Subprocess::Result]
|
34
|
-
result = execute([*command, '-g', files_glob])
|
35
|
-
|
36
|
-
warn result.stderr
|
37
|
-
|
38
|
-
# If the command exited with a non-zero status or produced any output, treat it as a failure
|
39
|
-
if result.status.nonzero? || !result.stdout.empty? || !result.stderr.empty?
|
40
|
-
# Parse the output to create Message objects
|
41
|
-
stdout = result.stdout
|
42
|
-
messages = parse_output(stdout)
|
43
|
-
|
44
|
-
return messages
|
45
|
-
end
|
46
|
-
|
47
|
-
:pass
|
48
|
-
end
|
49
|
-
end
|
50
|
-
end
|
51
|
-
end
|
52
|
-
end
|
@@ -1,77 +0,0 @@
|
|
1
|
-
# typed: false
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
require 'overcommit'
|
5
|
-
require 'overcommit/hook/pre_commit/base'
|
6
|
-
|
7
|
-
# @!override Overcommit::Hook::Base#execute
|
8
|
-
# @return [Overcommit::Subprocess::Result]
|
9
|
-
|
10
|
-
module Overcommit
|
11
|
-
module Hook
|
12
|
-
module PreCommit
|
13
|
-
# Runs `solargraph typecheck` against any modified Ruby files.
|
14
|
-
class SolargraphTypecheck < Base
|
15
|
-
# @return [Array<String>]
|
16
|
-
def run
|
17
|
-
errors = []
|
18
|
-
|
19
|
-
generate_errors_for_files(errors, *applicable_files)
|
20
|
-
|
21
|
-
# output message to stderr
|
22
|
-
errors
|
23
|
-
end
|
24
|
-
|
25
|
-
private
|
26
|
-
|
27
|
-
# @param stderr [String]
|
28
|
-
#
|
29
|
-
# @return [Array<String>]
|
30
|
-
def remove_harmless_glitches(stderr)
|
31
|
-
stderr.split("\n").reject do |line|
|
32
|
-
line.include?('[WARN]') ||
|
33
|
-
line.include?('warning: parser/current is loading') ||
|
34
|
-
line.include?('Please see https://github.com/whitequark')
|
35
|
-
end
|
36
|
-
end
|
37
|
-
|
38
|
-
# @param errors [Array<String>]
|
39
|
-
# @param file [String]
|
40
|
-
# @return [void]
|
41
|
-
def generate_errors_for_files(errors, *files)
|
42
|
-
result = execute(['bundle', 'exec', 'solargraph', 'typecheck', '--level', 'strong', *files])
|
43
|
-
return if result.success?
|
44
|
-
|
45
|
-
stderr = remove_harmless_glitches(result.stderr)
|
46
|
-
raise result.stderr unless stderr.empty?
|
47
|
-
|
48
|
-
# @type [String]
|
49
|
-
stdout = result.stdout
|
50
|
-
|
51
|
-
stdout.split("\n").each do |error|
|
52
|
-
error = parse_error(error)
|
53
|
-
errors << error unless error.nil?
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
57
|
-
# @param error [String]
|
58
|
-
# @return [Overcommit::Hook::Message, nil]
|
59
|
-
def parse_error(error)
|
60
|
-
# Parse the result for the line number
|
61
|
-
# @type [MatchData]
|
62
|
-
match = error.match(/^(.+?):(\d+)/)
|
63
|
-
return nil unless match
|
64
|
-
|
65
|
-
# @!override MatchData.captures
|
66
|
-
# @return [Array]
|
67
|
-
# @sg-ignore
|
68
|
-
file_path, lineno = match.captures
|
69
|
-
message = error.sub("#{file_path}:#{lineno} - ",
|
70
|
-
"#{file_path}:#{lineno}: ")
|
71
|
-
# Emit the errors in the specified format
|
72
|
-
Overcommit::Hook::Message.new(:error, file_path, lineno.to_i, message)
|
73
|
-
end
|
74
|
-
end
|
75
|
-
end
|
76
|
-
end
|
77
|
-
end
|