pypi semgrep 0.74.0
Release v0.74.0

latest releases: 1.96.0, 1.95.0, 1.94.0...
2 years ago

Added

  • Support for method chaining patterns in Python, Golang, Ruby,
    and C# (#4300), so all GA languages now have method chaining
  • Scala: translate infix operators to generic AST as method calls,
    so $X.map($F) matches xs map f
  • PHP: support method patterns (#4262)

Changed

  • Add profiling_times object in --time --json output for more fine
    grained visibility into slow parts of semgrep
  • Constant propagation: Any kind of Python string (raw, byte, or unicode) is
    now evaluated to a string literal and can be matched by "..." (#3881)

Fixed

  • Ruby: blocks are now represented with an extra function call in Generic so that
    both f(...) and f($X) correctly match f(x) in f(x) { |n| puts n } (#3880)
  • Apply generic filters excluding large files and binary files to
    'generic' and 'regex' targets as it was already done for the other
    languages.
  • Fix some Stack_overflow when using -filter_irrelevant_rules (#4305)
  • Dataflow: When a switch had no other statement following it, and the last
    statement of the switch's default case was a statement, such as throw,
    that can exit the execution of the current function, this caused break
    statements within the switch to not be resolved during the construction of
    the CFG. This could led to e.g. constant propagation incorrectly flagging
    variables as constants. (#4265)

Don't miss a new semgrep release

NewReleases is sending notifications on new releases.