Skip to content

Commit

Permalink
Fixed linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
munir131 committed Feb 15, 2024
1 parent 14cd6ab commit b20585e
Show file tree
Hide file tree
Showing 49 changed files with 92 additions and 112 deletions.
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ require (
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.17 // indirect
github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b // indirect
github.com/miekg/dns v1.1.35 // indirect
github.com/mitchellh/mapstructure v1.1.2 // indirect
github.com/moby/sys/mount v0.2.0 // indirect
github.com/moby/sys/mountinfo v0.4.0 // indirect
Expand Down
4 changes: 1 addition & 3 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -643,9 +643,8 @@ github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182aff
github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b h1:j7+1HpAFS1zy5+Q4qx1fWh90gTKwiN4QCGoY9TWyyO4=
github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE=
github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg=
github.com/miekg/dns v1.1.26 h1:gPxPSwALAeHJSjarOs00QjVdV9QoBvc1D2ujQUr5BzU=
github.com/miekg/dns v1.1.26/go.mod h1:bPDLeHnStXmXAq1m/Ch/hvfNHr14JKNPMBo3VZKjuso=
github.com/miekg/dns v1.1.35 h1:oTfOaDH+mZkdcgdIjH6yBajRGtIwcwcaR+rt23ZSrJs=
github.com/miekg/dns v1.1.35/go.mod h1:KNUDUusw/aVsxyTYZM1oqvCicbwhgbNgztCETuNZ7xM=
github.com/mistifyio/go-zfs v2.1.2-0.20190413222219-f784269be439+incompatible/go.mod h1:8AuVvqP/mXw1px98n46wfvcGfQ4ci2FwoAjKYxuo3Z4=
github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc=
github.com/mitchellh/cli v1.1.0/go.mod h1:xcISNoH86gajksDmfB23e/pu+B+GeFRMYmoHXxx3xhI=
Expand Down Expand Up @@ -1199,7 +1198,6 @@ golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtn
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20191216052735-49a3e744a425/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
Expand Down
5 changes: 1 addition & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ func main() {
logger.SetLevel(defaultLogLevel)

// below commands don't require a tellerfile
//nolint
switch ctx.Command() {
case "version":
fmt.Printf("Teller %v\n", version)
Expand Down Expand Up @@ -231,9 +230,7 @@ func main() {
}
teller.Exec()

case "graph-drift <providers>":
fallthrough
case "graph-drift":
case "graph-drift <providers>", "graph-drift":
drifts := teller.Drift(CLI.GraphDrift.Providers)
if len(drifts) > 0 {
teller.Porcelain.PrintDrift(drifts)
Expand Down
3 changes: 1 addition & 2 deletions pkg/providers/ansible_vault.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ type AnsibleVault struct {
client AnsibleVaultClient
}

// nolint
func init() {
func init() { //nolint
metaInto := core.MetaInfo{
Description: "Ansible Vault",
Name: "ansible_vault",
Expand Down
3 changes: 1 addition & 2 deletions pkg/providers/aws_secretsmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ var defaultDeletionRecoveryWindowInDays int64 = 7

const versionSplit = ","

// nolint
func init() {
func init() { //nolint
metaInfo := core.MetaInfo{
Name: "aws_secretsmanager",
Description: "AWS Secrets Manager",
Expand Down
3 changes: 1 addition & 2 deletions pkg/providers/aws_ssm.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ type AWSSSM struct {

const awsssmName = "aws_ssm"

// nolint
func init() {
func init() { //nolint
metaInfo := core.MetaInfo{
Description: "AWS SSM (aka paramstore)",
Name: awsssmName,
Expand Down
3 changes: 1 addition & 2 deletions pkg/providers/azure_keyvault.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ type AzureKeyVault struct {

const azureName = "azure_keyvault"

// nolint
func init() {
func init() { //nolint
metaInfo := core.MetaInfo{
Description: "Azure Key Vault",
Name: azureName,
Expand Down
3 changes: 1 addition & 2 deletions pkg/providers/cloudflare_workers_kv.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ type Cloudflare struct {

const cloudFlareWorkersKVName = "cloudflare_workers_kv"

// nolint
func init() {
func init() { //nolint
metaInfo := core.MetaInfo{
Description: "Cloudflare Workers K/V",
Name: cloudFlareWorkersKVName,
Expand Down
3 changes: 1 addition & 2 deletions pkg/providers/cloudflare_workers_secrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ type CloudflareSecrets struct {

const CloudflareWorkersSecretName = "cloudflare_workers_secret"

// nolint
func init() {
func init() { //nolint
metaInfo := core.MetaInfo{
Description: "Cloudflare Workers Secrets",
Name: CloudflareWorkersSecretName,
Expand Down
3 changes: 1 addition & 2 deletions pkg/providers/consul.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ type Consul struct {

const consulName = "consul"

// nolint
func init() {
func init() { //nolint
metaInto := core.MetaInfo{
Description: "Consul",
Name: consulName,
Expand Down
3 changes: 1 addition & 2 deletions pkg/providers/cyberark_conjur.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ type CyberArkConjur struct {

const ConjurName = "cyberark_conjur"

// nolint
func init() {
func init() { //nolint
metaInfo := core.MetaInfo{
Description: "CyberArk Conjure",
Name: ConjurName,
Expand Down
3 changes: 1 addition & 2 deletions pkg/providers/doppler.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ type Doppler struct {

const DopplerName = "doppler"

// nolint
func init() {
func init() { //nolint
metaInfo := core.MetaInfo{
Description: "Doppler",
Name: DopplerName,
Expand Down
3 changes: 1 addition & 2 deletions pkg/providers/dotenv.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ type Dotenv struct {
logger logging.Logger
}

// nolint
func init() {
func init() { //nolint
metaInfo := core.MetaInfo{
Description: ".env",
Authentication: "",
Expand Down
3 changes: 1 addition & 2 deletions pkg/providers/etcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ type Etcd struct {

const EtcdName = "etcd"

// nolint
func init() {
func init() { //nolint
metaInfo := core.MetaInfo{
Description: "Etcd",
Name: EtcdName,
Expand Down
3 changes: 1 addition & 2 deletions pkg/providers/filesystem.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ type FileSystem struct {

const FileSystemName = "FileSystem"

// nolint
func init() {
func init() { //nolint
metaInfo := core.MetaInfo{
Description: "File system",
Name: FileSystemName,
Expand Down
3 changes: 1 addition & 2 deletions pkg/providers/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ type GitHub struct {
// NewGitHub create new GitHub provider
const GithubName = "GitHub"

// nolint
func init() {
func init() { //nolint
metaInfo := core.MetaInfo{
Description: "Github",
Authentication: "Requires `GITHUB_AUTH_TOKEN`",
Expand Down
3 changes: 1 addition & 2 deletions pkg/providers/google_secretmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ type GoogleSecretManager struct {

const GoogleSecretManagerName = "google_secretmanager"

// nolint
func init() {
func init() { //nolint
metaInfo := core.MetaInfo{
Description: "Google Secret Manager",
Name: GoogleSecretManagerName,
Expand Down
3 changes: 1 addition & 2 deletions pkg/providers/gopass.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ type Gopass struct {

const GoPassName = "gopass"

// nolint
func init() {
func init() { //nolint
metaInfo := core.MetaInfo{
Description: "Gopass",
Name: GoPassName,
Expand Down
3 changes: 1 addition & 2 deletions pkg/providers/hashicorp_vault.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ type HashicorpVault struct {

const HashicorpVaultName = "hashicorp_vault"

// nolint
func init() {
func init() { //nolint
metaInfo := core.MetaInfo{
Description: "Hashicorp Vault",
Name: HashicorpVaultName,
Expand Down
3 changes: 1 addition & 2 deletions pkg/providers/heroku.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ type Heroku struct {

const HerokuName = "heroku"

// nolint
func init() {
func init() { //nolint
metaInfo := core.MetaInfo{
Description: "Heroku",
Name: HerokuName,
Expand Down
7 changes: 3 additions & 4 deletions pkg/providers/keeper_secretsmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"strings"

ksm "github.com/keeper-security/secrets-manager-go/core"
"github.com/spectralops/teller/pkg/core"
"github.com/spectralops/teller/pkg/logging"
"github.com/tellerops/teller/pkg/core"
"github.com/tellerops/teller/pkg/logging"
)

type KsmClient interface {
Expand All @@ -24,8 +24,7 @@ type KeeperSecretsManager struct {

const keeperName = "keeper_secretsmanager"

//nolint
func init() {
func init() { //nolint
metaInto := core.MetaInfo{
Description: "Keeper Secrets Manager",
Name: keeperName,
Expand Down
4 changes: 2 additions & 2 deletions pkg/providers/keeper_secretsmanager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"github.com/alecthomas/assert"
"github.com/golang/mock/gomock"

"github.com/spectralops/teller/pkg/core"
"github.com/spectralops/teller/pkg/providers/mock_providers"
"github.com/tellerops/teller/pkg/core"
"github.com/tellerops/teller/pkg/providers/mock_providers"
)

func TestKeeperSecretsManager(t *testing.T) {
Expand Down
3 changes: 1 addition & 2 deletions pkg/providers/keypass.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ type KeyPass struct {

const KeyPassName = "KeyPass"

// nolint
func init() {
func init() { //nolint
metaInfo := core.MetaInfo{
Description: "Keypass",
Name: KeyPassName,
Expand Down
3 changes: 1 addition & 2 deletions pkg/providers/lastpass.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ type LastPass struct {

const LastPassName = "lastpass"

// nolint
func init() {
func init() { //nolint
metaInfo := core.MetaInfo{
Description: "Lastpass",
Authentication: "TODO(XXX)",
Expand Down
2 changes: 1 addition & 1 deletion pkg/providers/mock_providers/keeper_secretsmanager_mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions pkg/providers/onepassword.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ type OnePassword struct {

const OnePasswordName = "1password"

// nolint
func init() {
func init() { //nolint
metaInfo := core.MetaInfo{
Description: "1Password",
Name: OnePasswordName,
Expand Down
3 changes: 1 addition & 2 deletions pkg/providers/process_env.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ type ProcessEnv struct {
logger logging.Logger
}

// nolint
func init() {
func init() { //nolint
metaInto := core.MetaInfo{
Description: "ProcessEnv",
Name: "process_env",
Expand Down
3 changes: 1 addition & 2 deletions pkg/providers/vercel.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ const ProjectEndPoint = "/projects"

const VercelName = "vercel"

// nolint
func init() {
func init() { //nolint
metaInfo := core.MetaInfo{
Name: "vercel",
Description: "Vercel",
Expand Down
8 changes: 4 additions & 4 deletions vendor/github.com/alecthomas/kong/context.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions vendor/github.com/alecthomas/kong/guesswidth_unix.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/alecthomas/kong/kong.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b20585e

Please sign in to comment.