Showing 7 of 7 total issues

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

func insertStudentIntoDB(db *sql.DB, studentID string, fName string, lName string, studentYear string) {
Severity: Minor
Found in internal/auth/user.go - About 35 mins to fix

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

    func HTTPResponseArr(status int, statusMessage string, body string, title string, w http.ResponseWriter) {
    Severity: Minor
    Found in internal/util/main.go - About 35 mins to fix

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

      func HTTPResponse(status int, statusMessage string, body string, title string, w http.ResponseWriter) {
      Severity: Minor
      Found in internal/util/main.go - About 35 mins to fix

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

        func dropErr(status int, statusMessage string, body string, title string, w http.ResponseWriter) {
        Severity: Minor
        Found in internal/quickerrors/main.go - About 35 mins to fix

          Function ParseSessions has 5 return statements (exceeds 4 allowed).
          Open

          func ParseSessions(r *http.Request, w http.ResponseWriter) (user.User, error) {
          
              // Connect to the database
              db.Conn("admin")
              defer db.DB.Close()
          Severity: Major
          Found in internal/sessions/parse.go - About 35 mins to fix

            Function UserAuthenticationHandler has 5 return statements (exceeds 4 allowed).
            Open

            func UserAuthenticationHandler(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
            
                // Determine if the user is already logged in
                _, notLoggedIn := sessions.ParseSessions(r, w)
                if notLoggedIn == nil {
            Severity: Major
            Found in internal/auth/user.go - About 35 mins to fix

              2: cannot find package "github.com/lib/pq" in any of:
              Open

                  _ "github.com/lib/pq"
              Severity: Minor
              Found in _WIP/Feed/Generate/main.go by govet
              Severity
              Category
              Status
              Source
              Language