-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
False positive detect-non-literal-fs-filename on _.exists #26
Comments
yup. This needs to be re-written to actually see if fs was used, track it's assignment and make sure that method calls are on those objects. It's not impossible, we do a hacky version of it in the child_process.exec check. |
@evilpacket any word on a possible fix? |
Also fails for RegExp.prototype.exec(): Error:
|
same for |
same for me with // [...]
export async function some(key: string) {
const tedis = new Tedis();
ifThen(tedis.exists(key))
.then(i=>i)
.catch(error => console.error('error message:', error.message));
}
// [...] |
same for $uibModal.open() |
Same for
|
I believe this issue has been fixed in the latest version. |
Agreed. |
Brilliant, thank you! |
Using
lodash
4.17.4
andlodash-exists
1.0.3
.Found fs.exists with non literal argument at index 0 security/detect-non-literal-fs-filename
The text was updated successfully, but these errors were encountered: