Skip to content

Commit d9c61c1

Browse files
authored
fix: running revive in CI (#1205)
* fix: running revive in CI * fix line-length-limit issue
1 parent 1117372 commit d9c61c1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/lint.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ jobs:
1818
uses: morphy2k/revive-action@v2
1919
with:
2020
config: revive.toml
21+
path: ./...

rule/string_format.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ func (w *lintStringFormatRule) parseArgument(argument any, ruleNum int) (scopes
143143
return stringFormatSubruleScopes{}, regex, false, "", w.parseScopeError("unable to parse rule scope", ruleNum, 0, scopeNum)
144144
} else if len(matches) != 4 {
145145
// The rule's scope matched the parsing regex, but an unexpected number of submatches was returned, probably a bug
146-
return stringFormatSubruleScopes{}, regex, false, "", w.parseScopeError(fmt.Sprintf("unexpected number of submatches when parsing scope: %d, expected 4", len(matches)), ruleNum, 0, scopeNum)
146+
return stringFormatSubruleScopes{}, regex, false, "",
147+
w.parseScopeError(fmt.Sprintf("unexpected number of submatches when parsing scope: %d, expected 4", len(matches)), ruleNum, 0, scopeNum)
147148
}
148149
scope.funcName = matches[1]
149150
if len(matches[2]) > 0 {

0 commit comments

Comments
 (0)