github.com/cloudfoundry-community/cloudfoundry-cli@v6.44.1-0.20240130060226-cda5ed8e89a5+incompatible/.golangci.json (about) 1 { 2 "run":{ 3 "concurrency": 4, 4 "deadline": "3m", 5 "build-tags": ["V7"], 6 "skip-dirs": [ 7 "^cf", 8 "^ci", 9 "^doc", 10 "^fixtures", 11 "^i18n", 12 "^plugin", 13 "^vendor", 14 "^actor/cfnetworkingaction", 15 "^actor/pluginaction", 16 "^actor/pushaction", 17 "^actor/v2.*", 18 "^actor/v3.*", 19 "^api/cloudcontroller/ccv2", 20 "^api/plugin", 21 "^api/router", 22 "^command/plugin", 23 "^command/v6", 24 "^integration/assets", 25 "^integration/v6", 26 "^util/generic", 27 "^util/manifest", 28 ".*fake.*" 29 ], 30 "skip-files": [ 31 "command/v7/shared/noaa_debug_printer.go", 32 "integration/helpers/fake_server.go" 33 ] 34 }, 35 "linters":{ 36 "disable-all": true, 37 "enable": [ 38 "errcheck", 39 "unused", 40 "gosimple", 41 "structcheck", 42 "varcheck", 43 "ineffassign", 44 "deadcode", 45 "typecheck", 46 "interfacer", 47 "goconst", 48 "unconvert", 49 "depguard", 50 "misspell", 51 "gochecknoinits", 52 "gocritic", 53 "staticcheck" 54 ] 55 }, 56 "linters-settings": { 57 "errcheck":{ 58 "check-blank": true 59 }, 60 "goconst":{ 61 "min-len": "2", 62 "min-occurrences": 3 63 }, 64 "misspell": { 65 "locale": "US" 66 } 67 }, 68 "issues":{ 69 "max-same-issue": 0, 70 "exclude":[ 71 "Error return value of `client.GetApplicationTasks` is not checked", 72 "Error return value of `logger.output.Stop` is not checked", 73 "Error return value of `request.ResetBody` is not checked", 74 "Error return value of `GinkgoWriter.Write` is not checked", 75 "Error return value of `c.terminalHelper.RestoreTerminal` is not checked", 76 77 "U1000: field `allproxy` is unused", 78 "U1000: field `dockerPassword` is unused", 79 "U1000: field `envCFStagingTimeout` is unused", 80 "U1000: field `envCFStartupTimeout` is unused", 81 "U1000: field `relatedCommands` is unused", 82 "U1000: field `usage` is unused", 83 84 "`allproxy` is unused", 85 "`dockerPassword` is unused", 86 "`envCFStagingTimeout` is unused", 87 "`envCFStartupTimeout` is unused", 88 "`relatedCommands` is unused", 89 "`usage` is unused" 90 ], 91 "exclude-rules":[ 92 { 93 "path": "_test.go", 94 "linters": [ 95 "goconst" 96 ] 97 } 98 ] 99 } 100 }