Preparing report...

Report for github.com/maragudk/gomponents

A+    Excellent!    Found 10 issues across 19 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!


golint47%

Golint is a linter for Go source code.

    • gomponents/html/attributes.go
    • Line 7: warning: exported function Async should have comment or be unexported (golint)
    • Line 11: warning: exported function AutoFocus should have comment or be unexported (golint)
    • Line 15: warning: exported function AutoPlay should have comment or be unexported (golint)
    • Line 19: warning: exported function Controls should have comment or be unexported (golint)
    • Line 23: warning: exported function Defer should have comment or be unexported (golint)
    • Line 27: warning: exported function Disabled should have comment or be unexported (golint)
    • Line 31: warning: exported function Loop should have comment or be unexported (golint)
    • Line 35: warning: exported function Multiple should have comment or be unexported (golint)
    • Line 39: warning: exported function Muted should have comment or be unexported (golint)
    • Line 43: warning: exported function PlaysInline should have comment or be unexported (golint)
    • Line 47: warning: exported function ReadOnly should have comment or be unexported (golint)
    • Line 51: warning: exported function Required should have comment or be unexported (golint)
    • Line 55: warning: exported function Selected should have comment or be unexported (golint)
    • Line 59: warning: exported function Accept should have comment or be unexported (golint)
    • Line 63: warning: exported function Action should have comment or be unexported (golint)
    • Line 67: warning: exported function Alt should have comment or be unexported (golint)
    • Line 76: warning: exported function As should have comment or be unexported (golint)
    • Line 80: warning: exported function AutoComplete should have comment or be unexported (golint)
    • Line 84: warning: exported function Charset should have comment or be unexported (golint)
    • Line 88: warning: exported function Class should have comment or be unexported (golint)
    • Line 92: warning: exported function Cols should have comment or be unexported (golint)
    • Line 96: warning: exported function Content should have comment or be unexported (golint)
    • Line 105: warning: exported function For should have comment or be unexported (golint)
    • Line 109: warning: exported function FormAttr should have comment or be unexported (golint)
    • Line 113: warning: exported function Height should have comment or be unexported (golint)
    • Line 117: warning: exported function Href should have comment or be unexported (golint)
    • Line 121: warning: exported function ID should have comment or be unexported (golint)
    • Line 125: warning: exported function Lang should have comment or be unexported (golint)
    • Line 129: warning: exported function Loading should have comment or be unexported (golint)
    • Line 133: warning: exported function Max should have comment or be unexported (golint)
    • Line 137: warning: exported function MaxLength should have comment or be unexported (golint)
    • Line 141: warning: exported function Method should have comment or be unexported (golint)
    • Line 145: warning: exported function Min should have comment or be unexported (golint)
    • Line 149: warning: exported function MinLength should have comment or be unexported (golint)
    • Line 153: warning: exported function Name should have comment or be unexported (golint)
    • Line 157: warning: exported function Pattern should have comment or be unexported (golint)
    • Line 161: warning: exported function Placeholder should have comment or be unexported (golint)
    • Line 165: warning: exported function Poster should have comment or be unexported (golint)
    • Line 169: warning: exported function Preload should have comment or be unexported (golint)
    • Line 173: warning: exported function Rel should have comment or be unexported (golint)
    • Line 177: warning: exported function Role should have comment or be unexported (golint)
    • Line 181: warning: exported function Rows should have comment or be unexported (golint)
    • Line 185: warning: exported function Src should have comment or be unexported (golint)
    • Line 189: warning: exported function SrcSet should have comment or be unexported (golint)
    • Line 193: warning: exported function StyleAttr should have comment or be unexported (golint)
    • Line 197: warning: exported function TabIndex should have comment or be unexported (golint)
    • Line 201: warning: exported function Target should have comment or be unexported (golint)
    • Line 205: warning: exported function TitleAttr should have comment or be unexported (golint)
    • Line 209: warning: exported function Type should have comment or be unexported (golint)
    • Line 213: warning: exported function Value should have comment or be unexported (golint)
    • Line 217: warning: exported function Width should have comment or be unexported (golint)
    • gomponents/html/elements.go
    • Line 22: warning: exported function A should have comment or be unexported (golint)
    • Line 26: warning: exported function Address should have comment or be unexported (golint)
    • Line 30: warning: exported function Area should have comment or be unexported (golint)
    • Line 34: warning: exported function Article should have comment or be unexported (golint)
    • Line 38: warning: exported function Aside should have comment or be unexported (golint)
    • Line 42: warning: exported function Audio should have comment or be unexported (golint)
    • Line 46: warning: exported function Base should have comment or be unexported (golint)
    • Line 50: warning: exported function BlockQuote should have comment or be unexported (golint)
    • Line 54: warning: exported function Body should have comment or be unexported (golint)
    • Line 58: warning: exported function Br should have comment or be unexported (golint)
    • Line 62: warning: exported function Button should have comment or be unexported (golint)
    • Line 66: warning: exported function Canvas should have comment or be unexported (golint)
    • Line 70: warning: exported function Cite should have comment or be unexported (golint)
    • Line 74: warning: exported function Code should have comment or be unexported (golint)
    • Line 78: warning: exported function Col should have comment or be unexported (golint)
    • Line 82: warning: exported function ColGroup should have comment or be unexported (golint)
    • Line 86: warning: exported function DataEl should have comment or be unexported (golint)
    • Line 90: warning: exported function DataList should have comment or be unexported (golint)
    • Line 94: warning: exported function Details should have comment or be unexported (golint)
    • Line 98: warning: exported function Dialog should have comment or be unexported (golint)
    • Line 102: warning: exported function Div should have comment or be unexported (golint)
    • Line 106: warning: exported function Dl should have comment or be unexported (golint)
    • Line 110: warning: exported function Embed should have comment or be unexported (golint)
    • Line 114: warning: exported function FormEl should have comment or be unexported (golint)
    • Line 118: warning: exported function FieldSet should have comment or be unexported (golint)
    • Line 122: warning: exported function Figure should have comment or be unexported (golint)
    • Line 126: warning: exported function Footer should have comment or be unexported (golint)
    • Line 130: warning: exported function Head should have comment or be unexported (golint)
    • Line 134: warning: exported function Header should have comment or be unexported (golint)
    • Line 138: warning: exported function HGroup should have comment or be unexported (golint)
    • Line 142: warning: exported function Hr should have comment or be unexported (golint)
    • Line 146: warning: exported function HTML should have comment or be unexported (golint)
    • Line 150: warning: exported function IFrame should have comment or be unexported (golint)
    • Line 154: warning: exported function Img should have comment or be unexported (golint)
    • Line 158: warning: exported function Input should have comment or be unexported (golint)
    • Line 162: warning: exported function Label should have comment or be unexported (golint)
    • Line 166: warning: exported function Legend should have comment or be unexported (golint)
    • Line 170: warning: exported function Li should have comment or be unexported (golint)
    • Line 174: warning: exported function Link should have comment or be unexported (golint)
    • Line 178: warning: exported function Main should have comment or be unexported (golint)
    • Line 182: warning: exported function Menu should have comment or be unexported (golint)
    • Line 186: warning: exported function Meta should have comment or be unexported (golint)
    • Line 190: warning: exported function Meter should have comment or be unexported (golint)
    • Line 194: warning: exported function Nav should have comment or be unexported (golint)
    • Line 198: warning: exported function NoScript should have comment or be unexported (golint)
    • Line 202: warning: exported function Object should have comment or be unexported (golint)
    • Line 206: warning: exported function Ol should have comment or be unexported (golint)
    • Line 210: warning: exported function OptGroup should have comment or be unexported (golint)
    • Line 214: warning: exported function Option should have comment or be unexported (golint)
    • Line 218: warning: exported function P should have comment or be unexported (golint)
    • Line 222: warning: exported function Param should have comment or be unexported (golint)
    • Line 226: warning: exported function Picture should have comment or be unexported (golint)
    • Line 230: warning: exported function Pre should have comment or be unexported (golint)
    • Line 234: warning: exported function Progress should have comment or be unexported (golint)
    • Line 238: warning: exported function Script should have comment or be unexported (golint)
    • Line 242: warning: exported function Section should have comment or be unexported (golint)
    • Line 246: warning: exported function Select should have comment or be unexported (golint)
    • Line 250: warning: exported function Source should have comment or be unexported (golint)
    • Line 254: warning: exported function Span should have comment or be unexported (golint)
    • Line 258: warning: exported function StyleEl should have comment or be unexported (golint)
    • Line 262: warning: exported function Summary should have comment or be unexported (golint)
    • Line 266: warning: exported function SVG should have comment or be unexported (golint)
    • Line 270: warning: exported function Table should have comment or be unexported (golint)
    • Line 274: warning: exported function TBody should have comment or be unexported (golint)
    • Line 278: warning: exported function Td should have comment or be unexported (golint)
    • Line 282: warning: exported function Textarea should have comment or be unexported (golint)
    • Line 286: warning: exported function TFoot should have comment or be unexported (golint)
    • Line 290: warning: exported function Th should have comment or be unexported (golint)
    • Line 294: warning: exported function THead should have comment or be unexported (golint)
    • Line 298: warning: exported function Tr should have comment or be unexported (golint)
    • Line 302: warning: exported function Ul should have comment or be unexported (golint)
    • Line 306: warning: exported function Wbr should have comment or be unexported (golint)
    • Line 310: warning: exported function Abbr should have comment or be unexported (golint)
    • Line 314: warning: exported function B should have comment or be unexported (golint)
    • Line 318: warning: exported function Caption should have comment or be unexported (golint)
    • Line 322: warning: exported function Dd should have comment or be unexported (golint)
    • Line 326: warning: exported function Del should have comment or be unexported (golint)
    • Line 330: warning: exported function Dfn should have comment or be unexported (golint)
    • Line 334: warning: exported function Dt should have comment or be unexported (golint)
    • Line 338: warning: exported function Em should have comment or be unexported (golint)
    • Line 342: warning: exported function FigCaption should have comment or be unexported (golint)
    • Line 346: warning: exported function H1 should have comment or be unexported (golint)
    • Line 350: warning: exported function H2 should have comment or be unexported (golint)
    • Line 354: warning: exported function H3 should have comment or be unexported (golint)
    • Line 358: warning: exported function H4 should have comment or be unexported (golint)
    • Line 362: warning: exported function H5 should have comment or be unexported (golint)
    • Line 366: warning: exported function H6 should have comment or be unexported (golint)
    • Line 370: warning: exported function I should have comment or be unexported (golint)
    • Line 374: warning: exported function Ins should have comment or be unexported (golint)
    • Line 378: warning: exported function Kbd should have comment or be unexported (golint)
    • Line 382: warning: exported function Mark should have comment or be unexported (golint)
    • Line 386: warning: exported function Q should have comment or be unexported (golint)
    • Line 390: warning: exported function S should have comment or be unexported (golint)
    • Line 394: warning: exported function Samp should have comment or be unexported (golint)
    • Line 398: warning: exported function Small should have comment or be unexported (golint)
    • Line 402: warning: exported function Strong should have comment or be unexported (golint)
    • Line 406: warning: exported function Sub should have comment or be unexported (golint)
    • Line 410: warning: exported function Sup should have comment or be unexported (golint)
    • Line 414: warning: exported function Time should have comment or be unexported (golint)
    • Line 418: warning: exported function TitleEl should have comment or be unexported (golint)
    • Line 422: warning: exported function U should have comment or be unexported (golint)
    • Line 426: warning: exported function Var should have comment or be unexported (golint)
    • Line 430: warning: exported function Video should have comment or be unexported (golint)
    • gomponents/components/elements.go
    • Line 5: warning: should not use dot imports (golint)
    • Line 8: warning: exported function InputHidden should have comment or be unexported (golint)
    • Line 12: warning: exported function LinkStylesheet should have comment or be unexported (golint)
    • Line 16: warning: exported function LinkPreload should have comment or be unexported (golint)
    • gomponents/gomponents.go
    • Line 31: warning: exported const ElementType should have comment (or a comment on this block) or be unexported (golint)
    • Line 44: warning: exported method NodeFunc.Render should have comment or be unexported (golint)
    • Line 48: warning: exported method NodeFunc.Type should have comment or be unexported (golint)
    • gomponents/examples/tailwindcss/tailwindcss.go
    • Line 9: warning: should not use dot imports (golint)
    • Line 48: warning: exported function Page should have comment or be unexported (golint)
    • Line 72: warning: exported type PageLink should have comment or be unexported (golint)
    • Line 77: warning: exported function Navbar should have comment or be unexported (golint)
    • Line 104: warning: exported function Container should have comment or be unexported (golint)
    • Line 108: warning: exported function Prose should have comment or be unexported (golint)
    • Line 112: warning: exported function PageFooter should have comment or be unexported (golint)
    • gomponents/svg/attributes.go
    • Line 7: warning: exported function ClipRule should have comment or be unexported (golint)
    • Line 11: warning: exported function D should have comment or be unexported (golint)
    • Line 15: warning: exported function Fill should have comment or be unexported (golint)
    • Line 19: warning: exported function FillRule should have comment or be unexported (golint)
    • Line 23: warning: exported function Stroke should have comment or be unexported (golint)
    • Line 27: warning: exported function ViewBox should have comment or be unexported (golint)
    • gomponents/svg/elements.go
    • Line 9: warning: exported function Path should have comment or be unexported (golint)
    • Line 13: warning: exported function SVG should have comment or be unexported (golint)
    • gomponents/examples/simple/simple.go
    • Line 8: warning: should not use dot imports (golint)
    • Line 51: warning: exported type PageLink should have comment or be unexported (golint)
    • Line 56: warning: exported function Navbar should have comment or be unexported (golint)
    • Line 70: warning: exported function NavbarLink 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!


misspell94%

Misspell Finds commonly misspelled English words