-
Notifications
You must be signed in to change notification settings - Fork 3
[CSL-2463] Resolve "Code Scanning" warnings #67
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
Conversation
mocca102
left a comment
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.
It's looking good except for the places where defaultArgumentsCode that got removed was used
|
|
||
| export const defaultOnSubmitCode = `"onSubmit": (submitEvent) => console.dir(submitEvent)`; | ||
|
|
||
| export const defaultArgumentsCode = (apiKey: string) => `"apiKey": "${apiKey}", |
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.
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.
Good catch! Fixed here 13dab01
| ); | ||
|
|
||
| // Replace template blocks with function strings | ||
| Array.from(res.matchAll(/"(\w*)_CODE"/g)).forEach((match) => { |
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.
Big brains
mocca102
left a comment
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.
LGTM!
Resolves security warnings caused by us and also simplifies description generation