Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-palyanitsa authored and IKukhta committed Jan 27, 2025
1 parent 1d6dabf commit 59c2397
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ func (p *Parser) MustParse(input string) Expression {
return expr
}

//nolint:funlen,gocyclo,gocognit // func implements an alg with well-defined concrete purpose, so high cyclomatic complexity is ok here
//nolint:funlen,gocognit // func implements an alg with well-defined concrete purpose, so high cyclomatic complexity is ok here
func (p *Parser) parseExpression(s string, params parserParams) (Expression, error) {
if !strings.HasPrefix(s, "cti.") {
return emptyExpression, ErrNotExpression
Expand Down Expand Up @@ -403,7 +403,7 @@ func (p *Parser) parseVendorOrPackage(s string) (identifier string, tail string,
return val, s[i:], nil
}

//nolint:funlen,gocyclo,gocognit // func implements an alg with well-defined concrete purpose, so high cyclomatic complexity is ok here
//nolint:funlen,gocyclo,gocognit,cyclop // func implements an alg with well-defined concrete purpose, so high cyclomatic complexity is ok here
func (p *Parser) parseEntityNameAndVersion(s string) (name EntityName, ver Version, tail string, err error) {
if s == "" {
return "", Version{}, s, fmt.Errorf(`entity name cannot be empty`)
Expand Down

0 comments on commit 59c2397

Please sign in to comment.