danger-packwerk 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/lib/danger-packwerk/check/default_formatter.rb +110 -0
  4. data/lib/danger-packwerk/check/offenses_formatter.rb +23 -0
  5. data/lib/danger-packwerk/danger_deprecated_references_yml_changes.rb +7 -5
  6. data/lib/danger-packwerk/danger_packwerk.rb +7 -5
  7. data/lib/danger-packwerk/packwerk_wrapper.rb +2 -2
  8. data/lib/danger-packwerk/private/ownership_information.rb +60 -0
  9. data/lib/danger-packwerk/private.rb +1 -1
  10. data/lib/danger-packwerk/update/default_formatter.rb +67 -0
  11. data/lib/danger-packwerk/update/offenses_formatter.rb +23 -0
  12. data/lib/danger-packwerk/version.rb +1 -1
  13. data/lib/danger-packwerk.rb +4 -0
  14. data/sorbet/config +1 -0
  15. data/sorbet/rbi/gems/actionview@7.0.4.rbi +11543 -0
  16. data/sorbet/rbi/gems/activesupport@7.0.4.rbi +12959 -0
  17. data/sorbet/rbi/gems/addressable@2.8.1.rbi +1505 -0
  18. data/sorbet/rbi/gems/ast@2.4.2.rbi +522 -0
  19. data/sorbet/rbi/gems/better_html@2.0.1.rbi +286 -0
  20. data/sorbet/rbi/gems/builder@3.2.4.rbi +8 -0
  21. data/sorbet/rbi/gems/claide-plugins@0.9.2.rbi +791 -0
  22. data/sorbet/rbi/gems/claide@1.1.0.rbi +1132 -0
  23. data/sorbet/rbi/gems/code_ownership@1.29.1.rbi +336 -0
  24. data/sorbet/rbi/gems/code_teams@1.0.0.rbi +120 -0
  25. data/sorbet/rbi/gems/coderay@1.1.3.rbi +2256 -0
  26. data/sorbet/rbi/gems/colored2@3.1.2.rbi +130 -0
  27. data/sorbet/rbi/gems/concurrent-ruby@1.1.10.rbi +8695 -0
  28. data/sorbet/rbi/gems/cork@0.3.0.rbi +248 -0
  29. data/sorbet/rbi/gems/crass@1.0.6.rbi +436 -0
  30. data/sorbet/rbi/gems/danger-plugin-api@1.0.0.rbi +8 -0
  31. data/sorbet/rbi/gems/danger@9.0.0.rbi +4722 -0
  32. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +862 -0
  33. data/sorbet/rbi/gems/erubi@1.11.0.rbi +102 -0
  34. data/sorbet/rbi/gems/faraday-em_http@1.0.0.rbi +266 -0
  35. data/sorbet/rbi/gems/faraday-em_synchrony@1.0.0.rbi +209 -0
  36. data/sorbet/rbi/gems/faraday-excon@1.1.0.rbi +212 -0
  37. data/sorbet/rbi/gems/faraday-http-cache@2.4.1.rbi +805 -0
  38. data/sorbet/rbi/gems/faraday-httpclient@1.0.1.rbi +221 -0
  39. data/sorbet/rbi/gems/faraday-multipart@1.0.4.rbi +266 -0
  40. data/sorbet/rbi/gems/faraday-net_http@1.0.1.rbi +216 -0
  41. data/sorbet/rbi/gems/faraday-net_http_persistent@1.2.0.rbi +206 -0
  42. data/sorbet/rbi/gems/faraday-patron@1.0.0.rbi +212 -0
  43. data/sorbet/rbi/gems/faraday-rack@1.0.0.rbi +225 -0
  44. data/sorbet/rbi/gems/faraday-retry@1.0.3.rbi +222 -0
  45. data/sorbet/rbi/gems/faraday@1.10.2.rbi +1862 -0
  46. data/sorbet/rbi/gems/git@1.12.0.rbi +1936 -0
  47. data/sorbet/rbi/gems/i18n@1.12.0.rbi +1643 -0
  48. data/sorbet/rbi/gems/kramdown-parser-gfm@1.1.0.rbi +8 -0
  49. data/sorbet/rbi/gems/kramdown@2.4.0.rbi +2168 -0
  50. data/sorbet/rbi/gems/loofah@2.19.0.rbi +646 -0
  51. data/sorbet/rbi/gems/method_source@1.0.0.rbi +199 -0
  52. data/sorbet/rbi/gems/minitest@5.16.3.rbi +997 -0
  53. data/sorbet/rbi/gems/multipart-post@2.2.3.rbi +165 -0
  54. data/sorbet/rbi/gems/nap@1.1.0.rbi +351 -0
  55. data/sorbet/rbi/gems/no_proxy_fix@0.1.2.rbi +8 -0
  56. data/sorbet/rbi/gems/nokogiri@1.13.8.rbi +4916 -0
  57. data/sorbet/rbi/gems/octokit@5.6.1.rbi +8939 -0
  58. data/sorbet/rbi/gems/open4@1.3.4.rbi +8 -0
  59. data/sorbet/rbi/gems/{packwerk@2.1.1.rbi → packwerk@2.2.1.rbi} +602 -51
  60. data/sorbet/rbi/gems/parallel@1.22.1.rbi +163 -0
  61. data/sorbet/rbi/gems/parser@3.1.2.1.rbi +5988 -0
  62. data/sorbet/rbi/gems/pry@0.14.1.rbi +6969 -0
  63. data/sorbet/rbi/gems/public_suffix@5.0.0.rbi +779 -0
  64. data/sorbet/rbi/gems/racc@1.6.0.rbi +92 -0
  65. data/sorbet/rbi/gems/rails-dom-testing@2.0.3.rbi +8 -0
  66. data/sorbet/rbi/gems/rails-html-sanitizer@1.4.3.rbi +493 -0
  67. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +227 -0
  68. data/sorbet/rbi/gems/rake@13.0.6.rbi +1865 -0
  69. data/sorbet/rbi/gems/rbi@0.0.14.rbi +2337 -0
  70. data/sorbet/rbi/gems/rchardet@1.8.0.rbi +587 -0
  71. data/sorbet/rbi/gems/regexp_parser@2.5.0.rbi +1851 -0
  72. data/sorbet/rbi/gems/rexml@3.2.5.rbi +3852 -0
  73. data/sorbet/rbi/gems/rspec-core@3.11.0.rbi +7725 -0
  74. data/sorbet/rbi/gems/rspec-expectations@3.11.0.rbi +6201 -0
  75. data/sorbet/rbi/gems/rspec-mocks@3.11.1.rbi +3625 -0
  76. data/sorbet/rbi/gems/rspec-support@3.11.0.rbi +1176 -0
  77. data/sorbet/rbi/gems/rspec@3.11.0.rbi +40 -0
  78. data/sorbet/rbi/gems/rubocop-ast@1.21.0.rbi +4193 -0
  79. data/sorbet/rbi/gems/rubocop-sorbet@0.6.8.rbi +677 -0
  80. data/sorbet/rbi/gems/rubocop@1.36.0.rbi +37914 -0
  81. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +732 -0
  82. data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +8 -0
  83. data/sorbet/rbi/gems/sawyer@0.9.2.rbi +513 -0
  84. data/sorbet/rbi/gems/smart_properties@1.17.0.rbi +326 -0
  85. data/sorbet/rbi/gems/spoom@1.1.11.rbi +1600 -0
  86. data/sorbet/rbi/gems/tapioca@0.8.0.rbi +1959 -0
  87. data/sorbet/rbi/gems/terminal-table@3.0.2.rbi +438 -0
  88. data/sorbet/rbi/gems/thor@1.2.1.rbi +2921 -0
  89. data/sorbet/rbi/gems/tzinfo@2.0.5.rbi +4879 -0
  90. data/sorbet/rbi/gems/unicode-display_width@2.3.0.rbi +27 -0
  91. data/sorbet/rbi/gems/unparser@0.6.5.rbi +2789 -0
  92. data/sorbet/rbi/gems/webrick@1.7.0.rbi +1802 -0
  93. data/sorbet/rbi/gems/yard-sorbet@0.6.1.rbi +288 -0
  94. data/sorbet/rbi/gems/yard@0.9.27.rbi +12668 -0
  95. data/sorbet/rbi/todo.rbi +122 -0
  96. metadata +104 -8
  97. data/lib/danger-packwerk/private/default_offenses_formatter.rb +0 -37
  98. data/sorbet/rbi/gems/danger@8.5.0.rbi +0 -122
