Skip to content

Commit

Permalink
be more permissive with the cyclomatic complexity linter (16)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabotechs committed Feb 10, 2024
1 parent 2241819 commit 80a193d
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ linters-settings:
min-len: 2
min-occurrences: 2
gocyclo:
min-complexity: 15
min-complexity: 16
godot:
check-all: true
goimports:
Expand Down
1 change: 0 additions & 1 deletion internal/js/exports.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (

type ExportsCacheKey string

//nolint:gocyclo
func (l *Language) ParseExports(file *language.FileInfo) (*language.ExportsEntries, error) {
exports := make([]language.ExportEntry, 0)
var errors []error
Expand Down
1 change: 0 additions & 1 deletion internal/language/exports.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ type ExportsResult struct {
Errors []error
}

//nolint:gocyclo
func (p *Parser) parseExports(
id string,
unwrappedExports bool,
Expand Down
1 change: 0 additions & 1 deletion internal/language/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ func (p *Parser) Node(id string) (*graph.Node[*FileInfo], error) {
return graph.MakeNode(id, file), nil
}

//nolint:gocyclo
func (p *Parser) Deps(n *graph.Node[*FileInfo]) ([]*graph.Node[*FileInfo], error) {
imports, err := p.gatherImportsFromFile(n.Id)
if err != nil {
Expand Down

0 comments on commit 80a193d

Please sign in to comment.