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
+24-8
Original file line number
Diff line number
Diff line change
@@ -100,7 +100,9 @@ You will also likely need to add the following `.gitattributes` file to ensure t
100
100
101
101
## Options
102
102
103
-
`version`: (required) The version of golangci-lint to use.
103
+
### `version`
104
+
105
+
(required) The version of golangci-lint to use.
104
106
* When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
105
107
* When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit.
106
108
@@ -111,7 +113,9 @@ with:
111
113
# ...
112
114
```
113
115
114
-
`install-mode`: (optional) The mode to install golangci-lint.
116
+
### `install-mode`
117
+
118
+
(optional) The mode to install golangci-lint.
115
119
It can be `binary` or `goinstall`.
116
120
The default value is `binary`.
117
121
@@ -122,7 +126,9 @@ with:
122
126
# ...
123
127
```
124
128
125
-
`only-new-issues`: (optional) Show only new issues.
129
+
### `only-new-issues`
130
+
131
+
(optional) Show only new issues.
126
132
If you are using `merge_group` event (merge queue) you should add the option `fetch-depth: 0` to `actions/checkout` step.
127
133
The default value is `false`.
128
134
@@ -133,7 +139,9 @@ with:
133
139
# ...
134
140
```
135
141
136
-
`working-directory`: (optional) working directory, useful for monorepos.
142
+
### `working-directory`
143
+
144
+
(optional) working directory, useful for monorepos.
137
145
138
146
```yml
139
147
uses: golangci/golangci-lint-action@v5
@@ -142,7 +150,9 @@ with:
142
150
# ...
143
151
```
144
152
145
-
`skip-cache`: (optional) If set to `true`, then all caching functionality will be completely disabled,
153
+
### `skip-cache`
154
+
155
+
(optional) If set to `true`, then all caching functionality will be completely disabled,
146
156
takes precedence over all other caching options.
147
157
The default value is `false`.
148
158
@@ -153,7 +163,9 @@ with:
153
163
# ...
154
164
```
155
165
156
-
`skip-save-cache`: (optional) If set to `true`, caches will not be saved, but they may still be restored, required `skip-cache: false`.
166
+
### `skip-save-cache`
167
+
168
+
(optional) If set to `true`, caches will not be saved, but they may still be restored, required `skip-cache: false`.
157
169
The default value is `false`.
158
170
159
171
```yml
@@ -163,7 +175,9 @@ with:
163
175
# ...
164
176
```
165
177
166
-
`annotations`: (optional) To enable/disable GitHub Action annotations.
178
+
### `annotations`
179
+
180
+
(optional) To enable/disable GitHub Action annotations.
167
181
If disabled (`false`), the output format(s) will follow the golangci-lint configuration file and use the same default as golangci-lint (i.e. `colored-line-number`).
0 commit comments