mirror of
https://github.com/golangci/golangci-lint-action.git
synced 2025-12-16 07:28:27 +00:00
chore: generate
This commit is contained in:
parent
6fa8b5b204
commit
bc23088233
2 changed files with 12 additions and 4 deletions
8
dist/post_run/index.js
generated
vendored
8
dist/post_run/index.js
generated
vendored
|
|
@ -89292,12 +89292,16 @@ async function runLint(lintPath, patchPath) {
|
||||||
const userArgNames = new Set(userArgsList.map(([key]) => key));
|
const userArgNames = new Set(userArgsList.map(([key]) => key));
|
||||||
const annotations = core.getBooleanInput(`annotations`);
|
const annotations = core.getBooleanInput(`annotations`);
|
||||||
if (annotations) {
|
if (annotations) {
|
||||||
|
let ghaFormat = `github-actions-problem-matchers`;
|
||||||
|
if (!core.getBooleanInput(`problem-matchers`)) {
|
||||||
|
ghaFormat = `github-actions`;
|
||||||
|
}
|
||||||
const formats = (userArgsMap.get("out-format") || "")
|
const formats = (userArgsMap.get("out-format") || "")
|
||||||
.trim()
|
.trim()
|
||||||
.split(",")
|
.split(",")
|
||||||
.filter((f) => f.length > 0)
|
.filter((f) => f.length > 0)
|
||||||
.filter((f) => !f.startsWith(`github-actions`))
|
.filter((f) => !f.startsWith(ghaFormat))
|
||||||
.concat("github-actions")
|
.concat(ghaFormat)
|
||||||
.join(",");
|
.join(",");
|
||||||
addedArgs.push(`--out-format=${formats}`);
|
addedArgs.push(`--out-format=${formats}`);
|
||||||
userArgs = userArgs.replace(/--out-format=\S*/gi, "").trim();
|
userArgs = userArgs.replace(/--out-format=\S*/gi, "").trim();
|
||||||
|
|
|
||||||
8
dist/run/index.js
generated
vendored
8
dist/run/index.js
generated
vendored
|
|
@ -89292,12 +89292,16 @@ async function runLint(lintPath, patchPath) {
|
||||||
const userArgNames = new Set(userArgsList.map(([key]) => key));
|
const userArgNames = new Set(userArgsList.map(([key]) => key));
|
||||||
const annotations = core.getBooleanInput(`annotations`);
|
const annotations = core.getBooleanInput(`annotations`);
|
||||||
if (annotations) {
|
if (annotations) {
|
||||||
|
let ghaFormat = `github-actions-problem-matchers`;
|
||||||
|
if (!core.getBooleanInput(`problem-matchers`)) {
|
||||||
|
ghaFormat = `github-actions`;
|
||||||
|
}
|
||||||
const formats = (userArgsMap.get("out-format") || "")
|
const formats = (userArgsMap.get("out-format") || "")
|
||||||
.trim()
|
.trim()
|
||||||
.split(",")
|
.split(",")
|
||||||
.filter((f) => f.length > 0)
|
.filter((f) => f.length > 0)
|
||||||
.filter((f) => !f.startsWith(`github-actions`))
|
.filter((f) => !f.startsWith(ghaFormat))
|
||||||
.concat("github-actions")
|
.concat(ghaFormat)
|
||||||
.join(",");
|
.join(",");
|
||||||
addedArgs.push(`--out-format=${formats}`);
|
addedArgs.push(`--out-format=${formats}`);
|
||||||
userArgs = userArgs.replace(/--out-format=\S*/gi, "").trim();
|
userArgs = userArgs.replace(/--out-format=\S*/gi, "").trim();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue