You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -86,6 +86,11 @@ See https://staticcheck.io/docs/running-staticcheck/cli/#go for more information
86
86
87
87
Go build tags that get passed to Staticcheck via the `-tags` flag.
88
88
89
+
### `checks`
90
+
91
+
Value to pass to Staticcheck in the `-checks` flag. This doesn't
92
+
normally need to be set and defaults to `"inherit"`.
93
+
89
94
### `install-go`
90
95
91
96
Whether the action should install the latest version of Go to install and run Staticcheck.
@@ -112,3 +117,18 @@ This is useful when dealing with multiple projects within one repository.
112
117
Can be easily combined with a directory [`matrix`](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstrategymatrix),
113
118
see the advanced example above.
114
119
120
+
### `output-format`
121
+
122
+
Output format to use. This corresponds to Staticcheck's `-f` flag. Usually you
123
+
will want to use the default (`"text"`), as this format creates annotations on
124
+
pull requests. When combining multiple runs with `merge-files`, you want to use
125
+
the `"binary"` format on the individual runs to create the inputs to the merge
126
+
run.
127
+
128
+
### `output-file`
129
+
130
+
File to write Staticcheck's output to. Defaults to stdout.
131
+
132
+
### `merge-files`
133
+
134
+
A newline-separated list of files to pass to `staticcheck -merge`.
0 commit comments