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 f594a98
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ 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

Check failure on line 43 in .golangci.yml

View workflow job for this annotation

GitHub Actions / yamllint

43:81 [line-length] line too long (87 > 80 characters)

Check failure on line 43 in .golangci.yml

View workflow job for this annotation

GitHub Actions / mcvs-docker-action

43:81 [line-length] line too long (87 > 80 characters)
- 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

Check failure on line 47 in .golangci.yml

View workflow job for this annotation

GitHub Actions / yamllint

47:81 [line-length] line too long (98 > 80 characters)

Check failure on line 47 in .golangci.yml

View workflow job for this annotation

GitHub Actions / mcvs-docker-action

47:81 [line-length] line too long (98 > 80 characters)
- linters:
- gocyclo
path: internal/app/n3dr/artifactsv2/upload/upload.go
text: "cyclomatic complexity 38"
text: cyclomatic complexity 46 of func `\(\*Nexus3\).UploadSingleArtifact` is high

Check failure on line 51 in .golangci.yml

View workflow job for this annotation

GitHub Actions / yamllint

51:81 [line-length] line too long (88 > 80 characters)

Check failure on line 51 in .golangci.yml

View workflow job for this annotation

GitHub Actions / mcvs-docker-action

51:81 [line-length] line too long (88 > 80 characters)
- linters:
- funlen
path: internal/app/n3dr/artifactsv2/upload/upload.go
Expand All @@ -60,7 +60,8 @@ 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

Check failure on line 64 in .golangci.yml

View workflow job for this annotation

GitHub Actions / yamllint

64:81 [line-length] line too long (123 > 80 characters)

Check failure on line 64 in .golangci.yml

View workflow job for this annotation

GitHub Actions / mcvs-docker-action

64:81 [line-length] line too long (123 > 80 characters)
linters:
enable-all: true
disable:
Expand Down

0 comments on commit f594a98

Please sign in to comment.