Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I wrote up a Semgrep rule as a comparison to add! (also tree-sitter based, `pip install Semgrep`, https://github.com/semgrep/semgrep, or play with live editor link: https://semgrep.dev/playground/s/nJ4rY)

    pattern: |-
       def $FUNC(..., database, ...):
           $...BODY
    fix: |-
      def $FUNC(..., db, ...):
          $...BODY


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: