rubocop-sorbet 0.3.7 → 0.6.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 +27 -42
- data/README.md +64 -6
- data/Rakefile +34 -5
- data/config/default.yml +143 -2
- data/lib/rubocop-sorbet.rb +9 -1
- data/lib/rubocop/cop/sorbet/binding_constants_without_type_alias.rb +24 -1
- data/lib/rubocop/cop/sorbet/forbid_extend_t_sig_helpers_in_shims.rb +53 -0
- data/lib/rubocop/cop/sorbet/forbid_include_const_literal.rb +0 -40
- data/lib/rubocop/cop/sorbet/forbid_superclass_const_literal.rb +0 -17
- data/lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb +58 -0
- data/lib/rubocop/cop/sorbet/one_ancestor_per_line.rb +75 -0
- data/lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb +11 -1
- data/lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb +19 -10
- data/lib/rubocop/cop/sorbet/signatures/parameters_ordering_in_signature.rb +14 -6
- data/lib/rubocop/cop/sorbet/signatures/signature_build_order.rb +22 -3
- data/lib/rubocop/cop/sorbet/single_line_rbi_class_module_definitions.rb +46 -0
- data/lib/rubocop/cop/sorbet_cops.rb +25 -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 +32 -0
- data/manual/cops_sorbet.md +424 -0
- data/rubocop-sorbet.gemspec +18 -18
- data/service.yml +1 -1
- data/tasks/cops_documentation.rake +317 -0
- metadata +26 -12
- data/lib/rubocop_sorbet.rb +0 -22
data/lib/rubocop_sorbet.rb
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative 'rubocop/cop/sorbet/binding_constants_without_type_alias'
|
4
|
-
require_relative 'rubocop/cop/sorbet/constants_from_strings'
|
5
|
-
require_relative 'rubocop/cop/sorbet/forbid_superclass_const_literal'
|
6
|
-
require_relative 'rubocop/cop/sorbet/forbid_include_const_literal'
|
7
|
-
|
8
|
-
require_relative 'rubocop/cop/sorbet/signatures/allow_incompatible_override'
|
9
|
-
require_relative 'rubocop/cop/sorbet/signatures/checked_true_in_signature'
|
10
|
-
require_relative 'rubocop/cop/sorbet/signatures/keyword_argument_ordering'
|
11
|
-
require_relative 'rubocop/cop/sorbet/signatures/parameters_ordering_in_signature'
|
12
|
-
require_relative 'rubocop/cop/sorbet/signatures/signature_build_order'
|
13
|
-
require_relative 'rubocop/cop/sorbet/signatures/enforce_signatures'
|
14
|
-
|
15
|
-
require_relative 'rubocop/cop/sorbet/sigils/valid_sigil'
|
16
|
-
require_relative 'rubocop/cop/sorbet/sigils/has_sigil'
|
17
|
-
require_relative 'rubocop/cop/sorbet/sigils/ignore_sigil'
|
18
|
-
require_relative 'rubocop/cop/sorbet/sigils/false_sigil'
|
19
|
-
require_relative 'rubocop/cop/sorbet/sigils/true_sigil'
|
20
|
-
require_relative 'rubocop/cop/sorbet/sigils/strict_sigil'
|
21
|
-
require_relative 'rubocop/cop/sorbet/sigils/strong_sigil'
|
22
|
-
require_relative 'rubocop/cop/sorbet/sigils/enforce_sigil_order'
|