Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rules: add some tests to Java and JavaScript rules (#677)
Add tests to HS-JAVA-1, HS-JAVASCRIPT-1, HS-JAVASCRIPT-2 and HS-JAVASCRIPT-2 rules. This commit also make a improvement on HS-JAVASCRIPT-2 to match the correct way to set NODE_TLS_REJECT_UNAUTHORIZED env on Nodejs. Previously the rule was just match with the following code `"NODE_TLS_REJECT_UNAUTHORIZED" = "0";` with the change the rule will match `process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";` Update #630 Signed-off-by: Matheus Alcantara <[email protected]>
- Loading branch information