Merged in feature/linting (pull request #168)

Linting Updates

* precommit

* smallerchecks

* govuln
This commit is contained in:
Michael McGuinness
2025-06-23 15:58:20 +00:00
parent daf4d4b94b
commit 3028fe7eaa
24 changed files with 226 additions and 128 deletions
+4 -4
View File
@@ -44,7 +44,7 @@ type BaseConfig struct {
// experimental since it is not used yet and may pose cyclical dependency issues
// in handlers that are called by the generated
// swagger code. This needs to be verified.
//func GetConfigFromContext(ctx echo.Context) (Config, error) {
// func GetConfigFromContext(ctx echo.Context) (Config, error) {
// cfg, ok := ctx.Get(configContextKey).(Config)
// if !ok {
// return nil, errors.New("config not found in context")
@@ -170,13 +170,13 @@ func New(ctx context.Context, cfg Config) (*Server, error) {
// Put this in when refactoring is done and remove from main.go
//// This must be done before the rbac.InitializeAuthProvider then remove from main.go for service.
//errInitializingConfig := serviceconfig.InitializeConfig(cfg)
//if errInitializingConfig != nil {
// errInitializingConfig := serviceconfig.InitializeConfig(cfg)
// if errInitializingConfig != nil {
// return nil, errInitializingConfig
//}
//
//// Initialize the rbac config here since only the API service needs it
//errorGettingAuthProvider := rbac.InitializeAuthProvider(cfg.GetAuthConfig())
// errorGettingAuthProvider := rbac.InitializeAuthProvider(cfg.GetAuthConfig())
//if errorGettingAuthProvider != nil {
// return nil, errorGettingAuthProvider
//}