Showing 6 of 7 total issues
Function insertStudentIntoDB
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func insertStudentIntoDB(db *sql.DB, studentID string, fName string, lName string, studentYear string) {
Function HTTPResponseArr
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func HTTPResponseArr(status int, statusMessage string, body string, title string, w http.ResponseWriter) {
Function HTTPResponse
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func HTTPResponse(status int, statusMessage string, body string, title string, w http.ResponseWriter) {
Function dropErr
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func dropErr(status int, statusMessage string, body string, title string, w http.ResponseWriter) {
Function ParseSessions
has 5 return statements (exceeds 4 allowed). Open
Open
func ParseSessions(r *http.Request, w http.ResponseWriter) (user.User, error) {
// Connect to the database
db.Conn("admin")
defer db.DB.Close()
Function UserAuthenticationHandler
has 5 return statements (exceeds 4 allowed). Open
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 {