Preparing report...

Report for github.com/Georepublic/pg_scheduleserv

(v0.1.0)

A    Great!    Found 44 issues across 49 files

Tweet

gofmt97%

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!


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.


golint12%

Golint is a linter for Go source code.

    • internal/api/vehicle.go
    • Line 42: warning: comment on exported method Server.CreateVehicle should be of the form "CreateVehicle ..." (golint)
    • Line 88: warning: don't use underscores in Go names; var created_vehicle should be createdVehicle (golint)
    • Line 109: warning: don't use underscores in Go names; var project_id should be projectID (golint)
    • Line 115: warning: don't use underscores in Go names; var created_vehicle should be createdVehicle (golint)
    • Line 137: warning: don't use underscores in Go names; var vehicle_id should be vehicleID (golint)
    • Line 143: warning: don't use underscores in Go names; var created_vehicle should be createdVehicle (golint)
    • Line 173: warning: don't use underscores in Go names; var vehicle_id should be vehicleID (golint)
    • Line 201: warning: don't use underscores in Go names; var created_vehicle should be createdVehicle (golint)
    • Line 223: warning: don't use underscores in Go names; var vehicle_id should be vehicleID (golint)
    • internal/util/formatter.go
    • Line 36: warning: exported type Formatter should have comment or be unexported (golint)
    • Line 40: warning: exported function NewFormatter should have comment or be unexported (golint)
    • e2e_test/util.go
    • Line 40: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 46: warning: don't use underscores in Go names; func parameter db_url should be dbURL (golint)
    • Line 56: warning: don't use underscores in Go names; func parameter db_url should be dbURL (golint)
    • internal/config/config.go
    • Line 33: warning: exported type Config should have comment or be unexported (golint)
    • Line 42: warning: exported function LoadConfig should have comment or be unexported (golint)
    • internal/database/db.go
    • Line 38: warning: exported type DBTX should have comment or be unexported (golint)
    • Line 44: warning: exported function New should have comment or be unexported (golint)
    • Line 48: warning: exported type Queries should have comment or be unexported (golint)
    • Line 52: warning: exported method Queries.DBWithTx should have comment or be unexported (golint)
    • internal/database/schedule.go
    • Line 39: warning: exported method Queries.DBCreateSchedule should have comment or be unexported (golint)
    • Line 78: warning: exported method Queries.DBGetSchedule should have comment or be unexported (golint)
    • Line 89: warning: exported method Queries.DBGetScheduleJob should have comment or be unexported (golint)
    • Line 100: warning: exported method Queries.DBGetScheduleShipment should have comment or be unexported (golint)
    • Line 111: warning: exported method Queries.DBGetScheduleVehicle should have comment or be unexported (golint)
    • Line 124: warning: exported method Queries.DBDeleteSchedule should have comment or be unexported (golint)
    • internal/api/job_tw.go
    • Line 88: warning: don't use underscores in Go names; var created_job should be createdJob (golint)
    • Line 109: warning: don't use underscores in Go names; var job_id should be jobID (golint)
    • Line 115: warning: don't use underscores in Go names; var created_vehicle should be createdVehicle (golint)
    • Line 124: warning: comment on exported method Server.DeleteJobTimeWindow should be of the form "DeleteJobTimeWindow ..." (golint)
    • Line 137: warning: don't use underscores in Go names; var job_id should be jobID (golint)
    • internal/api/shipment_tw.go
    • Line 88: warning: don't use underscores in Go names; var created_shipment should be createdShipment (golint)
    • Line 109: warning: don't use underscores in Go names; var shipment_id should be shipmentID (golint)
    • Line 115: warning: don't use underscores in Go names; var created_vehicle should be createdVehicle (golint)
    • Line 124: warning: comment on exported method Server.DeleteShipmentTimeWindow should be of the form "DeleteShipmentTimeWindow ..." (golint)
    • Line 137: warning: don't use underscores in Go names; var shipment_id should be shipmentID (golint)
    • internal/api/server.go
    • Line 43: warning: exported type Server should have comment or be unexported (golint)
    • Line 51: warning: exported function NewServer should have comment or be unexported (golint)
    • Line 66: warning: exported method Server.Start should have comment or be unexported (golint)
    • e2e_test/break_test.go
    • Line 46: warning: don't use underscores in Go names; var test_db should be testDb (golint)
    • Line 172: warning: don't use underscores in Go names; var test_db should be testDb (golint)
    • Line 247: warning: don't use underscores in Go names; var test_db should be testDb (golint)
    • Line 308: warning: don't use underscores in Go names; var test_db should be testDb (golint)
    • Line 439: warning: don't use underscores in Go names; var test_db should be testDb (golint)
    • e2e_test/break_tw_test.go
    • Line 46: warning: don't use underscores in Go names; var test_db should be testDb (golint)
    • Line 192: warning: don't use underscores in Go names; var test_db should be testDb (golint)
    • Line 265: warning: don't use underscores in Go names; var test_db should be testDb (golint)
    • internal/database/break.go
    • Line 38: warning: exported type CreateBreakParams should have comment or be unexported (golint)
    • Line 44: warning: exported type UpdateBreakParams should have comment or be unexported (golint)
    • Line 50: warning: exported method Queries.DBCreateBreak should have comment or be unexported (golint)
    • Line 52: warning: don't use underscores in Go names; var return_sql should be returnSQL (golint)
    • Line 57: warning: exported method Queries.DBGetBreak should have comment or be unexported (golint)
    • Line 58: warning: don't use underscores in Go names; var table_name should be tableName (golint)
    • Line 59: warning: don't use underscores in Go names; var additional_query should be additionalQuery (golint)
    • Line 65: warning: exported method Queries.DBListBreaks should have comment or be unexported (golint)
    • Line 66: warning: don't use underscores in Go names; var table_name should be tableName (golint)
    • Line 67: warning: don't use underscores in Go names; var additional_query should be additionalQuery (golint)
    • Line 77: warning: exported method Queries.DBUpdateBreak should have comment or be unexported (golint)
    • Line 77: warning: don't use underscores in Go names; method parameter break_id should be breakID (golint)
    • Line 79: warning: don't use underscores in Go names; var return_sql should be returnSQL (golint)
    • Line 84: warning: exported method Queries.DBDeleteBreak should have comment or be unexported (golint)
    • Line 86: warning: don't use underscores in Go names; var return_sql should be returnSQL (golint)
    • internal/database/models.go
    • Line 35: warning: exported type Break should have comment or be unexported (golint)
    • Line 44: warning: exported type BreakTimeWindow should have comment or be unexported (golint)
    • Line 52: warning: exported type Job should have comment or be unexported (golint)
    • Line 66: warning: exported type JobTimeWindow should have comment or be unexported (golint)
    • Line 74: warning: exported type Project should have comment or be unexported (golint)
    • Line 82: warning: exported type Shipment should have comment or be unexported (golint)
    • Line 97: warning: exported type ShipmentTimeWindow should have comment or be unexported (golint)
    • Line 106: warning: exported type Vehicle should have comment or be unexported (golint)
    • internal/database/project.go
    • Line 38: warning: exported type CreateProjectParams should have comment or be unexported (golint)
    • Line 43: warning: exported type UpdateProjectParams should have comment or be unexported (golint)
    • Line 48: warning: exported method Queries.DBCreateProject should have comment or be unexported (golint)
    • Line 50: warning: don't use underscores in Go names; var return_sql should be returnSQL (golint)
    • Line 55: warning: exported method Queries.DBGetProject should have comment or be unexported (golint)
    • Line 56: warning: don't use underscores in Go names; var table_name should be tableName (golint)
    • Line 57: warning: don't use underscores in Go names; var additional_query should be additionalQuery (golint)
    • Line 63: warning: exported method Queries.DBListProjects should have comment or be unexported (golint)
    • Line 64: warning: don't use underscores in Go names; var table_name should be tableName (golint)
    • Line 65: warning: don't use underscores in Go names; var additional_query should be additionalQuery (golint)
    • Line 75: warning: exported method Queries.DBUpdateProject should have comment or be unexported (golint)
    • Line 75: warning: don't use underscores in Go names; method parameter project_id should be projectID (golint)
    • Line 77: warning: don't use underscores in Go names; var return_sql should be returnSQL (golint)
    • Line 82: warning: exported method Queries.DBDeleteProject should have comment or be unexported (golint)
    • Line 84: warning: don't use underscores in Go names; var return_sql should be returnSQL (golint)
    • internal/api/break_tw.go
    • Line 76: warning: don't use underscores in Go names; var v_break should be vBreak (golint)
    • Line 88: warning: don't use underscores in Go names; var created_break should be createdBreak (golint)
    • Line 109: warning: don't use underscores in Go names; var break_id should be breakID (golint)
    • Line 115: warning: don't use underscores in Go names; var created_vehicle should be createdVehicle (golint)
    • Line 124: warning: comment on exported method Server.DeleteBreakTimeWindow should be of the form "DeleteBreakTimeWindow ..." (golint)
    • Line 137: warning: don't use underscores in Go names; var break_id should be breakID (golint)
    • internal/api/job.go
    • Line 88: warning: don't use underscores in Go names; var created_job should be createdJob (golint)
    • Line 109: warning: don't use underscores in Go names; var project_id should be projectID (golint)
    • Line 115: warning: don't use underscores in Go names; var created_job should be createdJob (golint)
    • Line 137: warning: don't use underscores in Go names; var job_id should be jobID (golint)
    • Line 143: warning: don't use underscores in Go names; var created_job should be createdJob (golint)
    • Line 152: warning: comment on exported method Server.UpdateJob should be of the form "UpdateJob ..." (golint)
    • Line 172: warning: don't use underscores in Go names; var job_id should be jobID (golint)
    • Line 200: warning: don't use underscores in Go names; var created_job should be createdJob (golint)
    • Line 209: warning: comment on exported method Server.DeleteJob should be of the form "DeleteJob ..." (golint)
    • Line 222: warning: don't use underscores in Go names; var job_id should be jobID (golint)
    • internal/database/shipment_tw.go
    • Line 38: warning: exported type CreateShipmentTimeWindowParams should have comment or be unexported (golint)
    • Line 45: warning: exported method Queries.DBCreateShipmentTimeWindow should have comment or be unexported (golint)
    • Line 47: warning: don't use underscores in Go names; var return_sql should be returnSQL (golint)
    • Line 52: warning: exported method Queries.DBListShipmentTimeWindows should have comment or be unexported (golint)
    • Line 53: warning: don't use underscores in Go names; var table_name should be tableName (golint)
    • Line 54: warning: don't use underscores in Go names; var additional_query should be additionalQuery (golint)
    • Line 64: warning: exported method Queries.DBDeleteShipmentTimeWindow should have comment or be unexported (golint)
    • Line 66: warning: don't use underscores in Go names; var return_sql should be returnSQL (golint)
    • internal/util/format_ical.go
    • Line 42: warning: exported type Schedule should have comment or be unexported (golint)
    • Line 62: warning: exported type ICal should have comment or be unexported (golint)
    • Line 74: warning: comment on exported const ScheduleIcal should be of the form "ScheduleIcal ..." (golint)
    • Line 79: warning: don't use underscores in Go names; func parameter time_str should be timeStr (golint)
    • Line 124: warning: exported function SerializeICal should have comment or be unexported (golint)
    • Line 141: warning: exported method Formatter.FormatICAL should have comment or be unexported (golint)
    • Line 159: warning: exported method Formatter.GetScheduleICal should have comment or be unexported (golint)
    • e2e_test/project_test.go
    • Line 46: warning: don't use underscores in Go names; var test_db should be testDb (golint)
    • Line 156: warning: don't use underscores in Go names; var test_db should be testDb (golint)
    • Line 216: warning: don't use underscores in Go names; var test_db should be testDb (golint)
    • Line 288: warning: don't use underscores in Go names; var test_db should be testDb (golint)
    • Line 424: warning: don't use underscores in Go names; var test_db should be testDb (golint)
    • e2e_test/shipment_tw_test.go
    • Line 46: warning: don't use underscores in Go names; var test_db should be testDb (golint)
    • Line 244: warning: don't use underscores in Go names; var test_db should be testDb (golint)
    • Line 342: warning: don't use underscores in Go names; var test_db should be testDb (golint)
    • internal/database/vehicle.go
    • Line 38: warning: exported type CreateVehicleParams should have comment or be unexported (golint)
    • Line 50: warning: exported type UpdateVehicleParams should have comment or be unexported (golint)
    • Line 62: warning: exported method Queries.DBCreateVehicle should have comment or be unexported (golint)
    • Line 64: warning: don't use underscores in Go names; var return_sql should be returnSQL (golint)
    • Line 69: warning: exported method Queries.DBGetVehicle should have comment or be unexported (golint)
    • Line 70: warning: don't use underscores in Go names; var table_name should be tableName (golint)
    • Line 71: warning: don't use underscores in Go names; var additional_query should be additionalQuery (golint)
    • Line 77: warning: exported method Queries.DBListVehicles should have comment or be unexported (golint)
    • Line 78: warning: don't use underscores in Go names; var table_name should be tableName (golint)
    • Line 79: warning: don't use underscores in Go names; var additional_query should be additionalQuery (golint)
    • Line 89: warning: exported method Queries.DBUpdateVehicle should have comment or be unexported (golint)
    • Line 89: warning: don't use underscores in Go names; method parameter vehicle_id should be vehicleID (golint)
    • Line 91: warning: don't use underscores in Go names; var return_sql should be returnSQL (golint)
    • Line 96: warning: exported method Queries.DBDeleteVehicle should have comment or be unexported (golint)
    • Line 98: warning: don't use underscores in Go names; var return_sql should be returnSQL (golint)
    • Line 105: warning: don't use underscores in Go names; var start_index should be startIndex (golint)
    • Line 105: warning: don't use underscores in Go names; var end_index should be endIndex (golint)
    • Line 120: warning: don't use underscores in Go names; var start_latitude should be startLatitude (golint)
    • Line 120: warning: don't use underscores in Go names; var start_longitude should be startLongitude (golint)
    • Line 121: warning: don't use underscores in Go names; var end_latitude should be endLatitude (golint)
    • Line 121: warning: don't use underscores in Go names; var end_longitude should be endLongitude (golint)
    • Line 137: warning: don't use underscores in Go names; var start_index should be startIndex (golint)
    • Line 137: warning: don't use underscores in Go names; var end_index should be endIndex (golint)
    • Line 155: warning: don't use underscores in Go names; var start_latitude should be startLatitude (golint)
    • Line 155: warning: don't use underscores in Go names; var start_longitude should be startLongitude (golint)
    • Line 156: warning: don't use underscores in Go names; var end_latitude should be endLatitude (golint)
    • Line 156: warning: don't use underscores in Go names; var end_longitude should be endLongitude (golint)
    • internal/util/validator.go
    • Line 50: warning: exported function NewValidator should have comment or be unexported (golint)
    • Line 63: warning: comment on exported function ValidateInput should be of the form "ValidateInput ..." (golint)
    • e2e_test/job_test.go
    • Line 49: warning: don't use underscores in Go names; var test_db should be testDb (golint)
    • Line 337: warning: don't use underscores in Go names; var test_db should be testDb (golint)
    • Line 422: warning: don't use underscores in Go names; var test_db should be testDb (golint)
    • Line 491: warning: don't use underscores in Go names; var test_db should be testDb (golint)
    • Line 947: warning: don't use underscores in Go names; var test_db should be testDb (golint)
    • Line 1003: warning: don't use underscores in Go names; var test_db should be testDb (golint)
    • Line 1083: warning: don't use underscores in Go names; var test_db should be testDb (golint)
    • e2e_test/schedule_test.go
    • Line 49: warning: don't use underscores in Go names; var test_db should be testDb (golint)
    • Line 285: warning: don't use underscores in Go names; var test_db should be testDb (golint)
    • Line 439: warning: don't use underscores in Go names; var test_db should be testDb (golint)
    • Line 555: warning: don't use underscores in Go names; var test_db should be testDb (golint)
    • e2e_test/vehicle_test.go
    • Line 49: warning: don't use underscores in Go names; var test_db should be testDb (golint)
    • Line 361: warning: don't use underscores in Go names; var test_db should be testDb (golint)
    • Line 454: warning: don't use underscores in Go names; var test_db should be testDb (golint)
    • Line 527: warning: don't use underscores in Go names; var test_db should be testDb (golint)
    • Line 971: warning: don't use underscores in Go names; var test_db should be testDb (golint)
    • Line 1027: warning: don't use underscores in Go names; var test_db should be testDb (golint)
    • Line 1181: warning: don't use underscores in Go names; var test_db should be testDb (golint)
    • internal/database/job.go
    • Line 38: warning: exported type CreateJobParams should have comment or be unexported (golint)
    • Line 49: warning: exported type UpdateJobParams should have comment or be unexported (golint)
    • Line 60: warning: exported method Queries.DBCreateJob should have comment or be unexported (golint)
    • Line 62: warning: don't use underscores in Go names; var return_sql should be returnSQL (golint)
    • Line 67: warning: exported method Queries.DBGetJob should have comment or be unexported (golint)
    • Line 68: warning: don't use underscores in Go names; var table_name should be tableName (golint)
    • Line 69: warning: don't use underscores in Go names; var additional_query should be additionalQuery (golint)
    • Line 75: warning: exported method Queries.DBListJobs should have comment or be unexported (golint)
    • Line 76: warning: don't use underscores in Go names; var table_name should be tableName (golint)
    • Line 77: warning: don't use underscores in Go names; var additional_query should be additionalQuery (golint)
    • Line 87: warning: exported method Queries.DBUpdateJob should have comment or be unexported (golint)
    • Line 87: warning: don't use underscores in Go names; method parameter job_id should be jobID (golint)
    • Line 89: warning: don't use underscores in Go names; var return_sql should be returnSQL (golint)
    • Line 94: warning: exported method Queries.DBDeleteJob should have comment or be unexported (golint)
    • Line 96: warning: don't use underscores in Go names; var return_sql should be returnSQL (golint)
    • Line 103: warning: don't use underscores in Go names; var location_index should be locationIndex (golint)
    • Line 129: warning: don't use underscores in Go names; var location_index should be locationIndex (golint)
    • internal/database/job_tw.go
    • Line 38: warning: exported type CreateJobTimeWindowParams should have comment or be unexported (golint)
    • Line 44: warning: exported method Queries.DBCreateJobTimeWindow should have comment or be unexported (golint)
    • Line 46: warning: don't use underscores in Go names; var return_sql should be returnSQL (golint)
    • Line 51: warning: exported method Queries.DBListJobTimeWindows should have comment or be unexported (golint)
    • Line 52: warning: don't use underscores in Go names; var table_name should be tableName (golint)
    • Line 53: warning: don't use underscores in Go names; var additional_query should be additionalQuery (golint)
    • Line 63: warning: exported method Queries.DBDeleteJobTimeWindow should have comment or be unexported (golint)
    • Line 65: warning: don't use underscores in Go names; var return_sql should be returnSQL (golint)
    • internal/util/query.go
    • Line 39: warning: exported type PartialSQL should have comment or be unexported (golint)
    • Line 44: warning: exported type LocationParams should have comment or be unexported (golint)
    • Line 49: warning: comment on exported function GetPartialSQL should be of the form "GetPartialSQL ..." (golint)
    • Line 120: warning: exported function GetOutputFields should have comment or be unexported (golint)
    • e2e_test/job_tw_test.go
    • Line 46: warning: don't use underscores in Go names; var test_db should be testDb (golint)
    • Line 192: warning: don't use underscores in Go names; var test_db should be testDb (golint)
    • Line 265: warning: don't use underscores in Go names; var test_db should be testDb (golint)
    • e2e_test/shipment_test.go
    • Line 50: warning: don't use underscores in Go names; var test_db should be testDb (golint)
    • Line 358: warning: don't use underscores in Go names; var test_db should be testDb (golint)
    • Line 451: warning: don't use underscores in Go names; var test_db should be testDb (golint)
    • Line 524: warning: don't use underscores in Go names; var test_db should be testDb (golint)
    • Line 992: warning: don't use underscores in Go names; var test_db should be testDb (golint)
    • Line 1048: warning: don't use underscores in Go names; var test_db should be testDb (golint)
    • Line 1147: warning: don't use underscores in Go names; var test_db should be testDb (golint)
    • internal/api/shipment.go
    • Line 42: warning: comment on exported method Server.CreateShipment should be of the form "CreateShipment ..." (golint)
    • Line 88: warning: don't use underscores in Go names; var created_shipment should be createdShipment (golint)
    • Line 109: warning: don't use underscores in Go names; var project_id should be projectID (golint)
    • Line 115: warning: don't use underscores in Go names; var created_shipment should be createdShipment (golint)
    • Line 137: warning: don't use underscores in Go names; var shipment_id should be shipmentID (golint)
    • Line 143: warning: don't use underscores in Go names; var created_shipment should be createdShipment (golint)
    • Line 173: warning: don't use underscores in Go names; var shipment_id should be shipmentID (golint)
    • Line 201: warning: don't use underscores in Go names; var created_shipment should be createdShipment (golint)
    • Line 223: warning: don't use underscores in Go names; var shipment_id should be shipmentID (golint)
    • internal/util/format_json.go
    • Line 43: warning: exported method Formatter.FormatJSON should have comment or be unexported (golint)
    • Line 103: warning: exported type MultiError should have comment or be unexported (golint)
    • Line 107: warning: exported type NotFound should have comment or be unexported (golint)
    • Line 111: warning: exported type Success should have comment or be unexported (golint)
    • internal/util/logger.go
    • Line 39: warning: exported type StatusRespWr should have comment or be unexported (golint)
    • Line 44: warning: exported method StatusRespWr.WriteHeader should have comment or be unexported (golint)
    • Line 49: warning: exported function Logger should have comment or be unexported (golint)
    • internal/database/break_tw.go
    • Line 38: warning: exported type CreateBreakTimeWindowParams should have comment or be unexported (golint)
    • Line 44: warning: exported method Queries.DBCreateBreakTimeWindow should have comment or be unexported (golint)
    • Line 46: warning: don't use underscores in Go names; var return_sql should be returnSQL (golint)
    • Line 51: warning: exported method Queries.DBListBreakTimeWindows should have comment or be unexported (golint)
    • Line 52: warning: don't use underscores in Go names; var table_name should be tableName (golint)
    • Line 53: warning: don't use underscores in Go names; var additional_query should be additionalQuery (golint)
    • Line 63: warning: exported method Queries.DBDeleteBreakTimeWindow should have comment or be unexported (golint)
    • Line 65: warning: don't use underscores in Go names; var return_sql should be returnSQL (golint)
    • internal/database/querier.go
    • Line 39: warning: exported type Querier should have comment or be unexported (golint)
    • Line 44: warning: don't use underscores in Go names; interface method parameter break_id should be breakID (golint)
    • Line 56: warning: don't use underscores in Go names; interface method parameter job_id should be jobID (golint)
    • Line 68: warning: don't use underscores in Go names; interface method parameter project_id should be projectID (golint)
    • Line 83: warning: don't use underscores in Go names; interface method parameter shipment_id should be shipmentID (golint)
    • Line 95: warning: don't use underscores in Go names; interface method parameter vehicle_id should be vehicleID (golint)
    • internal/database/shipment.go
    • Line 38: warning: exported type CreateShipmentParams should have comment or be unexported (golint)
    • Line 50: warning: exported type UpdateShipmentParams should have comment or be unexported (golint)
    • Line 62: warning: exported method Queries.DBCreateShipment should have comment or be unexported (golint)
    • Line 64: warning: don't use underscores in Go names; var return_sql should be returnSQL (golint)
    • Line 69: warning: exported method Queries.DBGetShipment should have comment or be unexported (golint)
    • Line 70: warning: don't use underscores in Go names; var table_name should be tableName (golint)
    • Line 71: warning: don't use underscores in Go names; var additional_query should be additionalQuery (golint)
    • Line 77: warning: exported method Queries.DBListShipments should have comment or be unexported (golint)
    • Line 78: warning: don't use underscores in Go names; var table_name should be tableName (golint)
    • Line 79: warning: don't use underscores in Go names; var additional_query should be additionalQuery (golint)
    • Line 89: warning: exported method Queries.DBUpdateShipment should have comment or be unexported (golint)
    • Line 89: warning: don't use underscores in Go names; method parameter shipment_id should be shipmentID (golint)
    • Line 91: warning: don't use underscores in Go names; var return_sql should be returnSQL (golint)
    • Line 96: warning: exported method Queries.DBDeleteShipment should have comment or be unexported (golint)
    • Line 98: warning: don't use underscores in Go names; var return_sql should be returnSQL (golint)
    • Line 105: warning: don't use underscores in Go names; var p_location_index should be pLocationIndex (golint)
    • Line 105: warning: don't use underscores in Go names; var d_location_index should be dLocationIndex (golint)
    • Line 120: warning: don't use underscores in Go names; var p_latitude should be pLatitude (golint)
    • Line 120: warning: don't use underscores in Go names; var p_longitude should be pLongitude (golint)
    • Line 121: warning: don't use underscores in Go names; var d_latitude should be dLatitude (golint)
    • Line 121: warning: don't use underscores in Go names; var d_longitude should be dLongitude (golint)
    • Line 137: warning: don't use underscores in Go names; var p_location_index should be pLocationIndex (golint)
    • Line 137: warning: don't use underscores in Go names; var d_location_index should be dLocationIndex (golint)
    • Line 155: warning: don't use underscores in Go names; var p_latitude should be pLatitude (golint)
    • Line 155: warning: don't use underscores in Go names; var p_longitude should be pLongitude (golint)
    • Line 156: warning: don't use underscores in Go names; var d_latitude should be dLatitude (golint)
    • Line 156: warning: don't use underscores in Go names; var d_longitude should be dLongitude (golint)
    • internal/api/break.go
    • Line 76: warning: don't use underscores in Go names; var v_break should be vBreak (golint)
    • Line 88: warning: don't use underscores in Go names; var created_break should be createdBreak (golint)
    • Line 109: warning: don't use underscores in Go names; var vehicle_id should be vehicleID (golint)
    • Line 115: warning: don't use underscores in Go names; var created_break should be createdBreak (golint)
    • Line 137: warning: don't use underscores in Go names; var break_id should be breakID (golint)
    • Line 143: warning: don't use underscores in Go names; var created_break should be createdBreak (golint)
    • Line 173: warning: don't use underscores in Go names; var break_id should be breakID (golint)
    • Line 189: warning: don't use underscores in Go names; var v_break should be vBreak (golint)
    • Line 201: warning: don't use underscores in Go names; var created_break should be createdBreak (golint)
    • Line 223: warning: don't use underscores in Go names; var break_id should be breakID (golint)
    • internal/database/store.go
    • Line 35: warning: exported type Store should have comment or be unexported (golint)
    • Line 40: warning: exported function NewStore should have comment or be unexported (golint)
    • internal/api/project.go
    • Line 83: warning: don't use underscores in Go names; var created_project should be createdProject (golint)
    • Line 103: warning: don't use underscores in Go names; var created_project should be createdProject (golint)
    • Line 125: warning: don't use underscores in Go names; var project_id should be projectID (golint)
    • Line 131: warning: don't use underscores in Go names; var created_project should be createdProject (golint)
    • Line 161: warning: don't use underscores in Go names; var project_id should be projectID (golint)
    • Line 189: warning: don't use underscores in Go names; var created_project should be createdProject (golint)
    • Line 211: warning: don't use underscores in Go names; var project_id should be projectID (golint)
    • internal/util/conversion.go
    • Line 39: warning: exported function GetLocationIndex should have comment or be unexported (golint)
    • Line 40: warning: don't use underscores in Go names; var lat_prefix should be latPrefix (golint)
    • Line 41: warning: don't use underscores in Go names; var lon_prefix should be lonPrefix (golint)
    • Line 60: warning: exported function GetCoordinates should have comment or be unexported (golint)
    • internal/util/fields.go
    • Line 31: warning: exported var IntervalFields should have comment or be unexported (golint)
    • Line 37: warning: exported var TimestampFields should have comment or be unexported (golint)
    • Line 44: warning: exported var AliasFields 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!