oauth2-proxy/oauth2-proxy

View on GitHub
pkg/logger/logger.go

Summary

Maintainability
A
2 hrs
Test Coverage

Function PrintReq has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

func PrintReq(username, upstream string, req *http.Request, url url.URL, ts time.Time, status int, size int) {
Severity: Minor
Found in pkg/logger/logger.go - About 45 mins to fix

    Method Logger.PrintReq has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    func (l *Logger) PrintReq(username, upstream string, req *http.Request, url url.URL, ts time.Time, status int, size int) {
    Severity: Minor
    Found in pkg/logger/logger.go - About 45 mins to fix

      Function PrintAuthf has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      func PrintAuthf(username string, req *http.Request, status AuthStatus, format string, a ...interface{}) {
      Severity: Minor
      Found in pkg/logger/logger.go - About 35 mins to fix

        Method Logger.PrintAuthf has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

        func (l *Logger) PrintAuthf(username string, req *http.Request, status AuthStatus, format string, a ...interface{}) {
        Severity: Minor
        Found in pkg/logger/logger.go - About 35 mins to fix

          There are no issues that match your filters.

          Category
          Status