data/sorbet/rbi/todo.rbi CHANGED
@@ -1,3 +1,125 @@
1
1
  module ::RSpec
2
2
  module Matchers; end
3
3
  end
4
+
5
+ # typed: true
6
+
7
+ class Danger::DangerfileGitHubPlugin < ::Danger::Plugin
8
+ def initialize(dangerfile); end
9
+
10
+ def api; end
11
+ def base_commit; end
12
+ def branch_for_base; end
13
+ def branch_for_head; end
14
+ def dismiss_out_of_range_messages(dismiss = T.unsafe(nil)); end
15
+ def head_commit; end
16
+ def html_link(paths, full_path: T.unsafe(nil)); end
17
+ def mr_author; end
18
+ def mr_body; end
19
+ def mr_json; end
20
+ def mr_labels; end
21
+ def mr_title; end
22
+ def pr_author; end
23
+ def pr_body; end
24
+ def pr_diff; end
25
+ def pr_draft?; end
26
+ def pr_json; end
27
+ def pr_labels; end
28
+ def pr_title; end
29
+ def review; end
30
+
31
+ private
32
+
33
+ def create_link(href, text); end
34
+
35
+ class << self
36
+ def instance_name; end
37
+ def new(dangerfile); end
38
+ end
39
+ end
40
+
41
+ class Danger::CI
42
+ def initialize(_env); end
43
+
44
+ def pull_request_id; end
45
+ def pull_request_id=(_arg0); end
46
+ def repo_slug; end
47
+ def repo_slug=(_arg0); end
48
+ def repo_url; end
49
+ def repo_url=(_arg0); end
50
+ def supported_request_sources; end
51
+ def supported_request_sources=(_arg0); end
52
+ def supports?(request_source); end
53
+
54
+ class << self
55
+ def available_ci_sources; end
56
+ def inherited(child_class); end
57
+ def validates_as_ci?(_env); end
58
+ def validates_as_pr?(_env); end
59
+ end
60
+ end
61
+
62
+ class Danger::LocalGitRepo < ::Danger::CI
63
+ def initialize(env = T.unsafe(nil)); end
64
+
65
+ def base_commit; end
66
+ def base_commit=(_arg0); end
67
+ def git; end
68
+ def head_commit; end
69
+ def head_commit=(_arg0); end
70
+ def run_git(command); end
71
+ def supported_request_sources; end
72
+
73
+ private
74
+
75
+ def commits; end
76
+ def find_pull_request(env); end
77
+ def find_remote_info(env); end
78
+ def found_pull_request; end
79
+ def given_pull_request_url?(env); end
80
+ def missing_remote_error_message; end
81
+ def raise_error_for_missing_remote; end
82
+ def remote_info; end
83
+ def sha; end
84
+
85
+ class << self
86
+ def validates_as_ci?(env); end
87
+ def validates_as_pr?(_env); end
88
+ end
89
+ end
90
+
91
+
92
+ class Danger::DangerfileGitPlugin < ::Danger::Plugin
93
+ def initialize(dangerfile); end
94
+
95
+ def added_files; end
96
+ def commits; end
97
+ def deleted_files; end
98
+ def deletions; end
99
+ def diff; end
100
+ def diff_for_file(file); end
101
+ def info_for_file(file); end
102
+ def insertions; end
103
+ def lines_of_code; end
104
+ def modified_files; end
105
+ def renamed_files; end
106
+ def tags; end
107
+
108
+ class << self
109
+ def instance_name; end
110
+ end
111
+ end
112
+
113
+
114
+ class Danger::Plugin
115
+ sig { returns(Danger::DangerfileGitHubPlugin) }
116
+ def github; end
117
+
118
+ sig { returns(Danger::DangerfileGitPlugin) }
119
+ def git; end
120
+
121
+ def markdown(message, file:, line:); end
122
+ end
123
+
124
+ class Danger::Dangerfile; end
125
+ module DangerHelpers::Cork::Board; end
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: danger-packwerk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gusto Engineers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-20 00:00:00.000000000 Z
11
+ date: 2022-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: code_ownership
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: danger-plugin-api
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -30,14 +44,14 @@ dependencies:
30
44
  requirements:
