-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EVEREST-107 | WIP #896
base: main
Are you sure you want to change the base?
EVEREST-107 | WIP #896
Conversation
|
||
import ( | ||
"net/http" | ||
"reflect" | ||
|
||
"github.com/AlekSi/pointer" | ||
"github.com/labstack/echo/v4" | ||
. "github.com/percona/everest/api" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci-lint] reported by reviewdog 🐶
File is not gci
-ed with --skip-generated -s standard -s default -s prefix(github.com/percona/everest) (gci)
|
||
import ( | ||
. "github.com/percona/everest/api" | ||
"net/http" | ||
"slices" | ||
"strings" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci-lint] reported by reviewdog 🐶
File is not gofumpt
-ed (gofumpt)
@@ -26,6 +26,7 @@ import ( | |||
"github.com/cenkalti/backoff/v4" | |||
goversion "github.com/hashicorp/go-version" | |||
"github.com/labstack/echo/v4" | |||
. "github.com/percona/everest/api" | |||
"golang.org/x/net/context" | |||
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci-lint] reported by reviewdog 🐶
File is not goimports
-ed with -local github.com/percona/everest (goimports)
@@ -14,7 +14,7 @@ | |||
// limitations under the License. | |||
|
|||
// Package api ... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci-lint] reported by reviewdog 🐶
package-comments: package comment should be of the form "Package server ..." (revive)
@@ -14,7 +14,7 @@ | |||
// limitations under the License. | |||
|
|||
// Package api ... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci-lint] reported by reviewdog 🐶
package-comments: package comment should be of the form "Package server ..." (revive)
@@ -28,6 +28,7 @@ import ( | |||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | |||
|
|||
everestv1alpha1 "github.com/percona/everest-operator/api/v1alpha1" | |||
. "github.com/percona/everest/api" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci-lint] reported by reviewdog 🐶
dot-imports: should not use dot imports (revive)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci-lint] reported by reviewdog 🐶
File is not goimports
-ed with -local github.com/percona/everest (goimports)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci-lint] reported by reviewdog 🐶
File is not goimports
-ed with -local github.com/percona/everest (goimports)
everest/internal/server/middlewares.go
Line 23 in 297ac36
Signed-off-by: Mayank Shah <[email protected]>
Signed-off-by: Mayank Shah <[email protected]>
297ac36
to
db48049
Compare
"errors" | ||
"fmt" | ||
|
||
"github.com/casbin/casbin/v2" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci-lint] reported by reviewdog 🐶
File is not gci
-ed with --skip-generated -s standard -s default -s prefix(github.com/percona/everest) (gci)
"github.com/percona/everest/api" | ||
"github.com/percona/everest/internal/server/handlers" | ||
"github.com/percona/everest/pkg/kubernetes" | ||
"go.uber.org/zap" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci-lint] reported by reviewdog 🐶
File is not gci
-ed with --skip-generated -s standard -s default -s prefix(github.com/percona/everest) (gci)
@@ -0,0 +1,82 @@ | |||
package handlers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci-lint] reported by reviewdog 🐶
package-comments: should have a package comment (revive)
@@ -0,0 +1,27 @@ | |||
package rbac |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci-lint] reported by reviewdog 🐶
package-comments: should have a package comment (revive)
"github.com/percona/everest/api" | ||
) | ||
|
||
func (h *rbacHandler) ListDatabaseEngines(ctx context.Context, user, namespace string) (*api.DatabaseEngineList, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci-lint] reported by reviewdog 🐶
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
} | ||
|
||
func (h *rbacHandler) ListDatabaseClusters(ctx context.Context, user, namespace string) (*api.DatabaseClusterList, error) { | ||
return nil, nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci-lint] reported by reviewdog 🐶
return both the nil
error and invalid value: use a sentinel error instead (nilnil)
} | ||
|
||
func (h *rbacHandler) GetDatabaseCluster(ctx context.Context, user, namespace, name string) (*api.DatabaseCluster, error) { | ||
return nil, nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci-lint] reported by reviewdog 🐶
return both the nil
error and invalid value: use a sentinel error instead (nilnil)
@@ -0,0 +1,39 @@ | |||
package rbac |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci-lint] reported by reviewdog 🐶
ST1000: at least one file in a package should have a package comment (stylecheck)
@@ -0,0 +1,23 @@ | |||
package rbac |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci-lint] reported by reviewdog 🐶
ST1000: at least one file in a package should have a package comment (stylecheck)
@@ -0,0 +1,27 @@ | |||
package rbac |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci-lint] reported by reviewdog 🐶
ST1000: at least one file in a package should have a package comment (stylecheck)
No description provided.