Skip to content

Commit

Permalink
fix: Lint maintidx and gocognit in upload.go
Browse files Browse the repository at this point in the history
  • Loading branch information
030 committed Dec 28, 2024
1 parent 7eaceb9 commit e3503b2
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,21 @@ issues:
- linters:
- gocognit
path: internal/app/n3dr/artifactsv2/upload/upload.go
text: "cognitive complexity 71"
text: >-
cognitive complexity 91 of func `\(\*Nexus3\).UploadSingleArtifact` is
high
- linters:
- gocognit
path: internal/app/n3dr/artifactsv2/upload/upload.go
text: cognitive complexity 55 of func `UploadSingleArtifact` is high
text: >-
cognitive complexity 38 of func
`\(artifactFiles\).mavenJarAndOtherExtensions` is high
- linters:
- gocyclo
path: internal/app/n3dr/artifactsv2/upload/upload.go
text: "cyclomatic complexity 38"
text: >-
cyclomatic complexity 46 of func `\(\*Nexus3\).UploadSingleArtifact`
is high
- linters:
- funlen
path: internal/app/n3dr/artifactsv2/upload/upload.go
Expand All @@ -60,7 +66,9 @@ issues:
- linters:
- maintidx
path: internal/app/n3dr/artifactsv2/upload/upload.go
text: "Cyclomatic Complexity: 38"
text: >-
Function name: UploadSingleArtifact, Cyclomatic Complexity: 46,
Halstead Volume: 7485.94, Maintainability Index: 14
linters:
enable-all: true
disable:
Expand Down

0 comments on commit e3503b2

Please sign in to comment.