rubocop-sorbet 0.3.3 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/CODEOWNERS +2 -0
- data/.github/probots.yml +1 -1
- data/.github/stale.yml +20 -0
- data/.gitignore +0 -2
- data/.rspec +3 -0
- data/.rubocop.yml +2 -12
- data/.travis.yml +3 -1
- data/Gemfile +6 -7
- data/Gemfile.lock +26 -41
- data/README.md +64 -6
- data/Rakefile +34 -5
- data/config/default.yml +124 -1
- data/lib/rubocop-sorbet.rb +9 -1
- data/lib/rubocop/cop/sorbet/binding_constants_without_type_alias.rb +21 -2
- data/lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb +58 -0
- data/lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb +105 -0
- data/lib/rubocop/cop/sorbet/sigils/valid_sigil.rb +29 -4
- data/lib/rubocop/cop/sorbet/{allow_incompatible_override.rb → signatures/allow_incompatible_override.rb} +0 -0
- data/lib/rubocop/cop/sorbet/{checked_true_in_signature.rb → signatures/checked_true_in_signature.rb} +3 -8
- data/lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb +135 -0
- data/lib/rubocop/cop/sorbet/{keyword_argument_ordering.rb → signatures/keyword_argument_ordering.rb} +4 -9
- data/lib/rubocop/cop/sorbet/{parameters_ordering_in_signature.rb → signatures/parameters_ordering_in_signature.rb} +17 -14
- data/lib/rubocop/cop/sorbet/{signature_build_order.rb → signatures/signature_build_order.rb} +6 -12
- data/lib/rubocop/cop/sorbet/signatures/signature_cop.rb +28 -0
- data/lib/rubocop/cop/sorbet_cops.rb +22 -0
- data/lib/rubocop/sorbet.rb +15 -0
- data/lib/rubocop/sorbet/inject.rb +20 -0
- data/lib/rubocop/sorbet/version.rb +6 -0
- data/manual/cops.md +29 -0
- data/manual/cops_sorbet.md +340 -0
- data/rubocop-sorbet.gemspec +18 -18
- data/tasks/cops_documentation.rake +317 -0
- metadata +31 -17
- data/lib/rubocop_sorbet.rb +0 -19
data/lib/rubocop_sorbet.rb
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative 'rubocop/cop/sorbet/allow_incompatible_override'
|
4
|
-
require_relative 'rubocop/cop/sorbet/binding_constants_without_type_alias'
|
5
|
-
require_relative 'rubocop/cop/sorbet/checked_true_in_signature'
|
6
|
-
require_relative 'rubocop/cop/sorbet/constants_from_strings'
|
7
|
-
require_relative 'rubocop/cop/sorbet/signature_build_order'
|
8
|
-
require_relative 'rubocop/cop/sorbet/forbid_superclass_const_literal'
|
9
|
-
require_relative 'rubocop/cop/sorbet/forbid_include_const_literal'
|
10
|
-
require_relative 'rubocop/cop/sorbet/parameters_ordering_in_signature'
|
11
|
-
require_relative 'rubocop/cop/sorbet/keyword_argument_ordering'
|
12
|
-
|
13
|
-
require_relative 'rubocop/cop/sorbet/sigils/valid_sigil'
|
14
|
-
require_relative 'rubocop/cop/sorbet/sigils/has_sigil'
|
15
|
-
require_relative 'rubocop/cop/sorbet/sigils/ignore_sigil'
|
16
|
-
require_relative 'rubocop/cop/sorbet/sigils/false_sigil'
|
17
|
-
require_relative 'rubocop/cop/sorbet/sigils/true_sigil'
|
18
|
-
require_relative 'rubocop/cop/sorbet/sigils/strict_sigil'
|
19
|
-
require_relative 'rubocop/cop/sorbet/sigils/strong_sigil'
|