-
Notifications
You must be signed in to change notification settings - Fork 43
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
Bug fix on sitemap adds localFileScan, move report directory up one level #364
Conversation
e185646
to
ba20951
Compare
Local file scan: Ambiguous help text
Output
Rename it to Unhandled exception
Output
|
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.
See comments
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.
Please set file://
as the finalUrl much earlier in the call stack and not check if local file scan superfluously. You need to think about code maintainability / readability
…due to expansion of localFileScan be able to scan all local files
…tring version of finalUrl
Allow sitemap to be able to recurse all the files (Previously it was just getting the last childSitemap files, instead of all of the files)
Allow pdfScanFunc to run both filePath and url (it uses fs for file path and got for url)
Prevent sitemap from recursing infinitely
Do checking if its a file path or url else skip it, without stopping the scan
Added crawlLocalFile (-c 5)
Added results and log folder name based on the local file name given
Added try catch to all the json parsing for sitemap
Fix bug of able to scan files with dot separator within the file name
Allow all types of files to be scanned (verapdf for pdf files, axescript for non pdf files)
Added typing for crawLocalFile.js
Move reports directory to parent directory
I've kept this PR as small as possible (~500 lines) by splitting it into PRs with manageable chunks of code
I've requested reviews from 1 reviewer
I've tested existing features (website scan, sitemap, custom flow) in both node index and cli
I've synced this fork with GovTechSG repo
I've added/updated unit tests
I've added/updated any necessary dependencies in
package[-lock].json
npm audit
, portable installation on GitHub Actions