31
45
  - - ">="
32
46
  - !ruby/object:Gem::Version
33
- version: '0'
47
+ version: 2.2.1
34
48
  type: :runtime
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
52
  - - ">="
39
53
  - !ruby/object:Gem::Version
40
- version: '0'
54
+ version: 2.2.1
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: parse_packwerk
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -188,20 +202,102 @@ files:
188
202
  - README.md
189
203
  - lib/danger-packwerk.rb
190
204
  - lib/danger-packwerk/basic_reference_offense.rb
205
+ - lib/danger-packwerk/check/default_formatter.rb
206
+ - lib/danger-packwerk/check/offenses_formatter.rb
191
207
  - lib/danger-packwerk/danger_deprecated_references_yml_changes.rb
192
208
  - lib/danger-packwerk/danger_packwerk.rb
193
209
  - lib/danger-packwerk/packwerk_wrapper.rb
194
210
  - lib/danger-packwerk/private.rb
195
- - lib/danger-packwerk/private/default_offenses_formatter.rb
196
211
  - lib/danger-packwerk/private/deprecated_references.rb
212
+ - lib/danger-packwerk/private/ownership_information.rb
213
+ - lib/danger-packwerk/update/default_formatter.rb
214
+ - lib/danger-packwerk/update/offenses_formatter.rb
197
215
  - lib/danger-packwerk/version.rb
