cflynn07/myblog

View on GitHub

Showing 2 of 2 total issues

Function init has 166 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func init() {
    post2020_11_25 := "2020-11-25-book-review-docker-deep-dive"
    post2020_11_09 := "2020-11-09-book-review-free-as-in-freedom"
    post2020_09_25 := "2020-09-25-book-review-operating-system-concepts"
    post2020_07_20 := "2020-07-20-clubbingowl"
Severity: Major
Found in app/blog_posts.go - About 5 hrs to fix

    Function PostHandler has 56 lines of code (exceeds 50 allowed). Consider refactoring.
    Open

    func PostHandler(w http.ResponseWriter, r *http.Request) {
        vars := mux.Vars(r)
    
        type postPageVars struct {
            globalPageVars
    Severity: Minor
    Found in app/handlers.go - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language