core/middleware/admission/admission.go
Showing 2 of 2 total issues
Function Middleware
has a Cognitive Complexity of 33 (exceeds 20 allowed). Consider refactoring. Open
Open
func Middleware(skippers ...middleware.Skipper) gin.HandlerFunc { return middleware.New(func(c *gin.Context) { // get auth record record, ok := c.Get(common.ContextAuthRecord) if !ok {
- Read upRead up
Function Middleware
has 74 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func Middleware(skippers ...middleware.Skipper) gin.HandlerFunc { return middleware.New(func(c *gin.Context) { // get auth record record, ok := c.Get(common.ContextAuthRecord) if !ok {