Preparing report...

Report for github.com/brittonhayes/dnd

A+    Excellent!    Found 17 issues across 38 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!


golint55%

Golint is a linter for Go source code.

    • dnd/models/mechanics.go
    • Line 30: warning: exported method Conditions.JSON should have comment or be unexported (golint)
    • Line 42: warning: exported method DamageType.JSON should have comment or be unexported (golint)
    • Line 61: warning: exported method MagicSchool.JSON should have comment or be unexported (golint)
    • dnd/internal/gen/generators.go
    • Line 15: warning: exported function GenerateMocks should have comment or be unexported (golint)
    • Line 48: warning: exported function GenerateServices should have comment or be unexported (golint)
    • dnd/models/character.go
    • Line 32: warning: exported method Skill.JSON should have comment or be unexported (golint)
    • Line 63: warning: exported method AbilityScore.JSON should have comment or be unexported (golint)
    • Line 91: warning: exported method Proficiency.JSON should have comment or be unexported (golint)
    • Line 116: warning: exported method Language.JSON should have comment or be unexported (golint)
    • dnd/client.go
    • Line 3: warning: exported type Client should have comment or be unexported (golint)
    • dnd/endpoints/endpoints.go
    • Line 3: warning: exported type Endpoint should have comment or be unexported (golint)
    • Line 6: warning: exported const BaseURL should have comment (or a comment on this block) or be unexported (golint)
    • dnd/models/common.go
    • Line 22: warning: exported type Sheriff should have comment or be unexported (golint)
    • Line 26: warning: comment on exported type Resource should be of the form "Resource ..." (with optional leading article) (golint)
    • Line 39: warning: exported method Resource.JSON should have comment or be unexported (golint)
    • Line 43: warning: comment on exported method Resource.ResultsNames should be of the form "ResultsNames ..." (golint)
    • Line 66: warning: exported method APIReference.JSON should have comment or be unexported (golint)
    • Line 80: warning: comment on exported method APIReference.GetURL should be of the form "GetURL ..." (golint)
    • Line 98: warning: exported method ClassAPIResource.JSON should have comment or be unexported (golint)
    • Line 114: warning: exported method Choice.JSON should have comment or be unexported (golint)
    • Line 128: warning: exported method Cost.JSON should have comment or be unexported (golint)
    • Line 142: warning: exported method AbilityBonus.JSON should have comment or be unexported (golint)
    • dnd/models/equipment.go
    • Line 64: warning: exported method Weapon.JSON should have comment or be unexported (golint)
    • Line 68: warning: exported type Range should have comment or be unexported (golint)
    • Line 78: warning: comment on exported method Weapon.GetIndex should be of the form "GetIndex ..." (golint)
    • Line 122: warning: exported method Armor.JSON should have comment or be unexported (golint)
    • Line 131: warning: comment on exported method Armor.GetIndex should be of the form "GetIndex ..." (golint)
    • Line 148: warning: exported method ArmorClass.JSON should have comment or be unexported (golint)
    • Line 177: warning: exported method AdventuringGear.JSON should have comment or be unexported (golint)
    • Line 186: warning: comment on exported method AdventuringGear.GetIndex should be of the form "GetIndex ..." (golint)
    • Line 221: warning: exported method EquipmentPack.JSON should have comment or be unexported (golint)
    • Line 225: warning: exported type PackContents should have comment or be unexported (golint)
    • Line 234: warning: exported method PackContents.JSON should have comment or be unexported (golint)
    • Line 243: warning: comment on exported method EquipmentPack.GetIndex should be of the form "GetIndex ..." (golint)
    • Line 268: warning: exported method WeaponProperties.JSON should have comment or be unexported (golint)
    • dnd/models/monsters.go
    • Line 7: warning: exported type Monster should have comment or be unexported (golint)
    • Line 102: warning: exported method Monster.JSON should have comment or be unexported (golint)
    • Line 106: warning: exported type ActionDamage should have comment or be unexported (golint)
    • Line 111: warning: exported type Action should have comment or be unexported (golint)
    • Line 119: warning: exported type Options should have comment or be unexported (golint)
    • Line 124: warning: exported type LegendaryAction should have comment or be unexported (golint)
    • Line 131: warning: exported type MonsterProficiency should have comment or be unexported (golint)
    • Line 136: warning: exported type Reaction should have comment or be unexported (golint)
    • Line 141: warning: exported type Sense should have comment or be unexported (golint)
    • Line 149: warning: exported type SpecialAbility should have comment or be unexported (golint)
    • Line 155: warning: exported type DC should have comment or be unexported (golint)
    • Line 161: warning: exported type Speed should have comment or be unexported (golint)
    • dnd/models/races.go
    • Line 65: warning: exported method Race.JSON should have comment or be unexported (golint)
    • Line 109: warning: exported method SubRace.JSON should have comment or be unexported (golint)
    • Line 142: warning: exported method Traits.JSON should have comment or be unexported (golint)
    • dnd/internal/utils/utils.go
    • Line 14: warning: exported function URL should have comment or be unexported (golint)
    • Line 18: warning: exported function URLWithQuery should have comment or be unexported (golint)
    • dnd/models/classes.go
    • Line 52: warning: exported method Class.JSON should have comment or be unexported (golint)
    • Line 85: warning: exported method Subclass.JSON should have comment or be unexported (golint)
    • Line 114: warning: exported method Features.JSON should have comment or be unexported (golint)
    • Line 137: warning: exported method StartingEquipment.JSON should have comment or be unexported (golint)
    • Line 148: warning: exported method StartingEquipmentItem.JSON should have comment or be unexported (golint)
    • dnd/models/rules.go
    • Line 10: warning: exported type Rules should have comment or be unexported (golint)
    • Line 18: warning: exported method Rules.JSON should have comment or be unexported (golint)
    • Line 22: warning: exported type RulesSubsection should have comment or be unexported (golint)
    • Line 29: warning: exported method RulesSubsection.JSON should have comment or be unexported (golint)
    • Line 38: warning: comment on exported method Rules.GetIndex should be of the form "GetIndex ..." (golint)
    • dnd/docs.go
    • Line 1: warning: package comment should be of the form "Package dnd ..." (golint)
    • dnd/internal/gen/config.go
    • Line 8: warning: exported type ServiceDefinition should have comment or be unexported (golint)
    • Line 15: warning: exported type Options should have comment or be unexported (golint)
    • Line 17: warning: exported type APIRequest should have comment or be unexported (golint)
    • Line 26: warning: exported type EndpointDef should have comment or be unexported (golint)
    • Line 32: warning: exported var Endpoints should have comment or be unexported (golint)
    • Line 57: warning: exported var Services 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!