notyim/notyim

View on GitHub
extras/gaia/server.go

Summary

Maintainability
A
40 mins
Test Coverage

Method Server.SetupRoute has 6 return statements (exceeds 4 allowed).
Open

func (s *Server) SetupRoute() {
    secureMiddleware := secure.New(secure.Options{
        AllowedHosts:         []string{"noty.ax", "gaia.noty.im", "laputa.noty.im", ".*.noty.im"},
        AllowedHostsAreRegex: true,
        HostsProxyHeaders:    []string{"X-Forwarded-Host"},
Severity: Major
Found in extras/gaia/server.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status