mirror of
https://github.com/golangci/golangci-lint-action.git
synced 2026-04-24 20:48:51 +00:00
fix: out-format (#770)
This commit is contained in:
parent
c57cc43669
commit
569abaa281
3 changed files with 6 additions and 3 deletions
|
|
@ -118,7 +118,7 @@ async function runLint(lintPath: string, patchPath: string): Promise<void> {
|
|||
printOutput(res)
|
||||
}
|
||||
|
||||
const userArgs = core.getInput(`args`)
|
||||
let userArgs = core.getInput(`args`)
|
||||
const addedArgs: string[] = []
|
||||
|
||||
const userArgsList = userArgs
|
||||
|
|
@ -141,6 +141,7 @@ async function runLint(lintPath: string, patchPath: string): Promise<void> {
|
|||
.join(",")
|
||||
|
||||
addedArgs.push(`--out-format=${formats}`)
|
||||
userArgs = userArgs.replace(/--out-format=\S*/gi, "").trim()
|
||||
|
||||
if (patchPath) {
|
||||
if (userArgNames.has(`new`) || userArgNames.has(`new-from-rev`) || userArgNames.has(`new-from-patch`)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue