rubocop-sorbet 0.9.0 → 0.10.1
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 +4 -4
- data/.devcontainer/devcontainer.json +25 -0
- data/.github/workflows/ci.yml +6 -6
- data/.github/workflows/dependabot_automerge.yml +2 -2
- data/.github/workflows/stale.yml +1 -1
- data/.rubocop.yml +2 -2
- data/.ruby-version +1 -1
- data/CONTRIBUTING.md +29 -0
- data/Gemfile +3 -1
- data/Gemfile.lock +27 -29
- data/README.md +4 -16
- data/Rakefile +43 -5
- data/VERSION +1 -0
- data/bin/{rspec → rake} +5 -9
- data/config/default.yml +89 -64
- data/config/rbi.yml +0 -3
- data/dev.yml +1 -1
- data/lib/rubocop/cop/sorbet/block_method_definition.rb +83 -0
- data/lib/rubocop/cop/sorbet/forbid_mixes_in_class_methods.rb +49 -0
- data/lib/rubocop/cop/sorbet/select_by_is_a.rb +62 -0
- data/lib/rubocop/cop/sorbet/sigils/enforce_single_sigil.rb +1 -1
- data/lib/rubocop/cop/sorbet/sigils/valid_sigil.rb +20 -2
- data/lib/rubocop/cop/sorbet/signatures/empty_line_after_sig.rb +20 -11
- data/lib/rubocop/cop/sorbet_cops.rb +3 -0
- data/lib/rubocop/sorbet/plugin.rb +5 -3
- data/lib/rubocop/sorbet/version.rb +1 -1
- data/lib/rubocop/sorbet.rb +1 -1
- data/lib/rubocop-sorbet.rb +1 -1
- data/manual/cops.md +3 -0
- data/manual/cops_sorbet.md +108 -8
- data/rubocop-sorbet.gemspec +2 -2
- metadata +15 -10
- data/.travis.yml +0 -12
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-sorbet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ufuk Kayserilioglu
|
@@ -10,22 +10,22 @@ authors:
|
|
10
10
|
- Peter Zhu
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: lint_roller
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- - "
|
19
|
+
- - ">="
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: '
|
21
|
+
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
|
-
- - "
|
26
|
+
- - ">="
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: '
|
28
|
+
version: '0'
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: rubocop
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
@@ -46,6 +46,7 @@ executables: []
|
|
46
46
|
extensions: []
|
47
47
|
extra_rdoc_files: []
|
48
48
|
files:
|
49
|
+
- ".devcontainer/devcontainer.json"
|
49
50
|
- ".github/CODEOWNERS"
|
50
51
|
- ".github/dependabot.yml"
|
51
52
|
- ".github/release.yml"
|
@@ -57,16 +58,17 @@ files:
|
|
57
58
|
- ".rspec"
|
58
59
|
- ".rubocop.yml"
|
59
60
|
- ".ruby-version"
|
60
|
-
- ".travis.yml"
|
61
61
|
- ".yardopts"
|
62
62
|
- CODE_OF_CONDUCT.md
|
63
|
+
- CONTRIBUTING.md
|
63
64
|
- Gemfile
|
64
65
|
- Gemfile.lock
|
65
66
|
- LICENSE.txt
|
66
67
|
- README.md
|
67
68
|
- Rakefile
|
69
|
+
- VERSION
|
68
70
|
- bin/console
|
69
|
-
- bin/
|
71
|
+
- bin/rake
|
70
72
|
- bin/rubocop
|
71
73
|
- bin/setup
|
72
74
|
- config/default.yml
|
@@ -75,10 +77,12 @@ files:
|
|
75
77
|
- dev.yml
|
76
78
|
- lib/rubocop-sorbet.rb
|
77
79
|
- lib/rubocop/cop/sorbet/binding_constant_without_type_alias.rb
|
80
|
+
- lib/rubocop/cop/sorbet/block_method_definition.rb
|
78
81
|
- lib/rubocop/cop/sorbet/buggy_obsolete_strict_memoization.rb
|
79
82
|
- lib/rubocop/cop/sorbet/callback_conditionals_binding.rb
|
80
83
|
- lib/rubocop/cop/sorbet/constants_from_strings.rb
|
81
84
|
- lib/rubocop/cop/sorbet/forbid_include_const_literal.rb
|
85
|
+
- lib/rubocop/cop/sorbet/forbid_mixes_in_class_methods.rb
|
82
86
|
- lib/rubocop/cop/sorbet/forbid_superclass_const_literal.rb
|
83
87
|
- lib/rubocop/cop/sorbet/forbid_t_enum.rb
|
84
88
|
- lib/rubocop/cop/sorbet/forbid_t_struct.rb
|
@@ -99,6 +103,7 @@ files:
|
|
99
103
|
- lib/rubocop/cop/sorbet/rbi_versioning/valid_gem_version_annotations.rb
|
100
104
|
- lib/rubocop/cop/sorbet/redundant_extend_t_sig.rb
|
101
105
|
- lib/rubocop/cop/sorbet/refinement.rb
|
106
|
+
- lib/rubocop/cop/sorbet/select_by_is_a.rb
|
102
107
|
- lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb
|
103
108
|
- lib/rubocop/cop/sorbet/sigils/enforce_single_sigil.rb
|
104
109
|
- lib/rubocop/cop/sorbet/sigils/false_sigil.rb
|
@@ -147,14 +152,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
147
152
|
requirements:
|
148
153
|
- - ">="
|
149
154
|
- !ruby/object:Gem::Version
|
150
|
-
version: '3.
|
155
|
+
version: '3.1'
|
151
156
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
152
157
|
requirements:
|
153
158
|
- - ">="
|
154
159
|
- !ruby/object:Gem::Version
|
155
160
|
version: '0'
|
156
161
|
requirements: []
|
157
|
-
rubygems_version: 3.6.
|
162
|
+
rubygems_version: 3.6.9
|
158
163
|
specification_version: 4
|
159
164
|
summary: Automatic Sorbet code style checking tool.
|
160
165
|
test_files: []
|