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.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/.github/CODEOWNERS +2 -0
  3. data/.github/probots.yml +1 -1
  4. data/.github/stale.yml +20 -0
  5. data/.gitignore +0 -2
  6. data/.rspec +3 -0
  7. data/.rubocop.yml +2 -12
  8. data/.travis.yml +3 -1
  9. data/Gemfile +6 -7
  10. data/Gemfile.lock +27 -42
  11. data/README.md +64 -6
  12. data/Rakefile +34 -5
  13. data/config/default.yml +143 -2
  14. data/lib/rubocop-sorbet.rb +9 -1
  15. data/lib/rubocop/cop/sorbet/binding_constants_without_type_alias.rb +24 -1
  16. data/lib/rubocop/cop/sorbet/forbid_extend_t_sig_helpers_in_shims.rb +53 -0
  17. data/lib/rubocop/cop/sorbet/forbid_include_const_literal.rb +0 -40
  18. data/lib/rubocop/cop/sorbet/forbid_superclass_const_literal.rb +0 -17
  19. data/lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb +58 -0
  20. data/lib/rubocop/cop/sorbet/one_ancestor_per_line.rb +75 -0
  21. data/lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb +11 -1
  22. data/lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb +19 -10
  23. data/lib/rubocop/cop/sorbet/signatures/parameters_ordering_in_signature.rb +14 -6
  24. data/lib/rubocop/cop/sorbet/signatures/signature_build_order.rb +22 -3
  25. data/lib/rubocop/cop/sorbet/single_line_rbi_class_module_definitions.rb +46 -0
  26. data/lib/rubocop/cop/sorbet_cops.rb +25 -0
  27. data/lib/rubocop/sorbet.rb +15 -0
  28. data/lib/rubocop/sorbet/inject.rb +20 -0
  29. data/lib/rubocop/sorbet/version.rb +6 -0
  30. data/manual/cops.md +32 -0
  31. data/manual/cops_sorbet.md +424 -0
  32. data/rubocop-sorbet.gemspec +18 -18
  33. data/service.yml +1 -1
  34. data/tasks/cops_documentation.rake +317 -0
  35. metadata +26 -12
  36. data/lib/rubocop_sorbet.rb +0 -22
@@ -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'