Preparing report...

Report for github.com/i-love-flamingo/pugtemplate

A+    Excellent!    Found 20 issues across 83 files

Tweet

gofmt98%

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!


golint95%

Golint is a linter for Go source code.

    • pugtemplate/otto/file/file.go
    • Line 29: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 40: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 65: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 77: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 84: warning: exported method FileSet.File should have comment or be unexported (golint)
    • Line 84: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 94: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 104: warning: exported type File should have comment or be unexported (golint)
    • Line 111: warning: exported function NewFile should have comment or be unexported (golint)
    • Line 119: warning: exported method File.WithSourceMap should have comment or be unexported (golint)
    • Line 124: warning: exported method File.Name should have comment or be unexported (golint)
    • Line 128: warning: exported method File.Source should have comment or be unexported (golint)
    • Line 132: warning: exported method File.Base should have comment or be unexported (golint)
    • Line 136: warning: exported method File.Position should have comment or be unexported (golint)
    • pugtemplate/otto/ast/comments.go
    • Line 14: warning: exported const LEADING should have comment (or a comment on this block) or be unexported (golint)
    • Line 97: warning: exported function NewComments should have comment or be unexported (golint)
    • pugtemplate/otto/ast/node.go
    • Line 17: warning: comment on exported type Node should be of the form "Node ..." (with optional leading article) (golint)
    • Line 28: warning: comment on exported type Expression should be of the form "Expression ..." (with optional leading article) (golint)
    • Line 34: warning: exported type ArrayLiteral should have comment or be unexported (golint)
    • Line 40: warning: exported type AssignExpression should have comment or be unexported (golint)
    • Line 46: warning: exported type BadExpression should have comment or be unexported (golint)
    • Line 51: warning: exported type BinaryExpression should have comment or be unexported (golint)
    • Line 58: warning: exported type BooleanLiteral should have comment or be unexported (golint)
    • Line 64: warning: exported type BracketExpression should have comment or be unexported (golint)
    • Line 71: warning: exported type CallExpression should have comment or be unexported (golint)
    • Line 78: warning: exported type ConditionalExpression should have comment or be unexported (golint)
    • Line 84: warning: exported type DotExpression should have comment or be unexported (golint)
    • Line 89: warning: exported type EmptyExpression should have comment or be unexported (golint)
    • Line 94: warning: exported type FunctionLiteral should have comment or be unexported (golint)
    • Line 104: warning: exported type Identifier should have comment or be unexported (golint)
    • Line 109: warning: exported type NewExpression should have comment or be unexported (golint)
    • Line 117: warning: exported type NullLiteral should have comment or be unexported (golint)
    • Line 122: warning: exported type NumberLiteral should have comment or be unexported (golint)
    • Line 128: warning: exported type ObjectLiteral should have comment or be unexported (golint)
    • Line 134: warning: exported type ParameterList should have comment or be unexported (golint)
    • Line 140: warning: exported type Property should have comment or be unexported (golint)
    • Line 146: warning: exported type RegExpLiteral should have comment or be unexported (golint)
    • Line 154: warning: exported type SequenceExpression should have comment or be unexported (golint)
    • Line 158: warning: exported type StringLiteral should have comment or be unexported (golint)
    • Line 164: warning: exported type ThisExpression should have comment or be unexported (golint)
    • Line 168: warning: exported type UnaryExpression should have comment or be unexported (golint)
    • Line 175: warning: exported type VariableExpression should have comment or be unexported (golint)
    • Line 212: warning: comment on exported type Statement should be of the form "Statement ..." (with optional leading article) (golint)
    • Line 218: warning: exported type BadStatement should have comment or be unexported (golint)
    • Line 223: warning: exported type BlockStatement should have comment or be unexported (golint)
    • Line 229: warning: exported type BranchStatement should have comment or be unexported (golint)
    • Line 235: warning: exported type CaseStatement should have comment or be unexported (golint)
    • Line 241: warning: exported type CatchStatement should have comment or be unexported (golint)
    • Line 247: warning: exported type DebuggerStatement should have comment or be unexported (golint)
    • Line 251: warning: exported type DoWhileStatement should have comment or be unexported (golint)
    • Line 257: warning: exported type EmptyStatement should have comment or be unexported (golint)
    • Line 261: warning: exported type ExpressionStatement should have comment or be unexported (golint)
    • Line 265: warning: exported type ForInStatement should have comment or be unexported (golint)
    • Line 272: warning: exported type ForStatement should have comment or be unexported (golint)
    • Line 280: warning: exported type FunctionStatement should have comment or be unexported (golint)
    • Line 284: warning: exported type IfStatement should have comment or be unexported (golint)
    • Line 291: warning: exported type LabelledStatement should have comment or be unexported (golint)
    • Line 297: warning: exported type ReturnStatement should have comment or be unexported (golint)
    • Line 302: warning: exported type SwitchStatement should have comment or be unexported (golint)
    • Line 309: warning: exported type ThrowStatement should have comment or be unexported (golint)
    • Line 314: warning: exported type TryStatement should have comment or be unexported (golint)
    • Line 321: warning: exported type VariableStatement should have comment or be unexported (golint)
    • Line 326: warning: exported type WhileStatement should have comment or be unexported (golint)
    • Line 332: warning: exported type WithStatement should have comment or be unexported (golint)
    • Line 368: warning: comment on exported type Declaration should be of the form "Declaration ..." (with optional leading article) (golint)
    • Line 373: warning: exported type FunctionDeclaration should have comment or be unexported (golint)
    • Line 377: warning: exported type VariableDeclaration should have comment or be unexported (golint)
    • Line 392: warning: exported type Program should have comment or be unexported (golint)
    • Line 406: warning: exported method ArrayLiteral.Idx0 should have comment or be unexported (golint)
    • Line 406: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 407: warning: exported method AssignExpression.Idx0 should have comment or be unexported (golint)
    • Line 407: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 408: warning: exported method BadExpression.Idx0 should have comment or be unexported (golint)
    • Line 408: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 409: warning: exported method BinaryExpression.Idx0 should have comment or be unexported (golint)
    • Line 409: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 410: warning: exported method BooleanLiteral.Idx0 should have comment or be unexported (golint)
    • Line 410: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 411: warning: exported method BracketExpression.Idx0 should have comment or be unexported (golint)
    • Line 411: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 412: warning: exported method CallExpression.Idx0 should have comment or be unexported (golint)
    • Line 412: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 413: warning: exported method ConditionalExpression.Idx0 should have comment or be unexported (golint)
    • Line 413: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 414: warning: exported method DotExpression.Idx0 should have comment or be unexported (golint)
    • Line 414: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 415: warning: exported method EmptyExpression.Idx0 should have comment or be unexported (golint)
    • Line 415: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 416: warning: exported method FunctionLiteral.Idx0 should have comment or be unexported (golint)
    • Line 416: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 417: warning: exported method Identifier.Idx0 should have comment or be unexported (golint)
    • Line 417: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 418: warning: exported method NewExpression.Idx0 should have comment or be unexported (golint)
    • Line 418: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 419: warning: exported method NullLiteral.Idx0 should have comment or be unexported (golint)
    • Line 419: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 420: warning: exported method NumberLiteral.Idx0 should have comment or be unexported (golint)
    • Line 420: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 421: warning: exported method ObjectLiteral.Idx0 should have comment or be unexported (golint)
    • Line 421: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 422: warning: exported method RegExpLiteral.Idx0 should have comment or be unexported (golint)
    • Line 422: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 423: warning: exported method SequenceExpression.Idx0 should have comment or be unexported (golint)
    • Line 423: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 424: warning: exported method StringLiteral.Idx0 should have comment or be unexported (golint)
    • Line 424: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 425: warning: exported method ThisExpression.Idx0 should have comment or be unexported (golint)
    • Line 425: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 426: warning: exported method UnaryExpression.Idx0 should have comment or be unexported (golint)
    • Line 426: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 427: warning: exported method VariableExpression.Idx0 should have comment or be unexported (golint)
    • Line 427: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 429: warning: exported method BadStatement.Idx0 should have comment or be unexported (golint)
    • Line 429: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 430: warning: exported method BlockStatement.Idx0 should have comment or be unexported (golint)
    • Line 430: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 431: warning: exported method BranchStatement.Idx0 should have comment or be unexported (golint)
    • Line 431: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 432: warning: exported method CaseStatement.Idx0 should have comment or be unexported (golint)
    • Line 432: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 433: warning: exported method CatchStatement.Idx0 should have comment or be unexported (golint)
    • Line 433: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 434: warning: exported method DebuggerStatement.Idx0 should have comment or be unexported (golint)
    • Line 434: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 435: warning: exported method DoWhileStatement.Idx0 should have comment or be unexported (golint)
    • Line 435: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 436: warning: exported method EmptyStatement.Idx0 should have comment or be unexported (golint)
    • Line 436: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 437: warning: exported method ExpressionStatement.Idx0 should have comment or be unexported (golint)
    • Line 437: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 438: warning: exported method ForInStatement.Idx0 should have comment or be unexported (golint)
    • Line 438: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 439: warning: exported method ForStatement.Idx0 should have comment or be unexported (golint)
    • Line 439: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 440: warning: exported method FunctionStatement.Idx0 should have comment or be unexported (golint)
    • Line 440: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 441: warning: exported method IfStatement.Idx0 should have comment or be unexported (golint)
    • Line 441: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 442: warning: exported method LabelledStatement.Idx0 should have comment or be unexported (golint)
    • Line 442: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 443: warning: exported method Program.Idx0 should have comment or be unexported (golint)
    • Line 443: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 444: warning: exported method ReturnStatement.Idx0 should have comment or be unexported (golint)
    • Line 444: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 445: warning: exported method SwitchStatement.Idx0 should have comment or be unexported (golint)
    • Line 445: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 446: warning: exported method ThrowStatement.Idx0 should have comment or be unexported (golint)
    • Line 446: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 447: warning: exported method TryStatement.Idx0 should have comment or be unexported (golint)
    • Line 447: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 448: warning: exported method VariableStatement.Idx0 should have comment or be unexported (golint)
    • Line 448: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 449: warning: exported method WhileStatement.Idx0 should have comment or be unexported (golint)
    • Line 449: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 450: warning: exported method WithStatement.Idx0 should have comment or be unexported (golint)
    • Line 450: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 456: warning: exported method ArrayLiteral.Idx1 should have comment or be unexported (golint)
    • Line 456: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 457: warning: exported method AssignExpression.Idx1 should have comment or be unexported (golint)
    • Line 457: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 458: warning: exported method BadExpression.Idx1 should have comment or be unexported (golint)
    • Line 458: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 459: warning: exported method BinaryExpression.Idx1 should have comment or be unexported (golint)
    • Line 459: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 460: warning: exported method BooleanLiteral.Idx1 should have comment or be unexported (golint)
    • Line 460: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 461: warning: exported method BracketExpression.Idx1 should have comment or be unexported (golint)
    • Line 461: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 462: warning: exported method CallExpression.Idx1 should have comment or be unexported (golint)
    • Line 462: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 463: warning: exported method ConditionalExpression.Idx1 should have comment or be unexported (golint)
    • Line 463: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 464: warning: exported method DotExpression.Idx1 should have comment or be unexported (golint)
    • Line 464: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 465: warning: exported method EmptyExpression.Idx1 should have comment or be unexported (golint)
    • Line 465: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 466: warning: exported method FunctionLiteral.Idx1 should have comment or be unexported (golint)
    • Line 466: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 467: warning: exported method Identifier.Idx1 should have comment or be unexported (golint)
    • Line 467: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 468: warning: exported method NewExpression.Idx1 should have comment or be unexported (golint)
    • Line 468: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 469: warning: exported method NullLiteral.Idx1 should have comment or be unexported (golint)
    • Line 469: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 470: warning: exported method NumberLiteral.Idx1 should have comment or be unexported (golint)
    • Line 470: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 471: warning: exported method ObjectLiteral.Idx1 should have comment or be unexported (golint)
    • Line 471: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 472: warning: exported method RegExpLiteral.Idx1 should have comment or be unexported (golint)
    • Line 472: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 473: warning: exported method SequenceExpression.Idx1 should have comment or be unexported (golint)
    • Line 473: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 474: warning: exported method StringLiteral.Idx1 should have comment or be unexported (golint)
    • Line 474: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 475: warning: exported method ThisExpression.Idx1 should have comment or be unexported (golint)
    • Line 475: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 476: warning: exported method UnaryExpression.Idx1 should have comment or be unexported (golint)
    • Line 476: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 482: warning: exported method VariableExpression.Idx1 should have comment or be unexported (golint)
    • Line 482: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 489: warning: exported method BadStatement.Idx1 should have comment or be unexported (golint)
    • Line 489: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 490: warning: exported method BlockStatement.Idx1 should have comment or be unexported (golint)
    • Line 490: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 491: warning: exported method BranchStatement.Idx1 should have comment or be unexported (golint)
    • Line 491: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 492: warning: exported method CaseStatement.Idx1 should have comment or be unexported (golint)
    • Line 492: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 493: warning: exported method CatchStatement.Idx1 should have comment or be unexported (golint)
    • Line 493: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 494: warning: exported method DebuggerStatement.Idx1 should have comment or be unexported (golint)
    • Line 494: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 495: warning: exported method DoWhileStatement.Idx1 should have comment or be unexported (golint)
    • Line 495: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 496: warning: exported method EmptyStatement.Idx1 should have comment or be unexported (golint)
    • Line 496: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 497: warning: exported method ExpressionStatement.Idx1 should have comment or be unexported (golint)
    • Line 497: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 498: warning: exported method ForInStatement.Idx1 should have comment or be unexported (golint)
    • Line 498: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 499: warning: exported method ForStatement.Idx1 should have comment or be unexported (golint)
    • Line 499: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 500: warning: exported method FunctionStatement.Idx1 should have comment or be unexported (golint)
    • Line 500: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 501: warning: exported method IfStatement.Idx1 should have comment or be unexported (golint)
    • Line 501: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 507: warning: exported method LabelledStatement.Idx1 should have comment or be unexported (golint)
    • Line 507: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 508: warning: exported method Program.Idx1 should have comment or be unexported (golint)
    • Line 508: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 509: warning: exported method ReturnStatement.Idx1 should have comment or be unexported (golint)
    • Line 509: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 510: warning: exported method SwitchStatement.Idx1 should have comment or be unexported (golint)
    • Line 510: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 511: warning: exported method ThrowStatement.Idx1 should have comment or be unexported (golint)
    • Line 511: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 512: warning: exported method TryStatement.Idx1 should have comment or be unexported (golint)
    • Line 512: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 513: warning: exported method VariableStatement.Idx1 should have comment or be unexported (golint)
    • Line 513: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 514: warning: exported method WhileStatement.Idx1 should have comment or be unexported (golint)
    • Line 514: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 515: warning: exported method WithStatement.Idx1 should have comment or be unexported (golint)
    • Line 515: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)

