rubocops/patches: suggest url with full_index=1
This commit is contained in:
parent
202cc04456
commit
b37c3e9cb2
@ -57,7 +57,7 @@ module RuboCop
|
|||||||
if match_obj = regex_match_group(patch, gh_patch_diff_pattern)
|
if match_obj = regex_match_group(patch, gh_patch_diff_pattern)
|
||||||
problem <<~EOS
|
problem <<~EOS
|
||||||
use GitHub pull request URLs:
|
use GitHub pull request URLs:
|
||||||
https://github.com/#{match_obj[1]}/#{match_obj[2]}/pull/#{match_obj[3]}.patch
|
https://github.com/#{match_obj[1]}/#{match_obj[2]}/pull/#{match_obj[3]}.patch?full_index=1
|
||||||
Rather than patch-diff:
|
Rather than patch-diff:
|
||||||
#{patch_url}
|
#{patch_url}
|
||||||
EOS
|
EOS
|
||||||
|
@ -94,7 +94,7 @@ describe RuboCop::Cop::FormulaAudit::Patches do
|
|||||||
[{ message:
|
[{ message:
|
||||||
<<~EOS,
|
<<~EOS,
|
||||||
use GitHub pull request URLs:
|
use GitHub pull request URLs:
|
||||||
https://github.com/foo/foo-bar/pull/100.patch
|
https://github.com/foo/foo-bar/pull/100.patch?full_index=1
|
||||||
Rather than patch-diff:
|
Rather than patch-diff:
|
||||||
https://patch-diff.githubusercontent.com/raw/foo/foo-bar/pull/100.patch
|
https://patch-diff.githubusercontent.com/raw/foo/foo-bar/pull/100.patch
|
||||||
EOS
|
EOS
|
||||||
@ -231,7 +231,7 @@ describe RuboCop::Cop::FormulaAudit::Patches do
|
|||||||
[{ message:
|
[{ message:
|
||||||
<<~EOS,
|
<<~EOS,
|
||||||
use GitHub pull request URLs:
|
use GitHub pull request URLs:
|
||||||
https://github.com/foo/foo-bar/pull/100.patch
|
https://github.com/foo/foo-bar/pull/100.patch?full_index=1
|
||||||
Rather than patch-diff:
|
Rather than patch-diff:
|
||||||
https://patch-diff.githubusercontent.com/raw/foo/foo-bar/pull/100.patch
|
https://patch-diff.githubusercontent.com/raw/foo/foo-bar/pull/100.patch
|
||||||
EOS
|
EOS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user