camdencheek / tree-sitter-dockerfile

A tree-sitter grammar for Dockerfile
MIT License
71 stars 20 forks source link

Support options after RUN #28

Closed mjambon closed 1 year ago

mjambon commented 1 year ago

The RUN instruction now supports options. This PR adds support for any future option, in addition to those officially supported at this time (--mount, --network, --security).

The value of the --mount option itself has a structure that we want to inspect with Semgrep. That's why I added a special treatment for it.

mjambon commented 1 year ago

Yesterday's commit was bogus. It's fixed now.

mjambon commented 1 year ago

:wave: we'd like to merge this.