gocyclo81%

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.

    • pugtemplate/otto/parser/lexer.go
    • Line 121: warning: cyclomatic complexity 58 of function (*_parser).scan() is high (> 15) (gocyclo)
    • Line 666: warning: cyclomatic complexity 38 of function parseStringLiteral() is high (> 15) (gocyclo)
    • Line 791: warning: cyclomatic complexity 20 of function (*_parser).scanNumericLiteral() is high (> 15) (gocyclo)
    • Line 559: warning: cyclomatic complexity 19 of function (*_parser).scanString() is high (> 15) (gocyclo)
    • pugtemplate/otto/parser/expression.go
    • Line 30: warning: cyclomatic complexity 21 of function (*_parser).parsePrimaryExpression() is high (> 15) (gocyclo)
    • Line 924: warning: cyclomatic complexity 19 of function (*_parser).parseAssignmentExpression() is high (> 15) (gocyclo)
    • pugtemplate/pugjs/tpl_exec.go
    • Line 853: warning: cyclomatic complexity 31 of function (*state).validateType() is high (> 15) (gocyclo)
    • Line 342: warning: cyclomatic complexity 29 of function (*state).walkRange() is high (> 15) (gocyclo)
    • Line 931: warning: cyclomatic complexity 27 of function (*state).evalArg() is high (> 15) (gocyclo)
    • Line 664: warning: cyclomatic complexity 23 of function (*state).evalField() is high (> 15) (gocyclo)
    • Line 763: warning: cyclomatic complexity 22 of function (*state).evalCall() is high (> 15) (gocyclo)
    • pugtemplate/otto/parser/statement.go
    • Line 51: warning: cyclomatic complexity 28 of function (*_parser).parseStatement() is high (> 15) (gocyclo)
    • Line 565: warning: cyclomatic complexity 17 of function (*_parser).parseForOrForInStatement() is high (> 15) (gocyclo)

ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell98%

Misspell Finds commonly misspelled English words