198
216
  - lib/danger-packwerk/violation_diff.rb
199
217
  - lib/danger_plugin.rb
200
218
  - sorbet/config
219
+ - sorbet/rbi/gems/actionview@7.0.4.rbi
220
+ - sorbet/rbi/gems/activesupport@7.0.4.rbi
221
+ - sorbet/rbi/gems/addressable@2.8.1.rbi
222
+ - sorbet/rbi/gems/ast@2.4.2.rbi
223
+ - sorbet/rbi/gems/better_html@2.0.1.rbi
224
+ - sorbet/rbi/gems/builder@3.2.4.rbi
225
+ - sorbet/rbi/gems/claide-plugins@0.9.2.rbi
226
+ - sorbet/rbi/gems/claide@1.1.0.rbi
227
+ - sorbet/rbi/gems/code_ownership@1.29.1.rbi
228
+ - sorbet/rbi/gems/code_teams@1.0.0.rbi
229
+ - sorbet/rbi/gems/coderay@1.1.3.rbi
230
+ - sorbet/rbi/gems/colored2@3.1.2.rbi
231
+ - sorbet/rbi/gems/concurrent-ruby@1.1.10.rbi
201
232
  - sorbet/rbi/gems/constant_resolver@0.2.0.rbi
202
- - sorbet/rbi/gems/danger@8.5.0.rbi
203
- - sorbet/rbi/gems/packwerk@2.1.1.rbi
233
+ - sorbet/rbi/gems/cork@0.3.0.rbi
234
+ - sorbet/rbi/gems/crass@1.0.6.rbi
235
+ - sorbet/rbi/gems/danger-plugin-api@1.0.0.rbi
236
+ - sorbet/rbi/gems/danger@9.0.0.rbi
237
+ - sorbet/rbi/gems/diff-lcs@1.5.0.rbi
238
+ - sorbet/rbi/gems/erubi@1.11.0.rbi
239
+ - sorbet/rbi/gems/faraday-em_http@1.0.0.rbi
240
+ - sorbet/rbi/gems/faraday-em_synchrony@1.0.0.rbi
241
+ - sorbet/rbi/gems/faraday-excon@1.1.0.rbi
242
+ - sorbet/rbi/gems/faraday-http-cache@2.4.1.rbi
243
+ - sorbet/rbi/gems/faraday-httpclient@1.0.1.rbi
244
+ - sorbet/rbi/gems/faraday-multipart@1.0.4.rbi
245
+ - sorbet/rbi/gems/faraday-net_http@1.0.1.rbi
246
+ - sorbet/rbi/gems/faraday-net_http_persistent@1.2.0.rbi
247
+ - sorbet/rbi/gems/faraday-patron@1.0.0.rbi
248
+ - sorbet/rbi/gems/faraday-rack@1.0.0.rbi
249
+ - sorbet/rbi/gems/faraday-retry@1.0.3.rbi
250
+ - sorbet/rbi/gems/faraday@1.10.2.rbi
251
+ - sorbet/rbi/gems/git@1.12.0.rbi
252
+ - sorbet/rbi/gems/i18n@1.12.0.rbi
253
+ - sorbet/rbi/gems/kramdown-parser-gfm@1.1.0.rbi
254
+ - sorbet/rbi/gems/kramdown@2.4.0.rbi
255
+ - sorbet/rbi/gems/loofah@2.19.0.rbi
256
+ - sorbet/rbi/gems/method_source@1.0.0.rbi
257
+ - sorbet/rbi/gems/minitest@5.16.3.rbi
258
+ - sorbet/rbi/gems/multipart-post@2.2.3.rbi
259
+ - sorbet/rbi/gems/nap@1.1.0.rbi
260
+ - sorbet/rbi/gems/no_proxy_fix@0.1.2.rbi
261
+ - sorbet/rbi/gems/nokogiri@1.13.8.rbi
262
+ - sorbet/rbi/gems/octokit@5.6.1.rbi
263
+ - sorbet/rbi/gems/open4@1.3.4.rbi
264
+ - sorbet/rbi/gems/packwerk@2.2.1.rbi
265
+ - sorbet/rbi/gems/parallel@1.22.1.rbi
204
266
  - sorbet/rbi/gems/parse_packwerk@0.12.1.rbi
