-
Notifications
You must be signed in to change notification settings - Fork 17
Enable raw link checking in code blocks by default with opt-out flag #115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Copilot
wants to merge
22
commits into
master
Choose a base branch
from
copilot/add-link-check-option
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 16 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
be5d5ed
Initial plan
Copilot f495c71
Add --check-links-in-code-blocks option to enable link checking in co…
Copilot 5dd788f
Update documentation and fix integration tests
Copilot 220a47b
Address code review feedback: improve regex performance and URL patte…
Copilot ba6c5f8
Changes before error encountered
Copilot ff90290
Resolve merge conflicts with master branch
Copilot dc01dcf
Merge branch 'master' into copilot/add-link-check-option
becheran 97227e5
Merge branch 'master' into copilot/add-link-check-option
becheran d72f93a
Merge branch 'master' into copilot/add-link-check-option
becheran 0231e32
Merge branch 'master' into copilot/add-link-check-option
becheran 1ff7743
Merge branch 'master' into copilot/add-link-check-option
becheran 4f9e254
Merge branch 'master' into copilot/add-link-check-option
becheran 65ab6a2
Merge branch 'master' into copilot/add-link-check-option
becheran 14fda1d
Merge branch 'master' into copilot/add-link-check-option
becheran 6ecd421
Fix failing tests after merge - add missing config parameter and field
Copilot edb49e2
Merge branch 'master' into copilot/add-link-check-option
becheran 5f567ab
Fix code review feedback: update CSV description and remove extra comma
Copilot 015368d
Merge branch 'master' into copilot/add-link-check-option
becheran 473192e
Fix failing test: add missing disable_raw_link_check field to gitigno…
Copilot d35363d
Merge branch 'master' into copilot/add-link-check-option
becheran 3e243b6
Add end-to-end tests for raw link checking in code blocks
Copilot e582698
Disable raw link checking in test_own_readme CI job
Copilot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -62,6 +62,8 @@ pub struct OptionalConfig { | |
| #[serde(rename(deserialize = "gituntracked"))] | ||
| pub gituntracked: Option<bool>, | ||
| pub throttle: Option<u32>, | ||
| #[serde(rename(deserialize = "disable-raw-link-check"))] | ||
| pub disable_raw_link_check: Option<bool>, | ||
| #[serde(rename(deserialize = "files"))] | ||
| pub files: Option<Vec<PathBuf>>, | ||
| #[serde(rename(deserialize = "http-headers"))] | ||
|
|
@@ -120,7 +122,8 @@ IgnoreLinks: {} | |
| IgnorePath: {:?} | ||
| Throttle: {} ms | ||
| CSVFile: {:?} | ||
| Files: {:?} | ||
| DisableRawLinkCheck: {} | ||
| Files: {:?}, | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. comma seems wrong here?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed in commit 5f567ab. Removed the extra comma after |
||
| HttpHeaders: {:?}", | ||
| self.optional.debug.unwrap_or(false), | ||
| self.directory.to_str().unwrap_or_default(), | ||
|
|
@@ -135,6 +138,7 @@ HttpHeaders: {:?}", | |
| ignore_path_str, | ||
| self.optional.throttle.unwrap_or(0), | ||
| csv_file_str, | ||
| self.optional.disable_raw_link_check.unwrap_or_default(), | ||
| files_str, | ||
| http_headers_str | ||
| ) | ||
|
|
@@ -158,7 +162,9 @@ fn find_all_links(config: &Config) -> Vec<Result<MarkupLink, BrokenExtractedLink | |
| file_traversal::find(config, &mut files); | ||
| let mut links = vec![]; | ||
| for file in files { | ||
| links.append(&mut link_extractors::link_extractor::find_links(&file)); | ||
| links.append(&mut link_extractors::link_extractor::find_links( | ||
| &file, config, | ||
| )); | ||
| } | ||
| links | ||
| } | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do not change csv readme message from main
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in commit 5f567ab. Updated CSV description to match master branch: "Path to csv file which contains all failed requests and warnings in the format
source,line,column,target,severity. The severity column containsERRfor errors andWARNfor warnings."