Preparing report...

Report for codeberg.org/fractalqb/xsx

A+    Excellent!    Found 18 issues across 32 files

Tweet

gofmt96%

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


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!


golint43%

Golint is a linter for Go source code.

    • /codeberg.org/fractalqb/xsx/xso/xso.go
    • Line 14: warning: exported const KS_MEM should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: exported type Encoder should have comment or be unexported (golint)
    • Line 25: warning: exported type CustomEncoding should have comment or be unexported (golint)
    • Line 27: warning: exported function NewEncoder should have comment or be unexported (golint)
    • Line 41: warning: exported method Encoder.Encode should have comment or be unexported (golint)
    • Line 68: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • /codeberg.org/fractalqb/xsx/gem/pull.go
    • Line 9: warning: exported function ReadCurrent should have comment or be unexported (golint)
    • Line 26: warning: exported function ReadNext should have comment or be unexported (golint)
    • Line 29: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • /codeberg.org/fractalqb/xsx/scanner.go
    • Line 17: warning: exported type ScanError should have comment or be unexported (golint)
    • Line 28: warning: exported method ScanError.Position should have comment or be unexported (golint)
    • Line 32: warning: exported method ScanError.Message should have comment or be unexported (golint)
    • Line 36: warning: exported method ScanError.Reason should have comment or be unexported (golint)
    • Line 68: warning: exported type Scanner should have comment or be unexported (golint)
    • Line 87: warning: exported function NewScanner should have comment or be unexported (golint)
    • Line 95: warning: exported method Scanner.Complete should have comment or be unexported (golint)
    • Line 99: warning: exported method Scanner.Finish should have comment or be unexported (golint)
    • Line 140: warning: exported method Scanner.Depth should have comment or be unexported (golint)
    • Line 142: warning: exported method Scanner.Reset should have comment or be unexported (golint)
    • Line 165: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 275: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 301: warning: exported method Scanner.Scan should have comment or be unexported (golint)
    • Line 442: warning: exported method Scanner.ScanString should have comment or be unexported (golint)
    • /codeberg.org/fractalqb/xsx/gem/parse.go
    • Line 11: warning: exported type State should have comment or be unexported (golint)
    • Line 16: warning: exported method State.Begin should have comment or be unexported (golint)
    • Line 27: warning: exported method State.End should have comment or be unexported (golint)
    • Line 36: warning: exported method State.Atom should have comment or be unexported (golint)
    • Line 78: warning: comment on exported function ParseFile should be of the form "ParseFile ..." (golint)
    • Line 88: warning: exported function ParseString should have comment or be unexported (golint)
    • /codeberg.org/fractalqb/xsx/ppretty.go
    • Line 17: warning: exported function Pretty should have comment or be unexported (golint)
    • Line 35: warning: exported method PrettyPrinter.Begin should have comment or be unexported (golint)
    • Line 52: warning: exported method PrettyPrinter.End should have comment or be unexported (golint)
    • Line 67: warning: exported method PrettyPrinter.Atom should have comment or be unexported (golint)
    • Line 80: warning: exported method PrettyPrinter.Newline should have comment or be unexported (golint)
    • Line 80: warning: receiver name p should be consistent with previous receiver name pp for PrettyPrinter (golint)
    • /codeberg.org/fractalqb/xsx/pull.go
    • Line 11: warning: exported type Token should have comment or be unexported (golint)
    • Line 15: warning: exported const TokBegin should have comment (or a comment on this block) or be unexported (golint)
    • Line 44: warning: exported type PullParser should have comment or be unexported (golint)
    • Line 59: warning: exported function NewPullParser should have comment or be unexported (golint)
    • Line 94: warning: exported method PullParser.Next should have comment or be unexported (golint)
    • Line 94: warning: receiver name p should be consistent with previous receiver name pp for PullParser (golint)
    • Line 128: warning: exported method PullParser.LastToken should have comment or be unexported (golint)
    • Line 128: warning: receiver name p should be consistent with previous receiver name pp for PullParser (golint)
    • Line 135: warning: exported method PullParser.LastBrace should have comment or be unexported (golint)
    • Line 135: warning: receiver name p should be consistent with previous receiver name pp for PullParser (golint)
    • Line 143: warning: exported method PullParser.WasMeta should have comment or be unexported (golint)
    • Line 143: warning: receiver name p should be consistent with previous receiver name pp for PullParser (golint)
    • Line 154: warning: receiver name p should be consistent with previous receiver name pp for PullParser (golint)
    • Line 183: warning: exported method PullParser.WasAny should have comment or be unexported (golint)
    • Line 183: warning: receiver name p should be consistent with previous receiver name pp for PullParser (golint)
    • Line 187: warning: exported type Unexpected should have comment or be unexported (golint)
    • Line 190: warning: exported const PullEOI should have comment (or a comment on this block) or be unexported (golint)
    • Line 205: warning: exported type Expect should have comment or be unexported (golint)
    • Line 208: warning: exported const Allow should have comment (or a comment on this block) or be unexported (golint)
    • Line 213: warning: exported function Pulled should have comment or be unexported (golint)
    • Line 216: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 221: warning: exported method PullParser.NextBegin should have comment or be unexported (golint)
    • Line 221: warning: receiver name p should be consistent with previous receiver name pp for PullParser (golint)
    • Line 247: warning: exported method PullParser.ExpectBegin should have comment or be unexported (golint)
    • Line 247: warning: receiver name p should be consistent with previous receiver name pp for PullParser (golint)
    • Line 261: warning: exported method PullParser.NextEnd should have comment or be unexported (golint)
    • Line 261: warning: receiver name p should be consistent with previous receiver name pp for PullParser (golint)
    • Line 269: warning: exported method PullParser.ExpectEnd should have comment or be unexported (golint)
    • Line 269: warning: receiver name p should be consistent with previous receiver name pp for PullParser (golint)
    • Line 286: warning: exported method PullParser.NextAtom should have comment or be unexported (golint)
    • Line 286: warning: receiver name p should be consistent with previous receiver name pp for PullParser (golint)
    • Line 294: warning: exported method PullParser.ExpectAtom should have comment or be unexported (golint)
    • Line 294: warning: receiver name p should be consistent with previous receiver name pp for PullParser (golint)
    • /codeberg.org/fractalqb/xsx/write.go
    • Line 36: warning: exported function NeedQuote should have comment or be unexported (golint)
    • Line 54: warning: exported function QuoteTo should have comment or be unexported (golint)
    • Line 65: warning: exported function Quoted should have comment or be unexported (golint)
    • Line 71: warning: exported function CondQuoteTo should have comment or be unexported (golint)
    • Line 75: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 81: warning: exported function CondQuoted should have comment or be unexported (golint)
    • Line 84: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 89: warning: exported type QuoteMode should have comment or be unexported (golint)
    • Line 92: warning: comment on exported const Qcond should be of the form "Qcond ..." (golint)
    • Line 94: warning: comment on exported const Qforce should be of the form "Qforce ..." (golint)
    • Line 100: warning: exported type B should have comment or be unexported (golint)
    • Line 101: warning: exported type Bm should have comment or be unexported (golint)
    • Line 108: warning: exported type Nl should have comment or be unexported (golint)
    • Line 113: warning: exported function Write should have comment or be unexported (golint)
    • /codeberg.org/fractalqb/xsx/gem/gem.go
    • Line 14: warning: exported const IgnMeta should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: exported type Expr should have comment or be unexported (golint)
    • Line 57: warning: exported type Atom should have comment or be unexported (golint)
    • Line 62: warning: exported method Atom.Quoted should have comment or be unexported (golint)
    • Line 66: warning: exported method Atom.SetQuoted should have comment or be unexported (golint)
    • Line 74: warning: exported type WrongAtom should have comment or be unexported (golint)
    • Line 96: warning: exported method Atom.Atom should have comment or be unexported (golint)
    • Line 141: warning: exported type Sequence should have comment or be unexported (golint)
    • Line 146: warning: exported type WrongSequence should have comment or be unexported (golint)
    • Line 170: warning: exported method Sequence.Seq should have comment or be unexported (golint)
    • Line 202: warning: exported type Brace should have comment or be unexported (golint)
    • Line 205: warning: exported const Undef should have comment (or a comment on this block) or be unexported (golint)
    • Line 241: warning: exported function FromRune should have comment or be unexported (golint)
    • Line 254: warning: exported method Brace.Opening should have comment or be unexported (golint)
    • Line 265: warning: exported method Brace.Closing should have comment or be unexported (golint)
    • Line 276: warning: exported method Sequence.Brace should have comment or be unexported (golint)
    • Line 280: warning: exported method Sequence.SetBrace should have comment or be unexported (golint)
    • /codeberg.org/fractalqb/xsx/pcompact.go
    • Line 9: warning: exported type CompactPrinter should have comment or be unexported (golint)
    • Line 15: warning: exported function Compact should have comment or be unexported (golint)
    • Line 20: warning: exported method CompactPrinter.Begin should have comment or be unexported (golint)
    • Line 49: warning: exported method CompactPrinter.End should have comment or be unexported (golint)
    • Line 60: warning: exported method CompactPrinter.Atom should have comment or be unexported (golint)
    • Line 70: warning: exported method CompactPrinter.Newline should have comment or be unexported (golint)
    • /codeberg.org/fractalqb/xsx/printer.go
    • Line 7: warning: exported type Printer should have comment or be unexported (golint)
    • Line 14: warning: exported type PrintWithPanic should have comment or be unexported (golint)
    • Line 16: warning: exported method PrintWithPanic.Begin should have comment or be unexported (golint)
    • Line 22: warning: exported method PrintWithPanic.End should have comment or be unexported (golint)
    • Line 28: warning: exported method PrintWithPanic.Atom should have comment or be unexported (golint)
    • Line 34: warning: exported method PrintWithPanic.Newline should have comment or be unexported (golint)
    • /codeberg.org/fractalqb/xsx/table/xsxtable.go
    • Line 11: warning: exported type Column should have comment or be unexported (golint)
    • Line 17: warning: exported type Definition should have comment or be unexported (golint)
    • Line 19: warning: exported function ReadDef should have comment or be unexported (golint)
    • Line 30: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 85: warning: exported method Definition.NextRow should have comment or be unexported (golint)
    • /codeberg.org/fractalqb/xsx/pnewline.go
    • Line 8: warning: exported type IndentingPrinter should have comment or be unexported (golint)
    • Line 17: warning: exported function Indenting should have comment or be unexported (golint)
    • Line 36: warning: exported method IndentingPrinter.Begin should have comment or be unexported (golint)
    • Line 62: warning: exported method IndentingPrinter.End should have comment or be unexported (golint)
    • Line 73: warning: exported method IndentingPrinter.Atom should have comment or be unexported (golint)
    • Line 87: warning: exported method IndentingPrinter.Newline should have comment or be unexported (golint)

gocyclo93%

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.


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!