danger-wcc 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. checksums.yaml +7 -0
  2. data/.circleci/config.yml +46 -0
  3. data/.gitignore +6 -0
  4. data/.rubocop.yml +219 -0
  5. data/.ruby-version +1 -0
  6. data/.travis.yml +12 -0
  7. data/Dangerfile +5 -0
  8. data/Gemfile +6 -0
  9. data/Guardfile +35 -0
  10. data/LICENSE +201 -0
  11. data/README.md +2 -0
  12. data/Rakefile +25 -0
  13. data/danger-wcc.gemspec +58 -0
  14. data/lib/danger_plugin.rb +3 -0
  15. data/lib/version.rb +5 -0
  16. data/lib/wcc/commit_lint.rb +158 -0
  17. data/lib/wcc/commit_lint/README.md +3 -0
  18. data/lib/wcc/commit_lint/commit_check.rb +19 -0
  19. data/lib/wcc/commit_lint/empty_line_check.rb +22 -0
  20. data/lib/wcc/commit_lint/subject_cap_check.rb +22 -0
  21. data/lib/wcc/commit_lint/subject_length_check.rb +28 -0
  22. data/lib/wcc/commit_lint/subject_period_check.rb +22 -0
  23. data/lib/wcc/commit_lint/subject_words_check.rb +22 -0
  24. data/lib/wcc/default.jshintrc +5 -0
  25. data/lib/wcc/defaults.reek +131 -0
  26. data/lib/wcc/github.rb +24 -0
  27. data/lib/wcc/jshint.rb +63 -0
  28. data/lib/wcc/plugin.rb +128 -0
  29. data/lib/wcc/reek.rb +56 -0
  30. data/lib/wcc/rubocop_exceptions.rb +99 -0
  31. data/lib/wcc/todos.rb +78 -0
  32. data/lib/wcc/utils.rb +136 -0
  33. data/spec/fixtures/brakeman/a.tmp +13 -0
  34. data/spec/fixtures/brakeman/b.tmp +14 -0
  35. data/spec/fixtures/brakeman/brakeman.diff +20 -0
  36. data/spec/fixtures/brakeman/brakeman.out +14 -0
  37. data/spec/fixtures/exception_context.diff +15 -0
  38. data/spec/fixtures/exception_insert_context.diff +14 -0
  39. data/spec/fixtures/exception_misspelled.diff +14 -0
  40. data/spec/fixtures/exception_multiline_context.diff +20 -0
  41. data/spec/fixtures/exception_reenabled.diff +13 -0
  42. data/spec/fixtures/find_in_diff.rb +21 -0
  43. data/spec/fixtures/find_in_diff_2_chunks.diff +24 -0
  44. data/spec/fixtures/flay.diff +17 -0
  45. data/spec/fixtures/flay.txt +18 -0
  46. data/spec/fixtures/github/labels.json +72 -0
  47. data/spec/fixtures/github_pr.json +325 -0
  48. data/spec/fixtures/jshint/a.tmp +5 -0
  49. data/spec/fixtures/jshint/b.tmp +7 -0
  50. data/spec/fixtures/jshint/jshint.diff +13 -0
  51. data/spec/fixtures/jshint/out.jshint +7 -0
  52. data/spec/fixtures/no_exception.diff +10 -0
  53. data/spec/fixtures/no_todo.diff +13 -0
  54. data/spec/fixtures/reek/line_numbers.reek +121 -0
  55. data/spec/fixtures/reek/reek.diff +50 -0
  56. data/spec/fixtures/rubocop_exception.rb +39 -0
  57. data/spec/fixtures/todo.rb +21 -0
  58. data/spec/fixtures/todo_link_next_line.diff +14 -0
  59. data/spec/fixtures/todo_link_same_line.diff +13 -0
  60. data/spec/fixtures/todo_no_link.diff +13 -0
  61. data/spec/fixtures/todo_removed.diff +13 -0
  62. data/spec/fixtures_helper.rb +19 -0
  63. data/spec/spec_helper.rb +73 -0
  64. data/spec/wcc/commit_lint_spec.rb +392 -0
  65. data/spec/wcc/github_spec.rb +67 -0
  66. data/spec/wcc/jshint_spec.rb +68 -0
  67. data/spec/wcc/plugin_spec.rb +134 -0
  68. data/spec/wcc/reek_spec.rb +71 -0
  69. data/spec/wcc/rubocop_exceptions_spec.rb +136 -0
  70. data/spec/wcc/todos_spec.rb +96 -0
  71. data/spec/wcc/utils_spec.rb +134 -0
  72. data/spec/wcc_spec.rb +21 -0
  73. metadata +393 -0
