davidlukac / go-pleasant-cli

CLI Client for Pleasant, mainly Password Server, written in GoLang.
Apache License 2.0
1 stars 0 forks source link

Clean up all linter issues #31

Open davidlukac opened 3 years ago

davidlukac commented 3 years ago
$ find . -type f -name "*.go" -printf %h\\n | uniq | xargs golint
cmd/pleasant/commands/create_entry.go:33:5: exported var UsernameFlag should have comment or be unexported
cmd/pleasant/commands/create_entry.go:34:5: exported var ParentFlag should have comment or be unexported
cmd/pleasant/commands/create_entry.go:35:5: exported var ParentIsPathFlag should have comment or be unexported
cmd/pleasant/commands/create_entry.go:36:5: exported var RandomPasswordFlag should have comment or be unexported
cmd/pleasant/commands/create_entry.go:51:7: var parentId should be parentID
cmd/pleasant/commands/create_entry.go:56:3: var rootId should be rootID
cmd/pleasant/commands/create_entry.go:77:4: var entryId should be entryID
cmd/pleasant/commands/create_folder.go:43:3: var lastFolderId should be lastFolderID
cmd/pleasant/commands/get_entry.go:28:5: exported var LinkToEntryFlag should have comment or be unexported
cmd/pleasant/commands/get_folder.go:29:5: exported var FromPathFlag should have comment or be unexported
cmd/pleasant/commands/get_folder.go:30:5: exported var JustFolderIdFlag should have comment or be unexported
cmd/pleasant/commands/get_folder.go:30:5: var JustFolderIdFlag should be JustFolderIDFlag
cmd/pleasant/commands/get_folder.go:46:4: var rootFolderId should be rootFolderID
cmd/pleasant/commands/get_folder.go:52:5: var folderId should be folderID
cmd/pleasant/commands/patch_entry.go:28:5: exported var JsonFlag should have comment or be unexported
cmd/pleasant/commands/patch_entry.go:28:5: var JsonFlag should be JSONFlag
cmd/pleasant/commands/patch_entry.go:29:5: exported var FromKubernetesOpaqueSecretYamlPathFlag should have comment or be unexported
cmd/pleasant/commands/patch_entry.go:30:5: exported var RandomizeFlag should have comment or be unexported
cmd/pleasant/commands/patch_entry.go:31:5: exported var UpdateKubernetesOpaqueSecretYamlFileFlag should have comment or be unexported
cmd/pleasant/commands/patch_entry.go:32:5: exported var EntryIsPathNameFolder should have comment or be unexported
internal/entryRepository.go:10:1: comment on exported function GetEntry should be of the form "GetEntry ..."
internal/entryRepository.go:26:1: comment on exported function CreateEntry should be of the form "CreateEntry ..."
internal/entryRepository.go:35:37: func parameter parentId should be parentID
internal/entryRepository.go:49:6: func GetEntryIdByName should be GetEntryIDByName
internal/entryRepository.go:49:36: func parameter parentId should be parentID
internal/entryRepository.go:84:6: func GetEntryIdForPath should be GetEntryIDForPath
internal/entryRepository.go:100:2: var parentId should be parentID
internal/entryRepository.go:105:2: var entryId should be entryID
internal/folderRepository.go:12:1: comment on exported function GetRoot should be of the form "GetRoot ..."
internal/folderRepository.go:21:39: func parameter parentId should be parentID
internal/folderRepository.go:34:11: if block ends with a return statement, so drop this else and outdent its block
internal/folderRepository.go:43:1: comment on exported function GetFolder should be of the form "GetFolder ..."
internal/folderRepository.go:45:29: func parameter parentId should be parentID
internal/folderRepository.go:63:1: exported function GetFolderForId should have comment or be unexported
internal/folderRepository.go:63:6: func GetFolderForId should be GetFolderForID
internal/folderRepository.go:69:1: comment on exported function CreateFolders should be of the form "CreateFolders ..."
internal/folderRepository.go:71:40: func parameter parentId should be parentID
internal/folderRepository.go:73:6: var folderId should be folderID
internal/folderRepository.go:101:6: func GetFolderIdFromPath should be GetFolderIDFromPath
internal/folderRepository.go:102:2: var rootId should be rootID
internal/folderRepository.go:109:2: var parentId should be parentID
internal/folderRepository.go:138:9: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...)
internal/kubeObjectsRepository.go:1:1: package comment should be of the form "Package internal ..."
internal/kubeObjectsRepository.go:14:6: exported type Metadata should have comment or be unexported
internal/kubeObjectsRepository.go:18:6: exported type KubernetesOpaqueSecret should have comment or be unexported
internal/secretRepository.go:11:7: exported const RandomToken should have comment or be unexported
internal/secretRepository.go:12:7: exported const ReferenceQueryStartToken should have comment or be unexported
internal/secretRepository.go:13:7: exported const ReferenceQueryEndToken should have comment or be unexported
internal/secretRepository.go:75:9: if block ends with a return statement, so drop this else and outdent its block
internal/vaultFactory.go:8:7: const PasswordServerUrl should be PasswordServerURL
internal/vaultFactory.go:8:7: exported const PasswordServerUrl should have comment or be unexported
internal/vaultFactory.go:9:7: exported const PasswordServerUsername should have comment or be unexported
internal/vaultFactory.go:10:7: exported const PasswordServerPassword should have comment or be unexported
internal/vaultFactory.go:12:1: exported function GetVault should have comment or be unexported