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.
Files changed (35) 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 +26 -41
  11. data/README.md +64 -6
  12. data/Rakefile +34 -5
  13. data/config/default.yml +124 -1
  14. data/lib/rubocop-sorbet.rb +9 -1
  15. data/lib/rubocop/cop/sorbet/binding_constants_without_type_alias.rb +21 -2
  16. data/lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb +58 -0
  17. data/lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb +105 -0
  18. data/lib/rubocop/cop/sorbet/sigils/valid_sigil.rb +29 -4
  19. data/lib/rubocop/cop/sorbet/{allow_incompatible_override.rb → signatures/allow_incompatible_override.rb} +0 -0
  20. data/lib/rubocop/cop/sorbet/{checked_true_in_signature.rb → signatures/checked_true_in_signature.rb} +3 -8
  21. data/lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb +135 -0
  22. data/lib/rubocop/cop/sorbet/{keyword_argument_ordering.rb → signatures/keyword_argument_ordering.rb} +4 -9
  23. data/lib/rubocop/cop/sorbet/{parameters_ordering_in_signature.rb → signatures/parameters_ordering_in_signature.rb} +17 -14
  24. data/lib/rubocop/cop/sorbet/{signature_build_order.rb → signatures/signature_build_order.rb} +6 -12
  25. data/lib/rubocop/cop/sorbet/signatures/signature_cop.rb +28 -0
  26. data/lib/rubocop/cop/sorbet_cops.rb +22 -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 +29 -0
  31. data/manual/cops_sorbet.md +340 -0
  32. data/rubocop-sorbet.gemspec +18 -18
  33. data/tasks/cops_documentation.rake +317 -0
  34. metadata +31 -17
  35. data/lib/rubocop_sorbet.rb +0 -19
@@ -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'