n3dr icon indicating copy to clipboard operation
n3dr copied to clipboard

nestif

Open 030 opened this issue 3 years ago • 2 comments

What happened:

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Environment:

  • nexus version:
  • n3dr version (use n3dr -v):
  • OS (e.g: cat /etc/os-release):
  • Kernel (e.g. uname -a):
  • Others:

030 avatar Dec 30 '22 16:12 030

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 21 '23 01:01 stale[bot]

  Error: internal/app/n3dr/artifactsv2/download.go:30:2: `if checksum != downloadedFileChecksum` has complex nested blocks (complexity: 9) (nestif)
  	if checksum != downloadedFileChecksum {
  	^
  Error: internal/app/n3dr/artifactsv2/download.go:210:3: `if repo.Format == "docker"` has complex nested blocks (complexity: 5) (nestif)
  		if repo.Format == "docker" {
  		^
  Error: internal/app/n3dr/artifactsv2/upload/upload.go:393:3: `if err == nil` has complex nested blocks (complexity: 21) (nestif)
  		if _, err := os.Stat(filePathPom); err == nil {
  		^
  Error: internal/app/n3dr/artifactsv2/upload/upload.go:143:2: `if re.MatchString(path)` has complex nested blocks (complexity: 8) (nestif)
  	if re.MatchString(path) {
  	^
  Error: internal/app/n3dr/artifactsv2/upload/upload.go:696:2: `if strings.EqualFold(vp, "snapshot")` has complex nested blocks (complexity: 7) (nestif)
  	if strings.EqualFold(vp, "snapshot") {
  	^
  Error: internal/app/n3dr/artifactsv2/upload/upload.go:613:2: `if err != nil` has complex nested blocks (complexity: 5) (nestif)
  	if err != nil {
  	^
  Error: cmd/n3dr/root.go:174:2: `if !anonymous` has complex nested blocks (complexity: 6) (nestif)
  	if !anonymous {

030 avatar Apr 21 '24 13:04 030