danger-packwerk 0.14.0 → 0.14.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. checksums.yaml +4 -4
  2. data/lib/danger-packwerk/danger_package_todo_yml_changes.rb +21 -118
  3. data/lib/danger-packwerk/danger_packwerk.rb +12 -7
  4. data/lib/danger-packwerk/private/git.rb +65 -0
  5. data/lib/danger-packwerk/private/todo_yml_changes.rb +135 -0
  6. data/lib/danger-packwerk/private.rb +1 -0
  7. data/lib/danger-packwerk/version.rb +1 -1
  8. metadata +4 -88
  9. data/sorbet/config +0 -4
  10. data/sorbet/rbi/gems/actionview@7.0.4.rbi +0 -11543
  11. data/sorbet/rbi/gems/activesupport@7.0.4.rbi +0 -12959
  12. data/sorbet/rbi/gems/addressable@2.8.1.rbi +0 -1505
  13. data/sorbet/rbi/gems/ast@2.4.2.rbi +0 -522
  14. data/sorbet/rbi/gems/better_html@2.0.1.rbi +0 -286
  15. data/sorbet/rbi/gems/builder@3.2.4.rbi +0 -8
  16. data/sorbet/rbi/gems/claide-plugins@0.9.2.rbi +0 -791
  17. data/sorbet/rbi/gems/claide@1.1.0.rbi +0 -1132
  18. data/sorbet/rbi/gems/code_ownership@1.29.2.rbi +0 -525
  19. data/sorbet/rbi/gems/code_teams@1.0.0.rbi +0 -120
  20. data/sorbet/rbi/gems/coderay@1.1.3.rbi +0 -2256
  21. data/sorbet/rbi/gems/colored2@3.1.2.rbi +0 -130
  22. data/sorbet/rbi/gems/concurrent-ruby@1.1.10.rbi +0 -8695
  23. data/sorbet/rbi/gems/constant_resolver@0.2.0.rbi +0 -30
  24. data/sorbet/rbi/gems/cork@0.3.0.rbi +0 -248
  25. data/sorbet/rbi/gems/crass@1.0.6.rbi +0 -436
  26. data/sorbet/rbi/gems/danger-plugin-api@1.0.0.rbi +0 -8
  27. data/sorbet/rbi/gems/danger@9.0.0.rbi +0 -4722
  28. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +0 -862
  29. data/sorbet/rbi/gems/erubi@1.11.0.rbi +0 -102
  30. data/sorbet/rbi/gems/faraday-em_http@1.0.0.rbi +0 -266
  31. data/sorbet/rbi/gems/faraday-em_synchrony@1.0.0.rbi +0 -209
  32. data/sorbet/rbi/gems/faraday-excon@1.1.0.rbi +0 -212
  33. data/sorbet/rbi/gems/faraday-http-cache@2.4.1.rbi +0 -805
  34. data/sorbet/rbi/gems/faraday-httpclient@1.0.1.rbi +0 -221
  35. data/sorbet/rbi/gems/faraday-multipart@1.0.4.rbi +0 -266
  36. data/sorbet/rbi/gems/faraday-net_http@1.0.1.rbi +0 -216
  37. data/sorbet/rbi/gems/faraday-net_http_persistent@1.2.0.rbi +0 -206
  38. data/sorbet/rbi/gems/faraday-patron@1.0.0.rbi +0 -212
  39. data/sorbet/rbi/gems/faraday-rack@1.0.0.rbi +0 -225
  40. data/sorbet/rbi/gems/faraday-retry@1.0.3.rbi +0 -222
  41. data/sorbet/rbi/gems/faraday@1.10.2.rbi +0 -1862
  42. data/sorbet/rbi/gems/git@1.12.0.rbi +0 -1936
  43. data/sorbet/rbi/gems/i18n@1.12.0.rbi +0 -1643
  44. data/sorbet/rbi/gems/kramdown-parser-gfm@1.1.0.rbi +0 -8
  45. data/sorbet/rbi/gems/kramdown@2.4.0.rbi +0 -2168
  46. data/sorbet/rbi/gems/loofah@2.19.0.rbi +0 -646
  47. data/sorbet/rbi/gems/method_source@1.0.0.rbi +0 -199
  48. data/sorbet/rbi/gems/minitest@5.16.3.rbi +0 -997
  49. data/sorbet/rbi/gems/multipart-post@2.2.3.rbi +0 -165
  50. data/sorbet/rbi/gems/nap@1.1.0.rbi +0 -351
  51. data/sorbet/rbi/gems/no_proxy_fix@0.1.2.rbi +0 -8
  52. data/sorbet/rbi/gems/nokogiri@1.13.8.rbi +0 -4916
  53. data/sorbet/rbi/gems/octokit@5.6.1.rbi +0 -8939
  54. data/sorbet/rbi/gems/open4@1.3.4.rbi +0 -8
  55. data/sorbet/rbi/gems/packs@0.0.5.rbi +0 -111
  56. data/sorbet/rbi/gems/packwerk@2.2.1-e998ef65194de398f0baaf03a0ba33390b30351e.rbi +0 -2161
  57. data/sorbet/rbi/gems/parallel@1.22.1.rbi +0 -163
  58. data/sorbet/rbi/gems/parse_packwerk@0.18.0.rbi +0 -225
  59. data/sorbet/rbi/gems/parser@3.1.2.1.rbi +0 -5988
  60. data/sorbet/rbi/gems/pry@0.14.1.rbi +0 -6969
  61. data/sorbet/rbi/gems/public_suffix@5.0.0.rbi +0 -779
  62. data/sorbet/rbi/gems/racc@1.6.0.rbi +0 -92
  63. data/sorbet/rbi/gems/rails-dom-testing@2.0.3.rbi +0 -8
  64. data/sorbet/rbi/gems/rails-html-sanitizer@1.4.3.rbi +0 -493
  65. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +0 -227
  66. data/sorbet/rbi/gems/rake@13.0.6.rbi +0 -1865
  67. data/sorbet/rbi/gems/rbi@0.0.14.rbi +0 -2337
  68. data/sorbet/rbi/gems/rchardet@1.8.0.rbi +0 -587
  69. data/sorbet/rbi/gems/regexp_parser@2.5.0.rbi +0 -1851
  70. data/sorbet/rbi/gems/rexml@3.2.5.rbi +0 -3852
  71. data/sorbet/rbi/gems/rspec-core@3.11.0.rbi +0 -7725
  72. data/sorbet/rbi/gems/rspec-expectations@3.11.0.rbi +0 -6201
  73. data/sorbet/rbi/gems/rspec-mocks@3.11.1.rbi +0 -3625
  74. data/sorbet/rbi/gems/rspec-support@3.11.0.rbi +0 -1176
  75. data/sorbet/rbi/gems/rspec@3.11.0.rbi +0 -40
  76. data/sorbet/rbi/gems/rubocop-ast@1.21.0.rbi +0 -4193
  77. data/sorbet/rbi/gems/rubocop-sorbet@0.6.8.rbi +0 -677
  78. data/sorbet/rbi/gems/rubocop@1.36.0.rbi +0 -37914
  79. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +0 -732
  80. data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +0 -8
  81. data/sorbet/rbi/gems/sawyer@0.9.2.rbi +0 -513
  82. data/sorbet/rbi/gems/smart_properties@1.17.0.rbi +0 -326
  83. data/sorbet/rbi/gems/spoom@1.1.11.rbi +0 -1600
  84. data/sorbet/rbi/gems/tapioca@0.8.0.rbi +0 -1959
  85. data/sorbet/rbi/gems/terminal-table@3.0.2.rbi +0 -438
  86. data/sorbet/rbi/gems/thor@1.2.1.rbi +0 -2921
  87. data/sorbet/rbi/gems/tzinfo@2.0.5.rbi +0 -4879
  88. data/sorbet/rbi/gems/unicode-display_width@2.3.0.rbi +0 -27
  89. data/sorbet/rbi/gems/unparser@0.6.5.rbi +0 -2789
  90. data/sorbet/rbi/gems/webrick@1.7.0.rbi +0 -1802
  91. data/sorbet/rbi/gems/yard-sorbet@0.6.1.rbi +0 -288
  92. data/sorbet/rbi/gems/yard@0.9.27.rbi +0 -12668
  93. data/sorbet/rbi/todo.rbi +0 -125
  94. data/sorbet/tapioca/require.rb +0 -4
