id: 1 unit: func editRun() file: main.go start line: 722 end line: 874 size: 127 LOC McCabe index: 25 number of parameters: 2 id: 2 unit: func() file: pkg/berglas/update.go start line: 199 end line: 339 size: 111 LOC McCabe index: 18 number of parameters: 1 id: 3 unit: func() file: pkg/berglas/bootstrap.go start line: 102 end line: 225 size: 104 LOC McCabe index: 15 number of parameters: 1 id: 4 unit: func main() file: main.go start line: 413 end line: 518 size: 89 LOC McCabe index: 8 number of parameters: 0 id: 5 unit: func() file: pkg/berglas/delete.go start line: 120 end line: 226 size: 88 LOC McCabe index: 15 number of parameters: 1 id: 6 unit: func() file: pkg/berglas/read.go start line: 170 end line: 282 size: 88 LOC McCabe index: 17 number of parameters: 1 id: 7 unit: func() file: pkg/berglas/writer.go start line: 30 end line: 130 size: 75 LOC McCabe index: 12 number of parameters: 1 id: 8 unit: func() file: pkg/berglas/list.go start line: 125 end line: 209 size: 72 LOC McCabe index: 11 number of parameters: 1 id: 9 unit: func() file: pkg/berglas/create.go start line: 106 end line: 190 size: 72 LOC McCabe index: 10 number of parameters: 1 id: 10 unit: func() file: pkg/berglas/update.go start line: 113 end line: 197 size: 71 LOC McCabe index: 12 number of parameters: 1 id: 11 unit: func() file: pkg/berglas/list.go start line: 211 end line: 290 size: 62 LOC McCabe index: 12 number of parameters: 1 id: 12 unit: func() file: pkg/berglas/revoke.go start line: 143 end line: 215 size: 58 LOC McCabe index: 12 number of parameters: 1 id: 13 unit: func() file: pkg/berglas/grant.go start line: 143 end line: 215 size: 58 LOC McCabe index: 12 number of parameters: 1 id: 14 unit: func() file: pkg/berglas/read.go start line: 101 end line: 168 size: 57 LOC McCabe index: 10 number of parameters: 1 id: 15 unit: func() file: pkg/berglas/resolver.go start line: 41 end line: 106 size: 53 LOC McCabe index: 12 number of parameters: 1 id: 16 unit: func listRun() file: main.go start line: 961 end line: 1017 size: 50 LOC McCabe index: 9 number of parameters: 2 id: 17 unit: func createRun() file: main.go start line: 629 end line: 683 size: 47 LOC McCabe index: 9 number of parameters: 2 id: 18 unit: func updateRun() file: main.go start line: 1109 end line: 1159 size: 47 LOC McCabe index: 9 number of parameters: 2 id: 19 unit: func migrateRun() file: main.go start line: 1019 end line: 1066 size: 40 LOC McCabe index: 7 number of parameters: 2 id: 20 unit: func accessRun() file: main.go start line: 520 end line: 562 size: 38 LOC McCabe index: 8 number of parameters: 2 id: 21 unit: func() file: pkg/berglas/revoke.go start line: 97 end line: 141 size: 37 LOC McCabe index: 8 number of parameters: 1 id: 22 unit: func() file: pkg/berglas/grant.go start line: 97 end line: 141 size: 37 LOC McCabe index: 8 number of parameters: 1 id: 23 unit: func grantRun() file: main.go start line: 920 end line: 959 size: 36 LOC McCabe index: 7 number of parameters: 2 id: 24 unit: func revokeRun() file: main.go start line: 1068 end line: 1107 size: 36 LOC McCabe index: 7 number of parameters: 2 id: 25 unit: func init() file: pkg/auto/importer.go start line: 43 end line: 83 size: 35 LOC McCabe index: 8 number of parameters: 0 id: 26 unit: func bootstrapRun() file: main.go start line: 564 end line: 601 size: 35 LOC McCabe index: 3 number of parameters: 2 id: 27 unit: func deleteRun() file: main.go start line: 685 end line: 720 size: 33 LOC McCabe index: 7 number of parameters: 2 id: 28 unit: func execRun() file: main.go start line: 876 end line: 918 size: 33 LOC McCabe index: 8 number of parameters: 2 id: 29 unit: func() file: pkg/berglas/access.go start line: 93 end line: 130 size: 32 LOC McCabe index: 7 number of parameters: 1 id: 30 unit: func cloudLoggingAttrsEncoder() file: pkg/berglas/logging/logging.go start line: 128 end line: 171 size: 30 LOC McCabe index: 6 number of parameters: 0 id: 31 unit: func() file: pkg/berglas/access.go start line: 132 end line: 166 size: 30 LOC McCabe index: 5 number of parameters: 1 id: 32 unit: func() file: pkg/berglas/create.go start line: 192 end line: 227 size: 30 LOC McCabe index: 6 number of parameters: 1 id: 33 unit: func secretManagerParseReference() file: pkg/berglas/reference.go start line: 159 end line: 195 size: 26 LOC McCabe index: 6 number of parameters: 1 id: 34 unit: func storageParseReference() file: pkg/berglas/reference.go start line: 197 end line: 233 size: 26 LOC McCabe index: 6 number of parameters: 1 id: 35 unit: func() file: pkg/berglas/delete.go start line: 90 end line: 118 size: 25 LOC McCabe index: 6 number of parameters: 1 id: 36 unit: func New() file: pkg/berglas/logging/logging.go start line: 60 end line: 90 size: 25 LOC McCabe index: 6 number of parameters: 4 id: 37 unit: func New() file: pkg/berglas/berglas.go start line: 65 end line: 95 size: 25 LOC McCabe index: 5 number of parameters: 2 id: 38 unit: func completionRun() file: main.go start line: 603 end line: 627 size: 22 LOC McCabe index: 6 number of parameters: 2 id: 39 unit: func LookupLevel() file: pkg/berglas/logging/levels.go start line: 70 end line: 89 size: 20 LOC McCabe index: 8 number of parameters: 1 id: 40 unit: func envelopeDecrypt() file: pkg/berglas/berglas.go start line: 167 end line: 189 size: 20 LOC McCabe index: 5 number of parameters: 2 id: 41 unit: func envelopeEncrypt() file: pkg/berglas/berglas.go start line: 193 end line: 219 size: 20 LOC McCabe index: 5 number of parameters: 1 id: 42 unit: func readData() file: main.go start line: 1213 end line: 1232 size: 20 LOC McCabe index: 6 number of parameters: 1 id: 43 unit: func LevelSlogValue() file: pkg/berglas/logging/levels.go start line: 92 end line: 109 size: 18 LOC McCabe index: 7 number of parameters: 1 id: 44 unit: func LevelString() file: pkg/berglas/logging/levels.go start line: 114 end line: 131 size: 18 LOC McCabe index: 7 number of parameters: 1 id: 45 unit: func() file: pkg/berglas/reference.go start line: 106 end line: 123 size: 18 LOC McCabe index: 5 number of parameters: 1 id: 46 unit: func() file: pkg/berglas/replace.go start line: 25 end line: 45 size: 17 LOC McCabe index: 3 number of parameters: 1 id: 47 unit: func refExtractFilepath() file: pkg/berglas/reference.go start line: 235 end line: 253 size: 17 LOC McCabe index: 4 number of parameters: 2 id: 48 unit: func iamRetry() file: pkg/berglas/iam_storage.go start line: 200 end line: 221 size: 16 LOC McCabe index: 7 number of parameters: 2 id: 49 unit: func humanDuration() file: pkg/berglas/logging/logging.go start line: 175 end line: 190 size: 14 LOC McCabe index: 4 number of parameters: 1 id: 50 unit: func getIAMPolicy() file: pkg/berglas/iam_storage.go start line: 159 end line: 174 size: 14 LOC McCabe index: 3 number of parameters: 2 id: 51 unit: func parseRef() file: main.go start line: 1235 end line: 1253 size: 14 LOC McCabe index: 4 number of parameters: 1 id: 52 unit: func() file: pkg/berglas/delete.go start line: 75 end line: 88 size: 13 LOC McCabe index: 4 number of parameters: 1 id: 53 unit: func() file: pkg/berglas/revoke.go start line: 82 end line: 95 size: 13 LOC McCabe index: 4 number of parameters: 1 id: 54 unit: func() file: pkg/berglas/grant.go start line: 82 end line: 95 size: 13 LOC McCabe index: 4 number of parameters: 1 id: 55 unit: func() file: pkg/berglas/read.go start line: 86 end line: 99 size: 13 LOC McCabe index: 4 number of parameters: 1 id: 56 unit: func() file: pkg/berglas/list.go start line: 110 end line: 123 size: 13 LOC McCabe index: 4 number of parameters: 1 id: 57 unit: func() file: pkg/berglas/access.go start line: 78 end line: 91 size: 13 LOC McCabe index: 4 number of parameters: 1 id: 58 unit: func() file: pkg/berglas/bootstrap.go start line: 83 end line: 96 size: 13 LOC McCabe index: 4 number of parameters: 1 id: 59 unit: func() file: pkg/berglas/create.go start line: 91 end line: 104 size: 13 LOC McCabe index: 4 number of parameters: 1 id: 60 unit: func() file: pkg/berglas/update.go start line: 98 end line: 111 size: 13 LOC McCabe index: 4 number of parameters: 1 id: 61 unit: func() file: pkg/berglas/iam_storage.go start line: 56 end line: 71 size: 13 LOC McCabe index: 3 number of parameters: 1 id: 62 unit: func() file: pkg/berglas/iam_storage.go start line: 73 end line: 87 size: 13 LOC McCabe index: 3 number of parameters: 1 id: 63 unit: func() file: pkg/berglas/iam_storage.go start line: 89 end line: 103 size: 13 LOC McCabe index: 3 number of parameters: 1 id: 64 unit: func updateIAMPolicy() file: pkg/berglas/iam_storage.go start line: 179 end line: 196 size: 13 LOC McCabe index: 3 number of parameters: 3 id: 65 unit: func LookupFormat() file: pkg/berglas/logging/formats.go start line: 49 end line: 60 size: 12 LOC McCabe index: 4 number of parameters: 1 id: 66 unit: func ParseReference() file: pkg/berglas/reference.go start line: 145 end line: 157 size: 12 LOC McCabe index: 3 number of parameters: 1 id: 67 unit: func clientWithContext() file: main.go start line: 1195 end line: 1207 size: 12 LOC McCabe index: 3 number of parameters: 1 id: 68 unit: func NewLevelHandler() file: pkg/berglas/logging/handler.go start line: 44 end line: 58 size: 11 LOC McCabe index: 2 number of parameters: 2 id: 69 unit: func secretFromAttrs() file: pkg/berglas/berglas.go start line: 130 end line: 140 size: 11 LOC McCabe index: 1 number of parameters: 3 id: 70 unit: func() file: pkg/berglas/iam_secretmanager.go start line: 64 end line: 73 size: 10 LOC McCabe index: 2 number of parameters: 1 id: 71 unit: func iamToStorageBindings() file: pkg/berglas/iam_storage.go start line: 124 end line: 133 size: 10 LOC McCabe index: 2 number of parameters: 1 id: 72 unit: func iamFromStorageBindings() file: pkg/berglas/iam_storage.go start line: 142 end line: 151 size: 10 LOC McCabe index: 2 number of parameters: 1 id: 73 unit: func() file: pkg/berglas/list.go start line: 83 end line: 91 size: 9 LOC McCabe index: 3 number of parameters: 1 id: 74 unit: func() file: pkg/berglas/iam_secretmanager.go start line: 47 end line: 54 size: 8 LOC McCabe index: 1 number of parameters: 1 id: 75 unit: func parseBucketObj() file: pkg/berglas/iam_storage.go start line: 106 end line: 115 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 76 unit: func Delete() file: pkg/berglas/delete.go start line: 64 end line: 70 size: 7 LOC McCabe index: 2 number of parameters: 2 id: 77 unit: func Resolve() file: pkg/berglas/resolver.go start line: 31 end line: 37 size: 7 LOC McCabe index: 2 number of parameters: 2 id: 78 unit: func Revoke() file: pkg/berglas/revoke.go start line: 72 end line: 78 size: 7 LOC McCabe index: 2 number of parameters: 2 id: 79 unit: func Grant() file: pkg/berglas/grant.go start line: 72 end line: 78 size: 7 LOC McCabe index: 2 number of parameters: 2 id: 80 unit: func SetLevel() file: pkg/berglas/logging/logging.go start line: 100 end line: 107 size: 7 LOC McCabe index: 2 number of parameters: 2 id: 81 unit: func Read() file: pkg/berglas/read.go start line: 75 end line: 81 size: 7 LOC McCabe index: 2 number of parameters: 2 id: 82 unit: func List() file: pkg/berglas/list.go start line: 100 end line: 106 size: 7 LOC McCabe index: 2 number of parameters: 2 id: 83 unit: func Replace() file: pkg/berglas/replace.go start line: 13 end line: 19 size: 7 LOC McCabe index: 2 number of parameters: 2 id: 84 unit: func Access() file: pkg/berglas/access.go start line: 67 end line: 73 size: 7 LOC McCabe index: 2 number of parameters: 2 id: 85 unit: func Bootstrap() file: pkg/berglas/bootstrap.go start line: 73 end line: 79 size: 7 LOC McCabe index: 2 number of parameters: 2 id: 86 unit: func isBucketAlreadyExistsError() file: pkg/berglas/bootstrap.go start line: 229 end line: 235 size: 7 LOC McCabe index: 3 number of parameters: 1 id: 87 unit: func() file: pkg/berglas/iam_secretmanager.go start line: 56 end line: 62 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 88 unit: func Create() file: pkg/berglas/create.go start line: 77 end line: 83 size: 7 LOC McCabe index: 2 number of parameters: 2 id: 89 unit: func Update() file: pkg/berglas/update.go start line: 87 end line: 93 size: 7 LOC McCabe index: 2 number of parameters: 2 id: 90 unit: func kmsKeyTrimVersion() file: pkg/berglas/berglas.go start line: 156 end line: 163 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 91 unit: func handleError() file: pkg/auto/importer.go start line: 85 end line: 90 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 92 unit: func FromContext() file: pkg/berglas/logging/logging.go start line: 116 end line: 122 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 93 unit: func iamToStoragePolicy() file: pkg/berglas/iam_storage.go start line: 117 end line: 122 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 94 unit: func iamFromStoragePolicy() file: pkg/berglas/iam_storage.go start line: 135 end line: 140 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 95 unit: func timestampToTime() file: pkg/berglas/berglas.go start line: 142 end line: 147 size: 6 LOC McCabe index: 3 number of parameters: 1 id: 96 unit: func() file: main.go start line: 1168 end line: 1173 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 97 unit: func exitWithCode() file: main.go start line: 1176 end line: 1181 size: 6 LOC McCabe index: 1 number of parameters: 2 id: 98 unit: func valueOrFallback() file: internal/version/version.go start line: 52 end line: 57 size: 6 LOC McCabe index: 2 number of parameters: 2 id: 99 unit: func() file: pkg/berglas/iam_secretmanager.go start line: 32 end line: 36 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 100 unit: func() file: pkg/berglas/iam_storage.go start line: 41 end line: 45 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 101 unit: func() file: pkg/berglas/logging/handler.go start line: 62 end line: 64 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 102 unit: func() file: pkg/berglas/logging/handler.go start line: 68 end line: 70 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 103 unit: func() file: pkg/berglas/logging/handler.go start line: 73 end line: 75 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 104 unit: func() file: pkg/berglas/logging/handler.go start line: 78 end line: 80 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 105 unit: func() file: pkg/berglas/logging/handler.go start line: 83 end line: 85 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 106 unit: func() file: pkg/berglas/logging/handler.go start line: 88 end line: 90 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 107 unit: func FormatNames() file: pkg/berglas/logging/formats.go start line: 42 end line: 44 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 108 unit: func WithLogger() file: pkg/berglas/logging/logging.go start line: 110 end line: 112 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 109 unit: func LevelNames() file: pkg/berglas/logging/levels.go start line: 63 end line: 65 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 110 unit: func() file: pkg/berglas/list.go start line: 77 end line: 79 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 111 unit: func() file: pkg/berglas/list.go start line: 94 end line: 96 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 112 unit: func() file: pkg/berglas/bootstrap.go start line: 98 end line: 100 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 113 unit: func() file: pkg/berglas/errors.go start line: 34 end line: 36 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 114 unit: func IsSecretAlreadyExistsErr() file: pkg/berglas/errors.go start line: 40 end line: 42 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 115 unit: func IsSecretDoesNotExistErr() file: pkg/berglas/errors.go start line: 46 end line: 48 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 116 unit: func IsSecretModifiedErr() file: pkg/berglas/errors.go start line: 52 end line: 54 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 117 unit: func() file: pkg/berglas/iam_secretmanager.go start line: 43 end line: 45 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 118 unit: func() file: pkg/berglas/iam_storage.go start line: 52 end line: 54 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 119 unit: func setClientHeader() file: pkg/berglas/iam_storage.go start line: 153 end line: 155 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 120 unit: func() file: pkg/berglas/reference.go start line: 63 end line: 65 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 121 unit: func() file: pkg/berglas/reference.go start line: 69 end line: 71 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 122 unit: func() file: pkg/berglas/reference.go start line: 75 end line: 77 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 123 unit: func() file: pkg/berglas/reference.go start line: 81 end line: 83 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 124 unit: func() file: pkg/berglas/reference.go start line: 86 end line: 88 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 125 unit: func() file: pkg/berglas/reference.go start line: 91 end line: 93 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 126 unit: func() file: pkg/berglas/reference.go start line: 96 end line: 98 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 127 unit: func() file: pkg/berglas/reference.go start line: 101 end line: 103 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 128 unit: func IsReference() file: pkg/berglas/reference.go start line: 127 end line: 129 size: 3 LOC McCabe index: 2 number of parameters: 1 id: 129 unit: func IsStorageReference() file: pkg/berglas/reference.go start line: 133 end line: 135 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 130 unit: func IsSecretManagerReference() file: pkg/berglas/reference.go start line: 139 end line: 141 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 131 unit: func kmsKeyIncludesVersion() file: pkg/berglas/berglas.go start line: 151 end line: 153 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 132 unit: func apiError() file: main.go start line: 1184 end line: 1186 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 133 unit: func misuseError() file: main.go start line: 1189 end line: 1191 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 134 unit: func() file: pkg/berglas/delete.go start line: 44 end line: 44 size: 1 LOC McCabe index: 1 number of parameters: 1 id: 135 unit: func() file: pkg/berglas/delete.go start line: 60 end line: 60 size: 1 LOC McCabe index: 1 number of parameters: 1 id: 136 unit: func() file: pkg/berglas/revoke.go start line: 48 end line: 48 size: 1 LOC McCabe index: 1 number of parameters: 1 id: 137 unit: func() file: pkg/berglas/revoke.go start line: 68 end line: 68 size: 1 LOC McCabe index: 1 number of parameters: 1 id: 138 unit: func() file: pkg/berglas/grant.go start line: 48 end line: 48 size: 1 LOC McCabe index: 1 number of parameters: 1 id: 139 unit: func() file: pkg/berglas/grant.go start line: 68 end line: 68 size: 1 LOC McCabe index: 1 number of parameters: 1 id: 140 unit: func() file: pkg/berglas/read.go start line: 52 end line: 52 size: 1 LOC McCabe index: 1 number of parameters: 1 id: 141 unit: func() file: pkg/berglas/read.go start line: 71 end line: 71 size: 1 LOC McCabe index: 1 number of parameters: 1 id: 142 unit: func() file: pkg/berglas/list.go start line: 46 end line: 46 size: 1 LOC McCabe index: 1 number of parameters: 1 id: 143 unit: func() file: pkg/berglas/list.go start line: 65 end line: 65 size: 1 LOC McCabe index: 1 number of parameters: 1 id: 144 unit: func() file: pkg/berglas/access.go start line: 44 end line: 44 size: 1 LOC McCabe index: 1 number of parameters: 1 id: 145 unit: func() file: pkg/berglas/access.go start line: 63 end line: 63 size: 1 LOC McCabe index: 1 number of parameters: 1 id: 146 unit: func() file: pkg/berglas/bootstrap.go start line: 59 end line: 59 size: 1 LOC McCabe index: 1 number of parameters: 1 id: 147 unit: func() file: pkg/berglas/bootstrap.go start line: 69 end line: 69 size: 1 LOC McCabe index: 1 number of parameters: 1 id: 148 unit: func() file: pkg/berglas/create.go start line: 49 end line: 49 size: 1 LOC McCabe index: 1 number of parameters: 1 id: 149 unit: func() file: pkg/berglas/create.go start line: 73 end line: 73 size: 1 LOC McCabe index: 1 number of parameters: 1 id: 150 unit: func() file: pkg/berglas/update.go start line: 61 end line: 61 size: 1 LOC McCabe index: 1 number of parameters: 1 id: 151 unit: func() file: pkg/berglas/update.go start line: 83 end line: 83 size: 1 LOC McCabe index: 1 number of parameters: 1