267
+ - sorbet/rbi/gems/parser@3.1.2.1.rbi
268
+ - sorbet/rbi/gems/pry@0.14.1.rbi
269
+ - sorbet/rbi/gems/public_suffix@5.0.0.rbi
270
+ - sorbet/rbi/gems/racc@1.6.0.rbi
271
+ - sorbet/rbi/gems/rails-dom-testing@2.0.3.rbi
272
+ - sorbet/rbi/gems/rails-html-sanitizer@1.4.3.rbi
273
+ - sorbet/rbi/gems/rainbow@3.1.1.rbi
274
+ - sorbet/rbi/gems/rake@13.0.6.rbi
275
+ - sorbet/rbi/gems/rbi@0.0.14.rbi
276
+ - sorbet/rbi/gems/rchardet@1.8.0.rbi
277
+ - sorbet/rbi/gems/regexp_parser@2.5.0.rbi
278
+ - sorbet/rbi/gems/rexml@3.2.5.rbi
279
+ - sorbet/rbi/gems/rspec-core@3.11.0.rbi
280
+ - sorbet/rbi/gems/rspec-expectations@3.11.0.rbi
281
+ - sorbet/rbi/gems/rspec-mocks@3.11.1.rbi
282
+ - sorbet/rbi/gems/rspec-support@3.11.0.rbi
283
+ - sorbet/rbi/gems/rspec@3.11.0.rbi
284
+ - sorbet/rbi/gems/rubocop-ast@1.21.0.rbi
285
+ - sorbet/rbi/gems/rubocop-sorbet@0.6.8.rbi
286
+ - sorbet/rbi/gems/rubocop@1.36.0.rbi
287
+ - sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi
288
+ - sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi
289
+ - sorbet/rbi/gems/sawyer@0.9.2.rbi
290
+ - sorbet/rbi/gems/smart_properties@1.17.0.rbi
291
+ - sorbet/rbi/gems/spoom@1.1.11.rbi
292
+ - sorbet/rbi/gems/tapioca@0.8.0.rbi
293
+ - sorbet/rbi/gems/terminal-table@3.0.2.rbi
294
+ - sorbet/rbi/gems/thor@1.2.1.rbi
295
+ - sorbet/rbi/gems/tzinfo@2.0.5.rbi
296
+ - sorbet/rbi/gems/unicode-display_width@2.3.0.rbi
297
+ - sorbet/rbi/gems/unparser@0.6.5.rbi
298
+ - sorbet/rbi/gems/webrick@1.7.0.rbi
299
+ - sorbet/rbi/gems/yard-sorbet@0.6.1.rbi
300
+ - sorbet/rbi/gems/yard@0.9.27.rbi
205
301
  - sorbet/rbi/todo.rbi
