Pattern: Use of non-literal fs
path
Issue: -
Detects fs
function calls with a non literal filepath. For security
reasons, it may be best to only pass string literals as filesystem
paths. Otherwise, it may be possible for an attacker to read and write
arbitrary files on your system through path traversal attacks.