@@ -0,0 +1,96 @@
1
+ # frozen_string_literal: true
2
+
3
+ require File.expand_path('../../spec_helper', __FILE__)
4
+
5
+ module Danger
6
+ describe Danger::DangerWCC do
7
+ before do
8
+ @dangerfile = testing_dangerfile
9
+ @my_plugin = @dangerfile.wcc
10
+ @git = @dangerfile.git
11
+ @github = @dangerfile.github
12
+
13
+ allow(@github).to receive(:html_link) do |text|
14
+ "<a href=\"github_html_link\">#{text}</a>"
15
+ end
16
+ end
17
+
18
+ describe 'todos' do
19
+ it 'Warns when TODO added' do
20
+ allow(@git).to receive(:diff)
21
+ .and_return([load_diff('spec/fixtures/todo.rb', 'todo_no_link')])
22
+
23
+ # act
24
+ @my_plugin.todos
25
+
26
+ expect(@dangerfile.violation_report[:warnings])
27
+ .to eq([Violation.new('TODO added in '\
28
+ '<a href="github_html_link">spec/fixtures/todo.rb</a>'\
29
+ ' - is there a card associated with that?',
30
+ false,
31
+ 'spec/fixtures/todo.rb',
32
+ 9)])
33
+ end
34
+
35
+ it 'Does not warn when TODO removed' do
36
+ allow(@git).to receive(:diff)
37
+ .and_return([load_diff('spec/fixtures/todo.rb', 'todo_removed')])
38
+
39
+ # act
40
+ @my_plugin.todos
41
+
42
+ expect(@dangerfile.violation_report[:warnings])
43
+ .to eq([])
44
+ end
45
+
46
+ it 'Does not warn when no TODO in diff' do
47
+ allow(@git).to receive(:diff)
48
+ .and_return([load_diff('spec/fixtures/todo.rb', 'no_todo')])
49
+
50
+ # act
51
+ @my_plugin.todos
52
+
53
+ expect(@dangerfile.violation_report[:warnings])
54
+ .to eq([])
55
+ end
56
+
57
+ it 'Sends message when todo has link' do
58
+ allow(@git).to receive(:diff)
59
+ .and_return(
60
+ [load_diff('spec/fixtures/todo.rb', 'todo_link_same_line')]
61
+ )
62
+
63
+ # act
64
+ @my_plugin.todos
65
+
66
+ expect(@dangerfile.violation_report[:messages])
67
+ .to eq([Violation.new('TODO added in '\
68
+ '<a href="github_html_link">spec/fixtures/todo.rb</a> '\
69
+ 'referencing [https://zube.io/watermark/asdf1234]'\
70
+ '(https://zube.io/watermark/asdf1234)',
71
+ false,
72
+ 'spec/fixtures/todo.rb',
73
+ 13)])
74
+ end
75
+
76
+ it 'Sends message when todo below link' do
77
+ allow(@git).to receive(:diff)
78
+ .and_return(
79
+ [load_diff('spec/fixtures/todo.rb', 'todo_link_next_line')]
80
+ )
81
+
82
+ # act
83
+ @my_plugin.todos
84
+
85
+ expect(@dangerfile.violation_report[:messages])
86
+ .to eq([Violation.new('TODO added in '\
87
+ '<a href="github_html_link">spec/fixtures/todo.rb</a> '\
88
+ 'referencing [https://www.github.com/watermarkchurch/asdf/1234]'\
89
+ '(https://www.github.com/watermarkchurch/asdf/1234)',
90
+ false,
91
+ 'spec/fixtures/todo.rb',
92
+ 18)])
93
+ end
94
+ end
95
+ end
96
+ end
@@ -0,0 +1,134 @@
1
+ # frozen_string_literal: true
2
+
3
+ require File.expand_path('../../spec_helper', __FILE__)
4
+
5
+ module Danger
6
+ describe Danger::DangerWCC do
7
+ before do
8
+ @dangerfile = testing_dangerfile
9
+ @my_plugin = @dangerfile.wcc
10
+ @git = @dangerfile.git
11
+ @github = @dangerfile.github
12
+
13
+ allow(@github).to receive(:pr_json)
14
+ .and_return(JSON.parse(load_fixture('github_pr.json')))
15
+ end
16
+
17
+ describe 'utils#find_in_diff' do
18
+ it 'returns empty list when no files in diff' do
19
+ allow(@git).to receive(:diff)
20
+ .and_return([])
21
+
22
+ # act
23
+ lines = @my_plugin.find_in_diff(/.*/i)
24
+
25
+ # assert
26
+ expect(lines).to eq([])
27
+ end
28
+
29
+ it 'returns list with matching added lines' do
30
+ allow(@git).to receive(:diff)
31
+ .and_return([load_diff('spec/fixtures/todo.rb', 'no_todo')])
32
+
33
+ # act
34
+ lines = @my_plugin.find_in_diff(/(module|def|end)/i)
35
+
36
+ # assert
37
+ expect(lines.map(&:content)).to eq(
38
+ [
39
+ '+module Todo',
40
+ '+ def this_should_not_trigger_todo',
41
+ '+ end',
42
+ '+end'
43
+ ]
44
+ )
45
+ end
46
+
47
+ it 'executes block for each matching line' do
48
+ allow(@git).to receive(:diff)
49
+ .and_return(
50
+ [
51
+ load_diff('spec/fixtures/todo.rb', 'no_todo'),
52
+ load_diff('spec/fixtures/find_in_diff.rb',
53
+ 'find_in_diff_2_chunks')
54
+ ]
55
+ )
56
+
57
+ lines = []
58
+
59
+ # act
60
+ @my_plugin.find_in_diff(/\#\s*(.+)$/i) do |match, line, hunk, file|
61
+ lines.push({
62
+ group: match.captures[0],
63
+ line: line,
64
+ hunk: hunk,
65
+ file: file
66
+ })
67
+ end
68
+
69
+ # assert
70
+ expect(lines.map { |l| l[:line].content }).to eq(
71
+ [
72
+ '+# frozen_string_literal: true',
73
+ '+ # This should appear in hunk 1',
74
+ '+ # This should appear in hunk 2'
75
+ ]
76
+ )
77
+ expect(lines.map { |l| l[:group] }).to eq(
78
+ [
79
+ 'frozen_string_literal: true',
80
+ 'This should appear in hunk 1',
81
+ 'This should appear in hunk 2'
82
+ ]
83
+ )
84
+ expect(lines.map { |l| l[:hunk].range_info.new_range.start }).to eq(
85
+ [
86
+ 1,
87
+ 1,
88
+ 14
89
+ ]
90
+ )
91
+ end
92
+ end
93
+
94
+ describe 'utils#run_and_diff' do
95
+ it 'runs command and builds diff' do
96
+ # setup
97
+ File.write('README.md', 'something else')
98
+ begin
99
+ # act
100
+ diff = @my_plugin.run_and_diff('cat README.md')
101
+ diff = GitDiff.from_string(diff)
102
+
103
+ # assert
104
+ expect(diff.files[0].hunks[0].lines.size).to be > 1
105
+ additions = diff.files[0].hunks[0].lines.select(&:addition?)
106
+ expect(additions.length).to eq(1)
107
+ expect(additions[0].content).to eq('+something else')
108
+ ensure
109
+ `git checkout HEAD -- README.md`
110
+ end
111
+ end
112
+
113
+ it 'runs command from block' do
114
+ # setup
115
+ dir = Dir.pwd
116
+
117
+ # act
118
+ diff = @my_plugin.run_and_diff { Dir.pwd }
119
+ diff = GitDiff.from_string(diff)
120
+
121
+ # assert
122
+ expect(diff.files[0].hunks[0].lines.size).to be > 1
123
+
124
+ additions = diff.files[0].hunks[0].lines.select(&:addition?)
125
+ expect(additions.length).to eq(1)
126
+ expect(additions[0].content).to eq("+#{dir}")
127
+
128
+ deletions = diff.files[0].hunks[0].lines.select(&:deletion?)
129
+ expect(deletions.length).to eq(1)
130
+ expect(deletions[0].content).to_not include(dir)
131
+ end
132
+ end
133
+ end
134
+ end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ require File.expand_path('../spec_helper', __FILE__)
4
+
5
+ module Danger
6
+ describe Danger::DangerWCC do
7
+ it 'should be a plugin' do
8
+ expect(Danger::DangerWCC.new(nil)).to be_a Danger::Plugin
9
+ end
10
+
11
+ #
12
+ # You should test your custom attributes and methods here
13
+ #
14
+ describe 'with Dangerfile' do
15
+ before do
16
+ @dangerfile = testing_dangerfile
17
+ @my_plugin = @dangerfile.wcc
18
+ end
19
+ end
20
+ end
21
+ end
metadata ADDED
@@ -0,0 +1,393 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: danger-wcc
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Watermark Dev
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-01-23 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: brakeman
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'
27
+ - !ruby/object:Gem::Dependency
28
+ name: danger-plugin-api
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: flay
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: git_diff
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '0.3'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '0.3'
69
+ - !ruby/object:Gem::Dependency
70
+ name: reek
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: bundler
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '1.3'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '1.3'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rake
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '10.0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '10.0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rspec
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '3.4'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '3.4'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rspec_junit_formatter
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 0.3.0
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: 0.3.0
139
+ - !ruby/object:Gem::Dependency
140
+ name: webmock
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '3.1'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '3.1'
153
+ - !ruby/object:Gem::Dependency
154
+ name: rubocop
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: yard
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: guard
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - "~>"
186
+ - !ruby/object:Gem::Version
187
+ version: '2.14'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - "~>"
193
+ - !ruby/object:Gem::Version
194
+ version: '2.14'
195
+ - !ruby/object:Gem::Dependency
196
+ name: guard-rspec
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - "~>"
200
+ - !ruby/object:Gem::Version
201
+ version: '4.7'
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - "~>"
207
+ - !ruby/object:Gem::Version
208
+ version: '4.7'
209
+ - !ruby/object:Gem::Dependency
210
+ name: guard-rubocop
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - "~>"
214
+ - !ruby/object:Gem::Version
215
+ version: 1.3.0
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - "~>"
221
+ - !ruby/object:Gem::Version
222
+ version: 1.3.0
223
+ - !ruby/object:Gem::Dependency
224
+ name: listen
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - '='
228
+ - !ruby/object:Gem::Version
229
+ version: 3.0.7
230
+ type: :development
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - '='
235
+ - !ruby/object:Gem::Version
236
+ version: 3.0.7
237
+ - !ruby/object:Gem::Dependency
238
+ name: pry
239
+ requirement: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ - - ">="
242
+ - !ruby/object:Gem::Version
243
+ version: '0'
244
+ type: :development
245
+ prerelease: false
246
+ version_requirements: !ruby/object:Gem::Requirement
247
+ requirements:
248
+ - - ">="
249
+ - !ruby/object:Gem::Version
250
+ version: '0'
251
+ description: A Danger plugin for Watermark Church custom rules.
252
+ email:
253
+ - dev@watermark.org
254
+ executables: []
255
+ extensions: []
256
+ extra_rdoc_files: []
257
+ files:
258
+ - ".circleci/config.yml"
259
+ - ".gitignore"
260
+ - ".rubocop.yml"
261
+ - ".ruby-version"
262
+ - ".travis.yml"
263
+ - Dangerfile
264
+ - Gemfile
265
+ - Guardfile
266
+ - LICENSE
267
+ - README.md
268
+ - Rakefile
269
+ - danger-wcc.gemspec
270
+ - lib/danger_plugin.rb
271
+ - lib/version.rb
272
+ - lib/wcc/commit_lint.rb
273
+ - lib/wcc/commit_lint/README.md
274
+ - lib/wcc/commit_lint/commit_check.rb
275
+ - lib/wcc/commit_lint/empty_line_check.rb
276
+ - lib/wcc/commit_lint/subject_cap_check.rb
277
+ - lib/wcc/commit_lint/subject_length_check.rb
278
+ - lib/wcc/commit_lint/subject_period_check.rb
279
+ - lib/wcc/commit_lint/subject_words_check.rb
280
+ - lib/wcc/default.jshintrc
281
+ - lib/wcc/defaults.reek
282
+ - lib/wcc/github.rb
283
+ - lib/wcc/jshint.rb
284
+ - lib/wcc/plugin.rb
285
+ - lib/wcc/reek.rb
286
+ - lib/wcc/rubocop_exceptions.rb
287
+ - lib/wcc/todos.rb
288
+ - lib/wcc/utils.rb
289
+ - spec/fixtures/brakeman/a.tmp
290
+ - spec/fixtures/brakeman/b.tmp
291
+ - spec/fixtures/brakeman/brakeman.diff
292
+ - spec/fixtures/brakeman/brakeman.out
293
+ - spec/fixtures/exception_context.diff
294
+ - spec/fixtures/exception_insert_context.diff
295
+ - spec/fixtures/exception_misspelled.diff
296
+ - spec/fixtures/exception_multiline_context.diff
297
+ - spec/fixtures/exception_reenabled.diff
298
+ - spec/fixtures/find_in_diff.rb
299
+ - spec/fixtures/find_in_diff_2_chunks.diff
300
+ - spec/fixtures/flay.diff
301
+ - spec/fixtures/flay.txt
302
+ - spec/fixtures/github/labels.json
303
+ - spec/fixtures/github_pr.json
304
+ - spec/fixtures/jshint/a.tmp
305
+ - spec/fixtures/jshint/b.tmp
306
+ - spec/fixtures/jshint/jshint.diff
307
+ - spec/fixtures/jshint/out.jshint
308
+ - spec/fixtures/no_exception.diff
309
+ - spec/fixtures/no_todo.diff
310
+ - spec/fixtures/reek/line_numbers.reek
311
+ - spec/fixtures/reek/reek.diff
312
+ - spec/fixtures/rubocop_exception.rb
313
+ - spec/fixtures/todo.rb
314
+ - spec/fixtures/todo_link_next_line.diff
315
+ - spec/fixtures/todo_link_same_line.diff
316
+ - spec/fixtures/todo_no_link.diff
317
+ - spec/fixtures/todo_removed.diff
318
+ - spec/fixtures_helper.rb
319
+ - spec/spec_helper.rb
320
+ - spec/wcc/commit_lint_spec.rb
321
+ - spec/wcc/github_spec.rb
322
+ - spec/wcc/jshint_spec.rb
323
+ - spec/wcc/plugin_spec.rb
324
+ - spec/wcc/reek_spec.rb
325
+ - spec/wcc/rubocop_exceptions_spec.rb
326
+ - spec/wcc/todos_spec.rb
327
+ - spec/wcc/utils_spec.rb
328
+ - spec/wcc_spec.rb
329
+ homepage: https://github.com/watermarkchurch/danger-wcc
330
+ licenses:
331
+ - Apache-2.0
332
+ metadata: {}
333
+ post_install_message:
334
+ rdoc_options: []
335
+ require_paths:
336
+ - lib
337
+ required_ruby_version: !ruby/object:Gem::Requirement
338
+ requirements:
339
+ - - ">="
340
+ - !ruby/object:Gem::Version
341
+ version: '0'
342
+ required_rubygems_version: !ruby/object:Gem::Requirement
343
+ requirements:
344
+ - - ">="
345
+ - !ruby/object:Gem::Version
346
+ version: '0'
347
+ requirements: []
348
+ rubyforge_project:
349
+ rubygems_version: 2.6.11
350
+ signing_key:
351
+ specification_version: 4
352
+ summary: A Danger plugin for Watermark Church custom rules.
353
+ test_files:
354
+ - spec/fixtures/brakeman/a.tmp
355
+ - spec/fixtures/brakeman/b.tmp
356
+ - spec/fixtures/brakeman/brakeman.diff
357
+ - spec/fixtures/brakeman/brakeman.out
358
+ - spec/fixtures/exception_context.diff
359
+ - spec/fixtures/exception_insert_context.diff
360
+ - spec/fixtures/exception_misspelled.diff
361
+ - spec/fixtures/exception_multiline_context.diff
362
+ - spec/fixtures/exception_reenabled.diff
363
+ - spec/fixtures/find_in_diff.rb
364
+ - spec/fixtures/find_in_diff_2_chunks.diff
365
+ - spec/fixtures/flay.diff
366
+ - spec/fixtures/flay.txt
367
+ - spec/fixtures/github/labels.json
368
+ - spec/fixtures/github_pr.json
369
+ - spec/fixtures/jshint/a.tmp
370
+ - spec/fixtures/jshint/b.tmp
371
+ - spec/fixtures/jshint/jshint.diff
372
+ - spec/fixtures/jshint/out.jshint
373
+ - spec/fixtures/no_exception.diff
374
+ - spec/fixtures/no_todo.diff
375
+ - spec/fixtures/reek/line_numbers.reek
376
+ - spec/fixtures/reek/reek.diff
377
+ - spec/fixtures/rubocop_exception.rb
378
+ - spec/fixtures/todo.rb
379
+ - spec/fixtures/todo_link_next_line.diff
380
+ - spec/fixtures/todo_link_same_line.diff
381
+ - spec/fixtures/todo_no_link.diff
382
+ - spec/fixtures/todo_removed.diff
383
+ - spec/fixtures_helper.rb
384
+ - spec/spec_helper.rb
385
+ - spec/wcc/commit_lint_spec.rb
386
+ - spec/wcc/github_spec.rb
387
+ - spec/wcc/jshint_spec.rb
388
+ - spec/wcc/plugin_spec.rb
389
+ - spec/wcc/reek_spec.rb
390
+ - spec/wcc/rubocop_exceptions_spec.rb
391
+ - spec/wcc/todos_spec.rb
392
+ - spec/wcc/utils_spec.rb
393
+ - spec/wcc_spec.rb