@@ -1,199 +0,0 @@
1
- # typed: true
2
-
3
- # DO NOT EDIT MANUALLY
4
- # This is an autogenerated file for types exported from the `method_source` gem.
5
- # Please instead update this file by running `bin/tapioca gem method_source`.
6
-
7
- module MethodSource
8
- extend ::MethodSource::CodeHelpers
9
-
10
- class << self
11
- # Helper method responsible for opening source file and buffering up
12
- # the comments for a specified method. Defined here to avoid polluting
13
- # `Method` class.
14
- #
15
- # @param source_location [Array] The array returned by Method#source_location
16
- # @param method_name [String]
17
- # @raise [SourceNotFoundError]
18
- # @return [String] The comments up to the point of the method.
19
- def comment_helper(source_location, name = T.unsafe(nil)); end
20
-
21
- # @deprecated — use MethodSource::CodeHelpers#expression_at
22
- def extract_code(source_location); end
23
-
24
- # Load a memoized copy of the lines in a file.
25
- #
26
- # @param file_name [String]
27
- # @param method_name [String]
28
- # @raise [SourceNotFoundError]
29
- # @return [Array<String>] the contents of the file
30
- def lines_for(file_name, name = T.unsafe(nil)); end
31
-
32
- # Helper method responsible for extracting method body.
33
- # Defined here to avoid polluting `Method` class.
34
- #
35
- # @param source_location [Array] The array returned by Method#source_location
36
- # @param method_name [String]
37
- # @return [String] The method body
38
- def source_helper(source_location, name = T.unsafe(nil)); end
39
-
40
- # @deprecated — use MethodSource::CodeHelpers#complete_expression?
41
- # @return [Boolean]
42
- def valid_expression?(str); end
43
- end
44
- end
45
-
46
- module MethodSource::CodeHelpers
47
- # Retrieve the comment describing the expression on the given line of the given file.
48
- #
49
- # This is useful to get module or method documentation.
50
- #
51
- # @param file [Array<String>, File, String] The file to parse, either as a File or as
52
- # a String or an Array of lines.
53
- # @param line_number [Integer] The line number at which to look.
54
- # NOTE: The first line in a file is line 1!
55
- # @return [String] The comment
56
- def comment_describing(file, line_number); end
57
-
58
- # Determine if a string of code is a complete Ruby expression.
59
- #
60
- # @example
61
- # complete_expression?("class Hello") #=> false
62
- # complete_expression?("class Hello; end") #=> true
63
- # complete_expression?("class 123") #=> SyntaxError: unexpected tINTEGER
64
- # @param code [String] The code to validate.
65
- # @raise [SyntaxError] Any SyntaxError that does not represent incompleteness.
66
- # @return [Boolean] Whether or not the code is a complete Ruby expression.
67
- def complete_expression?(str); end
68
-
69
- # Retrieve the first expression starting on the given line of the given file.
70
- #
71
- # This is useful to get module or method source code.
72
- #
73
- # line 1!
74
- #
75
- # @option options
76
- # @option options
77
- # @param file [Array<String>, File, String] The file to parse, either as a File or as
78
- # @param line_number [Integer] The line number at which to look.
79
- # NOTE: The first line in a file is
80
- # @param options [Hash] The optional configuration parameters.
81
- # @raise [SyntaxError] If the first complete expression can't be identified
82
- # @return [String] The first complete expression
83
- def expression_at(file, line_number, options = T.unsafe(nil)); end
84
-
85
- private
86
-
87
- # Get the first expression from the input.
88
- #
89
- # @param lines [Array<String>]
90
- # @param consume [Integer] A number of lines to automatically
91
- # consume (add to the expression buffer) without checking for validity.
92
- # @raise [SyntaxError]
93
- # @return [String] a valid ruby expression
94
- # @yield a clean-up function to run before checking for complete_expression
95
- def extract_first_expression(lines, consume = T.unsafe(nil), &block); end
96
-
97
- # Get the last comment from the input.
98
- #
99
- # @param lines [Array<String>]
100
- # @return [String]
101
- def extract_last_comment(lines); end
102
- end
103
-
104
- # An exception matcher that matches only subsets of SyntaxErrors that can be
105
- # fixed by adding more input to the buffer.
106
- module MethodSource::CodeHelpers::IncompleteExpression
107
- class << self
108
- def ===(ex); end
109
-
110
- # @return [Boolean]
111
- def rbx?; end
112
- end
113
- end
114
-
115
- MethodSource::CodeHelpers::IncompleteExpression::GENERIC_REGEXPS = T.let(T.unsafe(nil), Array)
116
- MethodSource::CodeHelpers::IncompleteExpression::RBX_ONLY_REGEXPS = T.let(T.unsafe(nil), Array)
117
-
118
- # This module is to be included by `Method` and `UnboundMethod` and
119
- # provides the `#source` functionality
120
- module MethodSource::MethodExtensions
121
- # Return the comments associated with the method as a string.
122
- #
123
- # @example
124
- # Set.instance_method(:clear).comment.display
125
- # =>
126
- # # Removes all elements and returns self.
127
- # @raise SourceNotFoundException
128
- # @return [String] The method's comments as a string
129
- def comment; end
130
-
131
- # Return the sourcecode for the method as a string
132
- #
133
- # @example
134
- # Set.instance_method(:clear).source.display
135
- # =>
136
- # def clear
137
- # @hash.clear
138
- # self
139
- # end
140
- # @raise SourceNotFoundException
141
- # @return [String] The method sourcecode as a string
142
- def source; end
143
-
144
- class << self
145
- # We use the included hook to patch Method#source on rubinius.
146
- # We need to use the included hook as Rubinius defines a `source`
147
- # on Method so including a module will have no effect (as it's
148
- # higher up the MRO).
149
- #
150
- # @param klass [Class] The class that includes the module.
151
- def included(klass); end
152
- end
153
- end
154
-
155
- module MethodSource::ReeSourceLocation
156
- # Ruby enterprise edition provides all the information that's
157
- # needed, in a slightly different way.
158
- def source_location; end
159
- end
160
-
161
- module MethodSource::SourceLocation; end
162
-
163
- module MethodSource::SourceLocation::MethodExtensions
164
- # Return the source location of a method for Ruby 1.8.
165
- #
166
- # @return [Array] A two element array. First element is the
167
- # file, second element is the line in the file where the
168
- # method definition is found.
169
- def source_location; end
170
-
171
- private
172
-
173
- def trace_func(event, file, line, id, binding, classname); end
174
- end
175
-
176
- module MethodSource::SourceLocation::ProcExtensions
177
- # Return the source location for a Proc (in implementations
178
- # without Proc#source_location)
179
- #
180
- # @return [Array] A two element array. First element is the
181
- # file, second element is the line in the file where the
182
- # proc definition is found.
183
- def source_location; end
184
- end
185
-
186
- module MethodSource::SourceLocation::UnboundMethodExtensions
187
- # Return the source location of an instance method for Ruby 1.8.
188
- #
189
- # @return [Array] A two element array. First element is the
190
- # file, second element is the line in the file where the
191
- # method definition is found.
192
- def source_location; end
193
- end
194
-
195
- # An Exception to mark errors that were raised trying to find the source from
196
- # a given source_location.
197
- class MethodSource::SourceNotFoundError < ::StandardError; end
198
-
199
- MethodSource::VERSION = T.let(T.unsafe(nil), String)