Report for github.com/ruilisi/css-checker

(v0.4.0)

A+    Excellent!    Found 6 issues across 9 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!


gocyclo88%

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.

    • main.go
    • Line 217: warning: cyclomatic complexity 22 of function main() is high (> 15) (gocyclo)

golint33%

Golint is a linter for Go source code.

    • duplication_checker.go
    • Line 7: warning: should not use dot imports (golint)
    • Line 10: warning: exported function DupStyleSectionsChecker should have comment or be unexported (golint)
    • Line 36: warning: exported function DupScriptsChecker should have comment or be unexported (golint)
    • file_parser.go
    • Line 86: warning: exported type ColorConversionStruct should have comment or be unexported (golint)
    • file_walker.go
    • Line 13: warning: exported type WalkMatchOptions should have comment or be unexported (golint)
    • Line 19: warning: exported function WalkMatch should have comment or be unexported (golint)
    • main.go
    • Line 17: warning: exported const InfoColor should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: exported const Version should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: exported type Params should have comment or be unexported (golint)
    • Line 70: warning: exported type ScriptSummary should have comment or be unexported (golint)
    • Line 77: warning: exported type SectionSummary should have comment or be unexported (golint)
    • Line 83: warning: exported type SimilaritySummary should have comment or be unexported (golint)
    • Line 89: warning: exported type StyleHashRecorder should have comment or be unexported (golint)
    • Line 106: warning: exported type HashOrigin should have comment or be unexported (golint)
    • Line 167: warning: error should be the last type when returning multiple items (golint)
    • Line 182: warning: exported function ParamsParse should have comment or be unexported (golint)
    • unused_css_checker.go
    • Line 10: warning: exported function ClassNamesSplit should have comment or be unexported (golint)
    • Line 14: warning: exported function JSClassNamesSplit should have comment or be unexported (golint)
    • Line 18: warning: exported function UnusedClassesChecker should have comment or be unexported (golint)
    • warnings.go
    • Line 10: warning: exported function SimilarSectionsWarning should have comment or be unexported (golint)
    • Line 36: warning: exported function StyleSectionsWarning should have comment or be unexported (golint)
    • Line 54: warning: exported function ColorScriptsWarning should have comment or be unexported (golint)
    • Line 79: warning: exported function LongScriptsWarning should have comment or be unexported (golint)
    • Line 98: warning: exported function UnusedScriptsWarning should have comment or be unexported (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!