Preparing report...

Report for github.com/sotetsuk/goscholar

A+    Excellent!    Found 9 issues across 16 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo100%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.

No problems detected. Good job!


golint43%

Golint is a linter for Go source code.

    • goscholar/parse_test.go
    • Line 21: warning: don't use underscores in Go names; var test_case1 should be testCase1 (golint)
    • Line 27: warning: don't use underscores in Go names; var test_case2 should be testCase2 (golint)
    • Line 68: warning: don't use underscores in Go names; func parameter file_name should be fileName (golint)
    • goscholar/property.go
    • Line 5: warning: don't use underscores in Go names; const scholar_url should be scholarURL (golint)
    • Line 6: warning: don't use underscores in Go names; const search_url should be searchURL (golint)
    • Line 7: warning: don't use underscores in Go names; const find_url should be findURL (golint)
    • Line 8: warning: don't use underscores in Go names; const cite_url should be citeURL (golint)
    • Line 9: warning: don't use underscores in Go names; const cite_popup_url should be citePopupURL (golint)
    • Line 14: warning: don't use underscores in Go names; const whole_article_selector should be wholeArticleSelector (golint)
    • Line 15: warning: don't use underscores in Go names; const article_h3_selector should be articleH3Selector (golint)
    • Line 16: warning: don't use underscores in Go names; const article_green_line_selector should be articleGreenLineSelector (golint)
    • Line 17: warning: don't use underscores in Go names; const article_bottom_selector should be articleBottomSelector (golint)
    • Line 18: warning: don't use underscores in Go names; const article_sidebar_selector should be articleSidebarSelector (golint)
    • Line 19: warning: don't use underscores in Go names; const sidebar_text_selector should be sidebarTextSelector (golint)
    • Line 23: warning: exported var USER_AGENT should have comment or be unexported (golint)
    • goscholar/text.go
    • Line 60: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • goscholar/utils.go
    • Line 20: warning: don't use underscores in Go names; var cluster_id should be clusterID (golint)
    • Line 23: warning: don't use underscores in Go names; var info_id should be infoID (golint)
    • goscholar/article.go
    • Line 72: warning: don't use underscores in Go names; var title_validation should be titleValidation (golint)
    • Line 73: warning: don't use underscores in Go names; var url_validation should be urlValidation (golint)
    • goscholar/article_test.go
    • Line 55: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 94: warning: should replace t.Error(fmt.Sprintf(...)) with t.Errorf(...) (golint)
    • Line 100: warning: should replace t.Error(fmt.Sprintf(...)) with t.Errorf(...) (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!