Release v0.5.0
·
6930 commits
to develop
since this release
Changed
- Rename executable to semgrep
- Deep expression matching in conditionals requires different syntax:
will now match
if <... $X = True ...>: ...
if foo == bar and baz == True: return 1
- Deduplicate semgrep output in cases where there are multiple ways
a rule matches section of code - Deep statement matchings goes into functions and classes:
now matches with
$X = ... ... bar($X)
QUX = "qux" function baz() { function foo() { bar(QUX) } }
Added
python2
is a valid supported language
Fixed
- Expression will right hand side of assignment/variable definition in javascript. See #429
will now match
foo();
var x = foo();
- Regression where
"..."
was matching empty listdoes not matchfoo("...")
foo()