internal/app/server/server.go
Function RunServer
has 58 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func RunServer(c *cli.Context) error {
conns, err := getConnections(c)
if err != nil {
return cli.NewExitError(
fmt.Sprintf("Unable to connect to external service %q", err),
- Create a ticketCreate a ticket
Function RunServer
has 8 return statements (exceeds 4 allowed). Wontfix
Wontfix
func RunServer(c *cli.Context) error {
conns, err := getConnections(c)
if err != nil {
return cli.NewExitError(
fmt.Sprintf("Unable to connect to external service %q", err),
- Create a ticketCreate a ticket
Function parseJwtKeys
has 5 return statements (exceeds 4 allowed). Wontfix
Wontfix
func parseJwtKeys(c *cli.Context) (*jwtauth.JWTAuth, error) {
ja := &jwtauth.JWTAuth{}
private, err := base64.StdEncoding.DecodeString(c.String("private-key"))
if err != nil {
return ja, err
- Create a ticketCreate a ticket