Skip to content

Commit

Permalink
clarify what regular expression syntax is used for -ignore (fix #320)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd committed Jul 23, 2023
1 parent 2602d5e commit 590d3bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ To know all flags and options, see an output of `actionlint -h` or [the online c
### Ignore some errors

To ignore some errors, `-ignore` option offers to filter errors by messages using regular expression. The option is repeatable.
The regular expression syntax is the same as [RE2][re2].

```sh
actionlint -ignore 'label ".+" is unknown' -ignore '".+" is potentially untrusted'
Expand Down Expand Up @@ -432,6 +433,7 @@ You can also see actionlint issues inline in VS Code via the [Trunk VS Code exte
[reviewdog-actionlint]: https://github.com/reviewdog/action-actionlint
[reviewdog]: https://github.com/reviewdog/reviewdog
[cmd-manual]: https://rhysd.github.io/actionlint/usage.html
[re2]: https://golang.org/s/re2syntax
[go-template]: https://pkg.go.dev/text/template
[jsonl]: https://jsonlines.org/
[ga-annotate-error]: https://docs.github.com/en/actions/learn-github-actions/workflow-commands-for-github-actions#setting-an-error-message
Expand Down

0 comments on commit 590d3bd

Please sign in to comment.