Skip to content

Commit

Permalink
address revive linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
funkyshu committed Jul 21, 2023
1 parent 5dd1bcd commit 3b5f0f4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
2 changes: 0 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ linters-settings:
min-complexity: 20
goimports:
local-prefixes: github.com/golangci/golangci-lint
golint:
min-confidence: 0
gomnd:
settings:
mnd:
Expand Down
14 changes: 7 additions & 7 deletions expressions.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func COALESCE(vals ...interface{}) exp.SQLFunctionExpression {
return Func("COALESCE", vals...)
}

//nolint:stylecheck,golint // sql function name
//nolint:stylecheck,revive // sql function name
func ROW_NUMBER() exp.SQLFunctionExpression {
return Func("ROW_NUMBER")
}
Expand All @@ -142,17 +142,17 @@ func RANK() exp.SQLFunctionExpression {
return Func("RANK")
}

//nolint:stylecheck,golint // sql function name
//nolint:stylecheck,revive // sql function name
func DENSE_RANK() exp.SQLFunctionExpression {
return Func("DENSE_RANK")
}

//nolint:stylecheck,golint // sql function name
//nolint:stylecheck,revive // sql function name
func PERCENT_RANK() exp.SQLFunctionExpression {
return Func("PERCENT_RANK")
}

//nolint:stylecheck,golint //sql function name
//nolint:stylecheck,revive //sql function name
func CUME_DIST() exp.SQLFunctionExpression {
return Func("CUME_DIST")
}
Expand All @@ -161,17 +161,17 @@ func NTILE(n int) exp.SQLFunctionExpression {
return Func("NTILE", n)
}

//nolint:stylecheck,golint //sql function name
//nolint:stylecheck,revive //sql function name
func FIRST_VALUE(val interface{}) exp.SQLFunctionExpression {
return newIdentifierFunc("FIRST_VALUE", val)
}

//nolint:stylecheck,golint //sql function name
//nolint:stylecheck,revive //sql function name
func LAST_VALUE(val interface{}) exp.SQLFunctionExpression {
return newIdentifierFunc("LAST_VALUE", val)
}

//nolint:stylecheck,golint //sql function name
//nolint:stylecheck,revive //sql function name
func NTH_VALUE(val interface{}, nth int) exp.SQLFunctionExpression {
if s, ok := val.(string); ok {
val = I(s)
Expand Down
2 changes: 1 addition & 1 deletion issues_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type githubIssuesSuite struct {
suite.Suite
}

func (gis *githubIssuesSuite) AfterTest(suiteName, testName string) {
func (gis *githubIssuesSuite) AfterTest(_, _ string) {
goqu.SetColumnRenameFunction(strings.ToLower)
}

Expand Down

0 comments on commit 3b5f0f4

Please sign in to comment.