206
302
  - sorbet/tapioca/require.rb
207
303
  homepage: https://github.com/rubyatscale/danger-packwerk
@@ -227,7 +323,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
227
323
  - !ruby/object:Gem::Version
228
324
  version: '0'
229
325
  requirements: []
230
- rubygems_version: 3.3.7
326
+ rubygems_version: 3.1.6
231
327
  signing_key:
232
328
  specification_version: 4
233
329
  summary: Danger plugin for packwerk.
@@ -1,37 +0,0 @@
1
- # typed: strict
2
-
3
- module DangerPackwerk
4
- module Private
5
- class DefaultAddedOffensesFormatter
6
- extend T::Sig
7
-
8
- sig { params(violations: T::Array[BasicReferenceOffense]).returns(String) }
9
- def self.format(violations)
10
- violation = T.must(violations.first)
11
- # We remove leading double colons as they feel like an implementation detail of packwerk.
12
- constant_name = violation.class_name.gsub(/\A::/, '')
13
- link_to_docs = '[the docs](https://github.com/Shopify/packwerk/blob/b647594f93c8922c038255a7aaca125d391a1fbf/docs/new_violation_flow_chart.pdf)'
14
- disclaimer = "We noticed you ran `bin/packwerk update-deprecations`. Make sure to read through #{link_to_docs} for other ways to resolve. "
15
- pluralized_violation = violations.count > 1 ? 'these violations' : 'this violation'
16
- request_to_add_context = "Could you add some context as a reply here about why we needed to add #{pluralized_violation}?"
17
-
18
- if violations.any?(&:dependency?) && violations.any?(&:privacy?)
19
- <<~MESSAGE
20
- Hi! It looks like the pack defining `#{constant_name}` considers this private API, and it's also not in the referencing pack's list of dependencies.
21
- #{disclaimer}#{request_to_add_context}
22
- MESSAGE
23
- elsif violations.any?(&:dependency?)
24
- <<~MESSAGE
25
- Hi! It looks like the pack defining `#{constant_name}` is not in the referencing pack's list of dependencies.
26
- #{disclaimer}#{request_to_add_context}
27
- MESSAGE
28
- else # violations.any?(&:privacy?)
29
- <<~MESSAGE
30
- Hi! It looks like the pack defining `#{constant_name}` considers this private API.
31
- #{disclaimer}#{request_to_add_context}
32
- MESSAGE
33
- end
34
- end
35
- end
36
- end
37
- end
@@ -1,122 +0,0 @@
1
- # typed: true
2
-
3
- class Danger::DangerfileGitHubPlugin < ::Danger::Plugin
4
- def initialize(dangerfile); end
5
-
6
- def api; end
7
- def base_commit; end
8
- def branch_for_base; end
9
- def branch_for_head; end
10
- def dismiss_out_of_range_messages(dismiss = T.unsafe(nil)); end
11
- def head_commit; end
12
- def html_link(paths, full_path: T.unsafe(nil)); end
13
- def mr_author; end
14
- def mr_body; end
15
- def mr_json; end
16
- def mr_labels; end
17
- def mr_title; end
18
- def pr_author; end
19
- def pr_body; end
20
- def pr_diff; end
21
- def pr_draft?; end
22
- def pr_json; end
23
- def pr_labels; end
24
- def pr_title; end
25
- def review; end
26
-
27
- private
28
-
29
- def create_link(href, text); end
30
-
31
- class << self
32
- def instance_name; end
33
- def new(dangerfile); end
34
- end
35
- end
36
-
37
- class Danger::CI
38
- def initialize(_env); end
39
-
40
- def pull_request_id; end
41
- def pull_request_id=(_arg0); end
42
- def repo_slug; end
43
- def repo_slug=(_arg0); end
44
- def repo_url; end
45
- def repo_url=(_arg0); end
46
- def supported_request_sources; end
47
- def supported_request_sources=(_arg0); end
48
- def supports?(request_source); end
49
-
50
- class << self
51
- def available_ci_sources; end
52
- def inherited(child_class); end
53
- def validates_as_ci?(_env); end
54
- def validates_as_pr?(_env); end
55
- end
56
- end
57
-
58
- class Danger::LocalGitRepo < ::Danger::CI
59
- def initialize(env = T.unsafe(nil)); end
60
-
61
- def base_commit; end
62
- def base_commit=(_arg0); end
63
- def git; end
64
- def head_commit; end
65
- def head_commit=(_arg0); end
66
- def run_git(command); end
67
- def supported_request_sources; end
68
-
69
- private
70
-
71
- def commits; end
72
- def find_pull_request(env); end
73
- def find_remote_info(env); end
74
- def found_pull_request; end
75
- def given_pull_request_url?(env); end
76
- def missing_remote_error_message; end
77
- def raise_error_for_missing_remote; end
78
- def remote_info; end
79
- def sha; end
80
-
81
- class << self
82
- def validates_as_ci?(env); end
83
- def validates_as_pr?(_env); end
84
- end
85
- end
86
-
87
-
88
- class Danger::DangerfileGitPlugin < ::Danger::Plugin
89
- def initialize(dangerfile); end
90
-
91
- def added_files; end
92
- def commits; end
93
- def deleted_files; end
94
- def deletions; end
95
- def diff; end
96
- def diff_for_file(file); end
97
- def info_for_file(file); end
98
- def insertions; end
99
- def lines_of_code; end
100
- def modified_files; end
101
- def renamed_files; end
102
- def tags; end
103
-
104
- class << self
105
- def instance_name; end
106
- end
107
- end
108
-
109
-
110
- class Danger::Plugin
111
- sig { returns(Danger::DangerfileGitHubPlugin) }
112
- def github; end
113
-
114
- sig { returns(Danger::DangerfileGitPlugin) }
115
- def git; end
116
-
117
- def markdown(message, file:, line:); end
118
- end
119
-
120
- class Danger::Dangerfile; end
121
- module Danger::EnvironmentManager; end
122
- module DangerHelpers::Cork::Board; end