-
Notifications
You must be signed in to change notification settings - Fork 15
Fix command and argument escaping and path spaces #172
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
yCodeTech
wants to merge
30
commits into
main
Choose a base branch
from
fix/command-and-args-escaping
base: main
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 1 commit
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
21dc586
build: remove unmaintained `cross-spawn` package.
yCodeTech eba6c33
remove: the redundant `encoding` and `tty` spawn options from sniffer.
yCodeTech a30b23f
fix: `std*` possibly being null TS errors by checking if they're truthy.
yCodeTech 359ddc5
Improve Error Reporting (#171)
yCodeTech facb4cb
fix: prevent the process from hanging if we can't write to `stdin`.
yCodeTech e10798c
refactor: fixer's `determineNodeError` function and move into utils.
yCodeTech bc5980e
fix: remove unused import
yCodeTech 5993f33
refactor: extract platform check into new dedicated `isWin` function.
yCodeTech 7b62982
feat: add Windows ENOENT error handling for fixer and sniffer processes
yCodeTech 6e40824
fix: ts error `error TS2315: Type 'Buffer' is not generic.`
yCodeTech 7e64111
refactor: organise utility files into a new directory and renaming files
yCodeTech 6e3d7a9
refactor: `getArgs` function in sniffer and fixer into 1 helper function
yCodeTech 2368fb5
fix: ts error `error TS2304: Cannot find name 'TextDocument'.`
yCodeTech 1374d6c
refactor: integrate path normalization and joining in settings resolver.
yCodeTech 6d9a74d
refactor: `getArgs` to pass the `fileName` as `filePath` arg.
yCodeTech ac2e9b3
refactor: remove double quotes from the args in the `getArgs` function.
yCodeTech 5cdab03
fix: ENOENT handling to use original command info instead of `parsed`.
yCodeTech 789f2ca
feat: add `parseArgs` helper function for command line argument handling
yCodeTech 9ff2043
feat: add validation for standards, blocking command injection attacks.
yCodeTech 3287939
refactor: `additionalArgument` filtering into new `validateAdditional…
yCodeTech b16e5be
refactor: `validate` settings function for DRYer code and warn the user.
yCodeTech c89a626
feat: validate the arguments against a whitelist.
yCodeTech 5bcfec4
fix: the arguments whitelist docblock types.
yCodeTech 8b43573
fix: the import path resolution.
yCodeTech 8c79ebe
fix: Node 24 spawn deprecation of passing args as array when using shell
yCodeTech d55b7ec
refactor: user messages in `validateAdditionalArguments` to be clearer.
yCodeTech a3e13e7
fix: the `ts-watch` script to use the proper `--watch` flag
yCodeTech c1cce59
fix: `isStandardValid` function to check if it's an allowed xml ruleset.
yCodeTech 2642308
fix: warnings should only appear if args were invalid.
yCodeTech f852ec0
fix: `activateSniffer` shouldn't be checking if sniffer enabled or not.
yCodeTech 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
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.
Uh oh!
There was an error while loading. Please reload this page.