Preparing report...

Report for go.einride.tech/here

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


golint18%

Golint is a linter for Go source code.

    • /go.einride.tech/here/routingv7/latlng.go
    • Line 23: warning: exported method LatLng.UnmarshalString should have comment or be unexported (golint)
    • Line 47: warning: exported method LatLng.UnmarshalJSON should have comment or be unexported (golint)
    • Line 55: warning: exported method LatLng.MarshalJSON should have comment or be unexported (golint)
    • /go.einride.tech/here/routingv7/types.go
    • Line 9: warning: exported type WaypointParameter should have comment or be unexported (golint)
    • Line 13: warning: exported type WaypointTypeEnum should have comment or be unexported (golint)
    • Line 16: warning: exported const WaypointTypInvalid should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: exported type WaypointType should have comment or be unexported (golint)
    • Line 46: warning: exported type GeoWaypoint should have comment or be unexported (golint)
    • Line 65: warning: exported method GeoWaypoint.QueryString should have comment or be unexported (golint)
    • Line 89: warning: exported type RoutingMode should have comment or be unexported (golint)
    • Line 122: warning: exported type RouteType should have comment or be unexported (golint)
    • Line 125: warning: comment on exported const RouteTypeFastest should be of the form "RouteTypeFastest ..." (golint)
    • Line 133: warning: comment on exported const RouteTypeShortest should be of the form "RouteTypeShortest ..." (golint)
    • Line 138: warning: comment on exported const RouteTypeBalanced should be of the form "RouteTypeBalanced ..." (golint)
    • Line 155: warning: exported type TransportModeType should have comment or be unexported (golint)
    • Line 158: warning: comment on exported const TransportModeCar should be of the form "TransportModeCar ..." (golint)
    • Line 160: warning: comment on exported const TransportModeCarHOV should be of the form "TransportModeCarHOV ..." (golint)
    • Line 162: warning: comment on exported const TransportModePedestrian should be of the form "TransportModePedestrian ..." (golint)
    • Line 166: warning: comment on exported const TransportModePublicTransport should be of the form "TransportModePublicTransport ..." (golint)
    • Line 170: warning: comment on exported const TransportModePublicTransportTimeTable should be of the form "TransportModePublicTransportTimeTable ..." (golint)
    • Line 175: warning: comment on exported const TransportModeTruck should be of the form "TransportModeTruck ..." (golint)
    • Line 178: warning: comment on exported const TransportModeBicycle should be of the form "TransportModeBicycle ..." (golint)
    • Line 208: warning: exported type TrafficModeType should have comment or be unexported (golint)
    • Line 211: warning: exported const TrafficModeTypeInvalid should have comment (or a comment on this block) or be unexported (golint)
    • Line 212: warning: comment on exported const TrafficModeTypeEnabled should be of the form "TrafficModeTypeEnabled ..." (golint)
    • Line 222: warning: comment on exported const TrafficModeTypeDisabled should be of the form "TrafficModeTypeDisabled ..." (golint)
    • Line 232: warning: comment on exported const TrafficModeTypeDefault should be of the form "TrafficModeTypeDefault ..." (golint)
    • Line 250: warning: exported type TruckType should have comment or be unexported (golint)
    • Line 253: warning: exported const TruckTypeInvalid should have comment (or a comment on this block) or be unexported (golint)
    • Line 321: warning: comment on exported const MatrixRouteSummaryAttributeTravelTime should be of the form "MatrixRouteSummaryAttributeTravelTime ..." (golint)
    • Line 323: warning: comment on exported const MatrixRouteSummaryAttributeCostFactor should be of the form "MatrixRouteSummaryAttributeCostFactor ..." (golint)
    • Line 325: warning: comment on exported const MatrixRouteSummaryAttributeDistance should be of the form "MatrixRouteSummaryAttributeDistance ..." (golint)
    • Line 327: warning: comment on exported const MatrixRouteSummaryAttributeRouteID should be of the form "MatrixRouteSummaryAttributeRouteID ..." (golint)
    • /go.einride.tech/here/routingv7/route.go
    • Line 5: warning: exported type Route should have comment or be unexported (golint)
    • Line 17: warning: exported type RouteSummary should have comment or be unexported (golint)
    • Line 82: warning: exported type RouteLinkFlag should have comment or be unexported (golint)
    • Line 85: warning: comment on exported const RouteLinkFlagBoatFerry should be of the form "RouteLinkFlagBoatFerry ..." (golint)
    • Line 87: warning: comment on exported const RouteLinkFlagDirtRoad should be of the form "RouteLinkFlagDirtRoad ..." (golint)
    • Line 89: warning: comment on exported const RouteLinkFlagHOVLane should be of the form "RouteLinkFlagHOVLane ..." (golint)
    • Line 91: warning: comment on exported const RouteLinkFlagMotorway should be of the form "RouteLinkFlagMotorway ..." (golint)
    • Line 93: warning: comment on exported const RouteLinkFlagNoThroughRoad should be of the form "RouteLinkFlagNoThroughRoad ..." (golint)
    • Line 95: warning: comment on exported const RouteLinkFlagPark should be of the form "RouteLinkFlagPark ..." (golint)
    • Line 97: warning: comment on exported const RouteLinkFlagPrivateRoad should be of the form "RouteLinkFlagPrivateRoad ..." (golint)
    • Line 99: warning: comment on exported const RouteLinkFlagRailFerry should be of the form "RouteLinkFlagRailFerry ..." (golint)
    • Line 101: warning: comment on exported const RouteLinkFlagTollRoad should be of the form "RouteLinkFlagTollRoad ..." (golint)
    • Line 103: warning: comment on exported const RouteLinkFlagTunnel should be of the form "RouteLinkFlagTunnel ..." (golint)
    • Line 105: warning: comment on exported const RouteLinkFlagBuiltUpArea should be of the form "RouteLinkFlagBuiltUpArea ..." (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!