mirror of
https://github.com/golangci/golangci-lint-action.git
synced 2025-12-16 07:28:27 +00:00
Fix prettier
This commit is contained in:
parent
2f20c9f84f
commit
df6d36606f
4 changed files with 11 additions and 10 deletions
6
package-lock.json
generated
6
package-lock.json
generated
|
|
@ -1445,9 +1445,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lodash": {
|
"lodash": {
|
||||||
"version": "4.17.15",
|
"version": "4.17.19",
|
||||||
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz",
|
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.19.tgz",
|
||||||
"integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==",
|
"integrity": "sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"lodash.get": {
|
"lodash.get": {
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,8 @@ function checksumFile(hashName: string, path: string): Promise<string> {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
const hash = crypto.createHash(hashName)
|
const hash = crypto.createHash(hashName)
|
||||||
const stream = fs.createReadStream(path)
|
const stream = fs.createReadStream(path)
|
||||||
stream.on("error", err => reject(err))
|
stream.on("error", (err) => reject(err))
|
||||||
stream.on("data", chunk => hash.update(chunk))
|
stream.on("data", (chunk) => hash.update(chunk))
|
||||||
stream.on("end", () => resolve(hash.digest("hex")))
|
stream.on("end", () => resolve(hash.digest("hex")))
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -125,9 +125,9 @@ async function runLint(lintPath: string, patchPath: string): Promise<void> {
|
||||||
const userArgNames = new Set<string>()
|
const userArgNames = new Set<string>()
|
||||||
userArgs
|
userArgs
|
||||||
.split(/\s/)
|
.split(/\s/)
|
||||||
.map(arg => arg.split(`=`)[0])
|
.map((arg) => arg.split(`=`)[0])
|
||||||
.filter(arg => arg.startsWith(`-`))
|
.filter((arg) => arg.startsWith(`-`))
|
||||||
.forEach(arg => {
|
.forEach((arg) => {
|
||||||
userArgNames.add(arg.replace(`-`, ``))
|
userArgNames.add(arg.replace(`-`, ``))
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -118,8 +118,9 @@ export async function findLintVersion(): Promise<VersionConfig> {
|
||||||
}
|
}
|
||||||
|
|
||||||
core.info(
|
core.info(
|
||||||
`Requested golangci-lint '${stringifyVersion(reqLintVersion)}', using '${versionConfig.TargetVersion}', calculation took ${Date.now() -
|
`Requested golangci-lint '${stringifyVersion(reqLintVersion)}', using '${versionConfig.TargetVersion}', calculation took ${
|
||||||
startedAt}ms`
|
Date.now() - startedAt
|
||||||
|
}ms`
|
||||||
)
|
)
|
||||||
return versionConfig
|
return versionConfig
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue