diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 850c70c43..3f22a974f 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -18,3 +18,4 @@ jobs: uses: morphy2k/revive-action@v2 with: config: revive.toml + path: ./... diff --git a/rule/string_format.go b/rule/string_format.go index 022d9cebf..a3beac43d 100644 --- a/rule/string_format.go +++ b/rule/string_format.go @@ -143,7 +143,8 @@ func (w *lintStringFormatRule) parseArgument(argument any, ruleNum int) (scopes return stringFormatSubruleScopes{}, regex, false, "", w.parseScopeError("unable to parse rule scope", ruleNum, 0, scopeNum) } else if len(matches) != 4 { // The rule's scope matched the parsing regex, but an unexpected number of submatches was returned, probably a bug - return stringFormatSubruleScopes{}, regex, false, "", w.parseScopeError(fmt.Sprintf("unexpected number of submatches when parsing scope: %d, expected 4", len(matches)), ruleNum, 0, scopeNum) + return stringFormatSubruleScopes{}, regex, false, "", + w.parseScopeError(fmt.Sprintf("unexpected number of submatches when parsing scope: %d, expected 4", len(matches)), ruleNum, 0, scopeNum) } scope.funcName = matches[1] if len(matches[2]) > 0 {