Preparing report...

Report for github.com/SKF/go-enlight-sdk

A+    Excellent!    Found 84 issues across 128 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!


gocyclo97%

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.


golint35%

Golint is a linter for Go source code.

    • go-enlight-sdk/services/iot/client.go
    • Line 14: warning: exported type IoTClient should have comment or be unexported (golint)
    • Line 86: warning: exported type Client should have comment or be unexported (golint)
    • Line 91: warning: exported function CreateClient should have comment or be unexported (golint)
    • Line 112: warning: exported method Client.Close should have comment or be unexported (golint)
    • Line 116: warning: exported method Client.DeepPing should have comment or be unexported (golint)
    • Line 122: warning: exported method Client.DeepPingWithContext should have comment or be unexported (golint)
    • go-enlight-sdk/services/hierarchy/models/inspection_point.go
    • Line 25: warning: exported type ValueType should have comment or be unexported (golint)
    • Line 28: warning: exported const ValueTypeNumeric should have comment (or a comment on this block) or be unexported (golint)
    • Line 40: warning: exported function ParseInspectionType should have comment or be unexported (golint)
    • Line 57: warning: exported method ValueType.Validate should have comment or be unexported (golint)
    • Line 66: warning: exported type Answers should have comment or be unexported (golint)
    • Line 68: warning: exported method Answers.Array should have comment or be unexported (golint)
    • Line 72: warning: exported method Answers.Validate should have comment or be unexported (golint)
    • Line 116: warning: exported method InspectionPoint.Validate should have comment or be unexported (golint)
    • Line 152: warning: exported method InspectionPoint.ToGRPC should have comment or be unexported (golint)
    • Line 163: warning: exported method InspectionPoint.FromGRPC should have comment or be unexported (golint)
    • go-enlight-sdk/v2/services/iot/functions.go
    • Line 16: warning: exported method Client.CreateTask should have comment or be unexported (golint)
    • Line 22: warning: exported method Client.CreateTaskWithContext should have comment or be unexported (golint)
    • Line 30: warning: exported method Client.DeleteTask should have comment or be unexported (golint)
    • Line 35: warning: exported method Client.DeleteTaskWithContext should have comment or be unexported (golint)
    • Line 41: warning: exported method Client.GetAllTasks should have comment or be unexported (golint)
    • Line 46: warning: exported method Client.GetAllTasksWithContext should have comment or be unexported (golint)
    • Line 58: warning: exported method Client.GetUncompletedTasks should have comment or be unexported (golint)
    • Line 63: warning: exported method Client.GetUncompletedTasksWithContext should have comment or be unexported (golint)
    • Line 75: warning: exported method Client.GetUncompletedTasksByHierarchy should have comment or be unexported (golint)
    • Line 80: warning: exported method Client.GetUncompletedTasksByHierarchyWithContext should have comment or be unexported (golint)
    • Line 105: warning: exported method Client.SetTaskStatusWithContext should have comment or be unexported (golint)
    • Line 133: warning: exported method Client.IngestNodeData should have comment or be unexported (golint)
    • Line 138: warning: exported method Client.IngestNodeDataWithContext should have comment or be unexported (golint)
    • Line 143: warning: exported method Client.GetTaskByUUID should have comment or be unexported (golint)
    • Line 148: warning: exported method Client.GetTaskByUUIDWithContext should have comment or be unexported (golint)
    • Line 159: warning: exported method Client.GetTaskByLongId should have comment or be unexported (golint)
    • Line 164: warning: exported method Client.GetTaskByLongIdWithContext should have comment or be unexported (golint)
    • Line 175: warning: exported method Client.GetLatestNodeData should have comment or be unexported (golint)
    • Line 181: warning: exported method Client.GetLatestNodeDataWithContext should have comment or be unexported (golint)
    • Line 195: warning: exported method Client.GetNodeData should have comment or be unexported (golint)
    • Line 200: warning: exported method Client.GetNodeDataWithContext should have comment or be unexported (golint)
    • Line 210: warning: comment on exported method Client.DeleteNodeData should be of the form "DeleteNodeData ..." (golint)
    • Line 217: warning: exported method Client.DeleteNodeDataWithContext should have comment or be unexported (golint)
    • Line 222: warning: exported method Client.GetMedia should have comment or be unexported (golint)
    • Line 227: warning: exported method Client.GetMediaWithContext should have comment or be unexported (golint)
    • Line 259: warning: exported method Client.GetTasksByStatus should have comment or be unexported (golint)
    • Line 264: warning: exported method Client.GetTasksByStatusWithContext should have comment or be unexported (golint)
    • Line 272: warning: exported method Client.GetTasksModifiedSinceTimestamp should have comment or be unexported (golint)
    • Line 278: warning: exported method Client.GetTasksModifiedSinceTimestampWithContext should have comment or be unexported (golint)
    • Line 283: warning: exported method Client.GetNodeEventLog should have comment or be unexported (golint)
    • Line 288: warning: exported method Client.GetNodeEventLogWithContext should have comment or be unexported (golint)
    • go-enlight-sdk/v2/services/hierarchy/models/node_type.go
    • Line 7: warning: exported type NodeType should have comment or be unexported (golint)
    • Line 10: warning: exported const NodeTypeRoot should have comment (or a comment on this block) or be unexported (golint)
    • Line 45: warning: exported method NodeType.IsChildOf should have comment or be unexported (golint)
    • Line 56: warning: exported method NodeType.HasSubType should have comment or be unexported (golint)
    • Line 60: warning: exported method NodeType.Validate should have comment or be unexported (golint)
    • go-enlight-sdk/services/hierarchy/models/segment.go
    • Line 5: warning: exported type IndustrySegment should have comment or be unexported (golint)
    • Line 8: warning: exported const Agriculture should have comment (or a comment on this block) or be unexported (golint)
    • Line 31: warning: exported method IndustrySegment.Title should have comment or be unexported (golint)
    • Line 61: warning: exported method IndustrySegment.Validate should have comment or be unexported (golint)
    • go-enlight-sdk/v2/services/iot/models/tasks.go
    • Line 7: warning: exported type Tasks should have comment or be unexported (golint)
    • Line 9: warning: exported method Tasks.ToGRPC should have comment or be unexported (golint)
    • Line 21: warning: exported method Tasks.FilterOnUncompleted should have comment or be unexported (golint)
    • go-enlight-sdk/v2/services/hierarchy/models/lubrication_point.go
    • Line 11: warning: exported type LubricationPoint should have comment or be unexported (golint)
    • Line 26: warning: exported type LubricantUnit should have comment or be unexported (golint)
    • Line 29: warning: exported const Gram should have comment (or a comment on this block) or be unexported (golint)
    • Line 32: warning: don't use underscores in Go names; const Unknown_LubricantUnit should be UnknownLubricantUnit (golint)
    • Line 39: warning: exported function ParseUnit should have comment or be unexported (golint)
    • Line 56: warning: exported method LubricantUnit.Validate should have comment or be unexported (golint)
    • Line 65: warning: exported type LubricationActivityAssetState should have comment or be unexported (golint)
    • Line 68: warning: exported const AssetMustBeOn should have comment (or a comment on this block) or be unexported (golint)
    • Line 77: warning: exported method LubricationActivityAssetState.Validate should have comment or be unexported (golint)
    • Line 90: warning: exported method LubricationPoint.Validate should have comment or be unexported (golint)
    • Line 116: warning: exported method LubricationPoint.ToGRPC should have comment or be unexported (golint)
    • Line 116: warning: receiver name p should be consistent with previous receiver name lp for LubricationPoint (golint)
    • Line 125: warning: exported method LubricationPoint.FromGRPC should have comment or be unexported (golint)
    • Line 125: warning: receiver name p should be consistent with previous receiver name lp for LubricationPoint (golint)
    • go-enlight-sdk/v2/services/hierarchy/models/events/node.go
    • Line 10: warning: exported type CreateNodeEvent should have comment or be unexported (golint)
    • Line 19: warning: exported type UpdateNodeEvent should have comment or be unexported (golint)
    • Line 28: warning: exported type DeleteOriginEvent should have comment or be unexported (golint)
    • Line 32: warning: exported type CopyNodeEvent should have comment or be unexported (golint)
    • Line 42: warning: exported type DeleteNodeEvent should have comment or be unexported (golint)
    • go-enlight-sdk/v2/services/hierarchy/models/node_sub_type.go
    • Line 7: warning: exported type NodeSubType should have comment or be unexported (golint)
    • Line 10: warning: exported const NodeSubTypeRoot should have comment (or a comment on this block) or be unexported (golint)
    • Line 47: warning: exported method NodeSubType.IsTypeOf should have comment or be unexported (golint)
    • Line 58: warning: exported method NodeSubType.Validate should have comment or be unexported (golint)
    • go-enlight-sdk/services/hierarchy/models/asset.go
    • Line 11: warning: exported type Component should have comment or be unexported (golint)
    • Line 18: warning: exported type AssetNode should have comment or be unexported (golint)
    • Line 29: warning: exported type Criticality should have comment or be unexported (golint)
    • Line 32: warning: exported const CriticalityA should have comment (or a comment on this block) or be unexported (golint)
    • Line 42: warning: exported function ParseCriticality should have comment or be unexported (golint)
    • Line 55: warning: exported method AssetNode.Validate should have comment or be unexported (golint)
    • Line 75: warning: exported method Criticality.ValidateCriticaltiy should have comment or be unexported (golint)
    • Line 84: warning: exported method Component.Validate should have comment or be unexported (golint)
    • Line 99: warning: exported method AssetNode.ToGRPC should have comment or be unexported (golint)
    • Line 115: warning: exported method AssetNode.FromGRPC should have comment or be unexported (golint)
    • Line 130: warning: exported method Component.ToGRPC should have comment or be unexported (golint)
    • Line 130: warning: receiver name cmp should be consistent with previous receiver name c for Component (golint)
    • Line 149: warning: exported method Component.FromGRPC should have comment or be unexported (golint)
    • Line 149: warning: receiver name cmp should be consistent with previous receiver name c for Component (golint)
    • go-enlight-sdk/services/hierarchy/models/origin.go
    • Line 9: warning: exported type Origin should have comment or be unexported (golint)
    • Line 18: warning: exported method Origin.Validate should have comment or be unexported (golint)
    • Line 31: warning: exported method Origin.ToGRPC should have comment or be unexported (golint)
    • Line 39: warning: exported method Origin.FromGRPC should have comment or be unexported (golint)
    • go-enlight-sdk/v2/services/iot/models/task.go
    • Line 14: warning: exported var ErrTaskInvalidDueDate should have comment or be unexported (golint)
    • Line 28: warning: exported type Task should have comment or be unexported (golint)
    • Line 43: warning: exported type Node should have comment or be unexported (golint)
    • Line 58: warning: exported method Task.Validate should have comment or be unexported (golint)
    • Line 116: warning: exported function ValidTaskStatus should have comment or be unexported (golint)
    • Line 124: warning: exported function ValidateSetTaskStatusInput should have comment or be unexported (golint)
    • Line 140: warning: exported method Task.FromGRPC should have comment or be unexported (golint)
    • Line 153: warning: exported method Task.ToGRPC should have comment or be unexported (golint)
    • Line 192: warning: exported method Task.FromGRPCInitial should have comment or be unexported (golint)
    • Line 229: warning: exported method Task.ToGRPCInitial should have comment or be unexported (golint)
    • go-enlight-sdk/services/hierarchy/models/node.go
    • Line 11: warning: exported type Node should have comment or be unexported (golint)
    • Line 19: warning: exported method Node.Validate should have comment or be unexported (golint)
    • Line 59: warning: exported function ParseNodeType should have comment or be unexported (golint)
    • Line 87: warning: exported method Node.ToGRPC should have comment or be unexported (golint)
    • Line 87: warning: receiver name n should be consistent with previous receiver name node for Node (golint)
    • Line 133: warning: exported method Node.FromGRPC should have comment or be unexported (golint)
    • Line 133: warning: receiver name n should be consistent with previous receiver name node for Node (golint)
    • Line 177: warning: exported method Node.ToGRPCAncestorNode should have comment or be unexported (golint)
    • Line 177: warning: receiver name n should be consistent with previous receiver name node for Node (golint)
    • go-enlight-sdk/services/iot/functions.go
    • Line 17: warning: exported method Client.CreateTask should have comment or be unexported (golint)
    • Line 23: warning: exported method Client.CreateTaskWithContext should have comment or be unexported (golint)
    • Line 31: warning: exported method Client.DeleteTask should have comment or be unexported (golint)
    • Line 36: warning: exported method Client.DeleteTaskWithContext should have comment or be unexported (golint)
    • Line 42: warning: exported method Client.SetTaskCompleted should have comment or be unexported (golint)
    • Line 47: warning: exported method Client.SetTaskCompletedWithContext should have comment or be unexported (golint)
    • Line 53: warning: exported method Client.GetAllTasks should have comment or be unexported (golint)
    • Line 58: warning: exported method Client.GetAllTasksWithContext should have comment or be unexported (golint)
    • Line 70: warning: exported method Client.GetUncompletedTasks should have comment or be unexported (golint)
    • Line 75: warning: exported method Client.GetUncompletedTasksWithContext should have comment or be unexported (golint)
    • Line 87: warning: exported method Client.GetUncompletedTasksByHierarchy should have comment or be unexported (golint)
    • Line 92: warning: exported method Client.GetUncompletedTasksByHierarchyWithContext should have comment or be unexported (golint)
    • Line 117: warning: exported method Client.SetTaskStatusWithContext should have comment or be unexported (golint)
    • Line 145: warning: exported method Client.IngestNodeData should have comment or be unexported (golint)
    • Line 150: warning: exported method Client.IngestNodeDataWithContext should have comment or be unexported (golint)
    • Line 155: warning: exported method Client.GetTaskByUUID should have comment or be unexported (golint)
    • Line 160: warning: exported method Client.GetTaskByUUIDWithContext should have comment or be unexported (golint)
    • Line 171: warning: exported method Client.GetTaskByLongId should have comment or be unexported (golint)
    • Line 176: warning: exported method Client.GetTaskByLongIdWithContext should have comment or be unexported (golint)
    • Line 187: warning: exported method Client.GetLatestNodeData should have comment or be unexported (golint)
    • Line 193: warning: exported method Client.GetLatestNodeDataWithContext should have comment or be unexported (golint)
    • Line 207: warning: exported method Client.GetNodeData should have comment or be unexported (golint)
    • Line 212: warning: exported method Client.GetNodeDataWithContext should have comment or be unexported (golint)
    • Line 222: warning: comment on exported method Client.DeleteNodeData should be of the form "DeleteNodeData ..." (golint)
    • Line 229: warning: exported method Client.DeleteNodeDataWithContext should have comment or be unexported (golint)
    • Line 234: warning: exported method Client.GetMedia should have comment or be unexported (golint)
    • Line 239: warning: exported method Client.GetMediaWithContext should have comment or be unexported (golint)
    • Line 271: warning: exported method Client.GetTaskStream should have comment or be unexported (golint)
    • Line 276: warning: exported method Client.GetTaskStreamWithContext should have comment or be unexported (golint)
    • Line 296: warning: exported method Client.GetTasksByStatus should have comment or be unexported (golint)
    • Line 301: warning: exported method Client.GetTasksByStatusWithContext should have comment or be unexported (golint)
    • Line 309: warning: exported method Client.GetTasksModifiedSinceTimestamp should have comment or be unexported (golint)
    • Line 315: warning: exported method Client.GetTasksModifiedSinceTimestampWithContext should have comment or be unexported (golint)
    • Line 320: warning: exported method Client.GetNodeEventLog should have comment or be unexported (golint)
    • Line 325: warning: exported method Client.GetNodeEventLogWithContext should have comment or be unexported (golint)
    • go-enlight-sdk/services/hierarchy/models/node_sub_type.go
    • Line 7: warning: exported type NodeSubType should have comment or be unexported (golint)
    • Line 10: warning: exported const NodeSubTypeRoot should have comment (or a comment on this block) or be unexported (golint)
    • Line 47: warning: exported method NodeSubType.IsTypeOf should have comment or be unexported (golint)
    • Line 58: warning: exported method NodeSubType.Validate should have comment or be unexported (golint)
    • go-enlight-sdk/v2/services/hierarchy/functions.go
    • Line 257: warning: exported method Client.GetAssetTaxonomy should have comment or be unexported (golint)
    • Line 263: warning: exported method Client.GetAssetTaxonomyWithContext should have comment or be unexported (golint)
    • Line 268: warning: exported method Client.GetCompany should have comment or be unexported (golint)
    • Line 274: warning: exported method Client.GetCompanyWithContext should have comment or be unexported (golint)
    • go-enlight-sdk/v2/services/hierarchy/models/segment.go
    • Line 5: warning: exported type IndustrySegment should have comment or be unexported (golint)
    • Line 8: warning: exported const Agriculture should have comment (or a comment on this block) or be unexported (golint)
    • Line 31: warning: exported method IndustrySegment.Title should have comment or be unexported (golint)
    • Line 61: warning: exported method IndustrySegment.Validate should have comment or be unexported (golint)
    • go-enlight-sdk/services/hierarchy/models/node_type.go
    • Line 7: warning: exported type NodeType should have comment or be unexported (golint)
    • Line 10: warning: exported const NodeTypeRoot should have comment (or a comment on this block) or be unexported (golint)
    • Line 45: warning: exported method NodeType.IsChildOf should have comment or be unexported (golint)
    • Line 56: warning: exported method NodeType.HasSubType should have comment or be unexported (golint)
    • Line 60: warning: exported method NodeType.Validate should have comment or be unexported (golint)
    • go-enlight-sdk/v2/services/hierarchy/models/node.go
    • Line 11: warning: exported type Node should have comment or be unexported (golint)
    • Line 19: warning: exported method Node.Validate should have comment or be unexported (golint)
    • Line 59: warning: exported function ParseNodeType should have comment or be unexported (golint)
    • Line 87: warning: exported method Node.ToGRPC should have comment or be unexported (golint)
    • Line 87: warning: receiver name n should be consistent with previous receiver name node for Node (golint)
    • Line 133: warning: exported method Node.FromGRPC should have comment or be unexported (golint)
    • Line 133: warning: receiver name n should be consistent with previous receiver name node for Node (golint)
    • Line 177: warning: exported method Node.ToGRPCAncestorNode should have comment or be unexported (golint)
    • Line 177: warning: receiver name n should be consistent with previous receiver name node for Node (golint)
    • go-enlight-sdk/v2/services/hierarchy/models/origin.go
    • Line 9: warning: exported type Origin should have comment or be unexported (golint)
    • Line 18: warning: exported method Origin.Validate should have comment or be unexported (golint)
    • Line 31: warning: exported method Origin.ToGRPC should have comment or be unexported (golint)
    • Line 39: warning: exported method Origin.FromGRPC should have comment or be unexported (golint)
    • go-enlight-sdk/services/iot/events/createtaskevent.go
    • Line 8: warning: exported type CreateTaskEvent should have comment or be unexported (golint)
    • Line 13: warning: exported method CreateTaskEvent.GetAggregateID should have comment or be unexported (golint)
    • Line 17: warning: exported method CreateTaskEvent.GetUserID should have comment or be unexported (golint)
    • go-enlight-sdk/v2/services/hierarchy/models/asset.go
    • Line 9: warning: exported type AssetNode should have comment or be unexported (golint)
    • Line 19: warning: exported type Criticality should have comment or be unexported (golint)
    • Line 22: warning: exported const CriticalityA should have comment (or a comment on this block) or be unexported (golint)
    • Line 32: warning: exported function ParseCriticality should have comment or be unexported (golint)
    • Line 45: warning: exported method AssetNode.Validate should have comment or be unexported (golint)
    • Line 60: warning: exported method Criticality.ValidateCriticaltiy should have comment or be unexported (golint)
    • Line 69: warning: exported method AssetNode.ToGRPC should have comment or be unexported (golint)
    • Line 82: warning: exported method AssetNode.FromGRPC should have comment or be unexported (golint)
    • go-enlight-sdk/v2/services/hierarchy/models/events/component.go
    • Line 9: warning: exported type CreateComponentEvent should have comment or be unexported (golint)
    • Line 15: warning: exported type UpdateComponentEvent should have comment or be unexported (golint)
    • Line 21: warning: exported type DeleteComponentEvent should have comment or be unexported (golint)
    • Line 26: warning: exported type CopyComponentEvent should have comment or be unexported (golint)
    • go-enlight-sdk/v2/services/iot/client.go
    • Line 14: warning: exported type IoTClient should have comment or be unexported (golint)
    • Line 80: warning: exported type Client should have comment or be unexported (golint)
    • Line 85: warning: exported function CreateClient should have comment or be unexported (golint)
    • Line 106: warning: exported method Client.Close should have comment or be unexported (golint)
    • Line 110: warning: exported method Client.DeepPing should have comment or be unexported (golint)
    • Line 116: warning: exported method Client.DeepPingWithContext should have comment or be unexported (golint)
    • go-enlight-sdk/v2/services/hierarchy/models/component.go
    • Line 10: warning: exported type Component should have comment or be unexported (golint)
    • Line 16: warning: exported type ComponentType should have comment or be unexported (golint)
    • Line 19: warning: exported const ShaftComponentType should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: exported var AllComponentTypes should have comment or be unexported (golint)
    • Line 31: warning: exported type BaseComponent should have comment or be unexported (golint)
    • Line 38: warning: exported type ShaftComponent should have comment or be unexported (golint)
    • Line 42: warning: exported type RotatingRing should have comment or be unexported (golint)
    • Line 45: warning: exported const InnerRotatingRing should have comment (or a comment on this block) or be unexported (golint)
    • Line 50: warning: exported type BearingComponent should have comment or be unexported (golint)
    • Line 59: warning: exported method Component.Validate should have comment or be unexported (golint)
    • Line 86: warning: exported method BaseComponent.Validate should have comment or be unexported (golint)
    • Line 104: warning: exported method ComponentType.Validate should have comment or be unexported (golint)
    • Line 113: warning: exported method ShaftComponent.Validate should have comment or be unexported (golint)
    • Line 120: warning: exported method BearingComponent.Validate should have comment or be unexported (golint)
    • Line 130: warning: exported method RotatingRing.Validate should have comment or be unexported (golint)
    • go-enlight-sdk/services/iot/models/task.go
    • Line 14: warning: exported var ErrTaskInvalidDueDate should have comment or be unexported (golint)
    • Line 28: warning: exported type Task should have comment or be unexported (golint)
    • Line 43: warning: exported type Node should have comment or be unexported (golint)
    • Line 58: warning: exported method Task.Validate should have comment or be unexported (golint)
    • Line 116: warning: exported function ValidTaskStatus should have comment or be unexported (golint)
    • Line 124: warning: exported function ValidateSetTaskStatusInput should have comment or be unexported (golint)
    • Line 140: warning: exported method Task.FromGRPC should have comment or be unexported (golint)
    • Line 153: warning: exported method Task.ToGRPC should have comment or be unexported (golint)
    • Line 192: warning: exported method Task.FromGRPCInitial should have comment or be unexported (golint)
    • Line 229: warning: exported method Task.ToGRPCInitial should have comment or be unexported (golint)
    • go-enlight-sdk/v2/services/hierarchy/models/inspection_point.go
    • Line 25: warning: exported type ValueType should have comment or be unexported (golint)
    • Line 28: warning: exported const ValueTypeNumeric should have comment (or a comment on this block) or be unexported (golint)
    • Line 40: warning: exported function ParseInspectionType should have comment or be unexported (golint)
    • Line 57: warning: exported method ValueType.Validate should have comment or be unexported (golint)
    • Line 66: warning: exported type Answers should have comment or be unexported (golint)
    • Line 68: warning: exported method Answers.Array should have comment or be unexported (golint)
    • Line 72: warning: exported method Answers.Validate should have comment or be unexported (golint)
    • Line 116: warning: exported method InspectionPoint.Validate should have comment or be unexported (golint)
    • Line 152: warning: exported method InspectionPoint.ToGRPC should have comment or be unexported (golint)
    • Line 163: warning: exported method InspectionPoint.FromGRPC should have comment or be unexported (golint)
    • go-enlight-sdk/v2/services/hierarchy/models/metadata.go
    • Line 13: warning: exported const MetaDataMaxKeyLength should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: exported type NodeMetaData should have comment or be unexported (golint)
    • Line 30: warning: exported method NodeMetaData.Equal should have comment or be unexported (golint)
    • Line 34: warning: exported method NodeMetaData.Value should have comment or be unexported (golint)
    • Line 34: warning: receiver name n should be consistent with previous receiver name n1 for NodeMetaData (golint)
    • Line 38: warning: exported method NodeMetaData.Scan should have comment or be unexported (golint)
    • Line 38: warning: receiver name n should be consistent with previous receiver name n1 for NodeMetaData (golint)
    • Line 46: warning: exported method NodeMetaData.Validate should have comment or be unexported (golint)
    • Line 46: warning: receiver name n should be consistent with previous receiver name n1 for NodeMetaData (golint)
    • go-enlight-sdk/services/hierarchy/functions.go
    • Line 257: warning: exported method Client.GetAssetTaxonomy should have comment or be unexported (golint)
    • Line 263: warning: exported method Client.GetAssetTaxonomyWithContext should have comment or be unexported (golint)
    • Line 268: warning: exported method Client.GetCompany should have comment or be unexported (golint)
    • Line 274: warning: exported method Client.GetCompanyWithContext should have comment or be unexported (golint)
    • go-enlight-sdk/services/iot/events/deletetaskevent.go
    • Line 7: warning: exported type DeleteTaskEvent should have comment or be unexported (golint)
    • Line 11: warning: exported method DeleteTaskEvent.GetAggregateID should have comment or be unexported (golint)
    • Line 15: warning: exported method DeleteTaskEvent.GetUserID should have comment or be unexported (golint)
    • go-enlight-sdk/v2/services/authorize/mock/server.go
    • Line 19: warning: exported type AuthorizeServer should have comment or be unexported (golint)
    • Line 26: warning: exported function NewServer should have comment or be unexported (golint)
    • Line 30: warning: exported function NewServerOnHostPort should have comment or be unexported (golint)
    • Line 51: warning: exported method AuthorizeServer.HostPort should have comment or be unexported (golint)
    • Line 59: warning: exported method AuthorizeServer.AssertExpectations should have comment or be unexported (golint)
    • Line 65: warning: exported method AuthorizeServer.DeepPing should have comment or be unexported (golint)
    • Line 70: warning: exported method AuthorizeServer.LogClientState should have comment or be unexported (golint)
    • Line 80: warning: exported method AuthorizeServer.IsAuthorized should have comment or be unexported (golint)
    • Line 85: warning: exported method AuthorizeServer.IsAuthorizedBulk should have comment or be unexported (golint)
    • Line 90: warning: exported method AuthorizeServer.IsAuthorizedByEndpoint should have comment or be unexported (golint)
    • Line 95: warning: exported method AuthorizeServer.AddResource should have comment or be unexported (golint)
    • Line 100: warning: exported method AuthorizeServer.RemoveResource should have comment or be unexported (golint)
    • Line 105: warning: exported method AuthorizeServer.GetResource should have comment or be unexported (golint)
    • Line 110: warning: exported method AuthorizeServer.AddResources should have comment or be unexported (golint)
    • Line 115: warning: exported method AuthorizeServer.RemoveResources should have comment or be unexported (golint)
    • Line 120: warning: exported method AuthorizeServer.GetResourcesByUserAction should have comment or be unexported (golint)
    • Line 125: warning: exported method AuthorizeServer.GetResourcesByType should have comment or be unexported (golint)
    • Line 130: warning: exported method AuthorizeServer.GetResourceParents should have comment or be unexported (golint)
    • Line 135: warning: exported method AuthorizeServer.GetResourceChildren should have comment or be unexported (golint)
    • Line 140: warning: exported method AuthorizeServer.GetActionsByUserRole should have comment or be unexported (golint)
    • Line 145: warning: exported method AuthorizeServer.GetResourcesAndActionsByUser should have comment or be unexported (golint)
    • Line 150: warning: exported method AuthorizeServer.GetResourcesAndActionsByUserAndResource should have comment or be unexported (golint)
    • Line 155: warning: exported method AuthorizeServer.GetResourcesByOriginAndType should have comment or be unexported (golint)
    • Line 160: warning: exported method AuthorizeServer.GetResourcesWithActionsAccess should have comment or be unexported (golint)
    • Line 165: warning: exported method AuthorizeServer.GetUserIDsWithAccessToResource should have comment or be unexported (golint)
    • Line 170: warning: exported method AuthorizeServer.AddResourceRelation should have comment or be unexported (golint)
    • Line 175: warning: exported method AuthorizeServer.RemoveResourceRelation should have comment or be unexported (golint)
    • Line 180: warning: exported method AuthorizeServer.AddResourceRelations should have comment or be unexported (golint)
    • Line 185: warning: exported method AuthorizeServer.RemoveResourceRelations should have comment or be unexported (golint)
    • Line 190: warning: exported method AuthorizeServer.ApplyUserAction should have comment or be unexported (golint)
    • Line 195: warning: exported method AuthorizeServer.ApplyRolesForUserOnResources should have comment or be unexported (golint)
    • Line 200: warning: exported method AuthorizeServer.GetUserActions should have comment or be unexported (golint)
    • Line 205: warning: exported method AuthorizeServer.RemoveUserAction should have comment or be unexported (golint)
    • Line 210: warning: exported method AuthorizeServer.AddUserRole should have comment or be unexported (golint)
    • Line 215: warning: exported method AuthorizeServer.GetUserRole should have comment or be unexported (golint)
    • Line 220: warning: exported method AuthorizeServer.RemoveUserRole should have comment or be unexported (golint)
    • Line 225: warning: exported method AuthorizeServer.AddAction should have comment or be unexported (golint)
    • Line 230: warning: exported method AuthorizeServer.RemoveAction should have comment or be unexported (golint)
    • Line 235: warning: exported method AuthorizeServer.GetAction should have comment or be unexported (golint)
    • Line 240: warning: exported method AuthorizeServer.GetAllActions should have comment or be unexported (golint)
    • Line 245: warning: exported method AuthorizeServer.IsAuthorizedWithReason should have comment or be unexported (golint)
    • go-enlight-sdk/services/iot/models/tasks.go
    • Line 7: warning: exported type Tasks should have comment or be unexported (golint)
    • Line 9: warning: exported method Tasks.ToGRPC should have comment or be unexported (golint)
    • Line 21: warning: exported method Tasks.FilterOnUncompleted should have comment or be unexported (golint)
    • go-enlight-sdk/services/hierarchy/models/lubrication_point.go
    • Line 11: warning: exported type LubricationPoint should have comment or be unexported (golint)
    • Line 22: warning: exported type LubricantUnit should have comment or be unexported (golint)
    • Line 25: warning: exported const Gram should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: don't use underscores in Go names; const Unknown_LubricantUnit should be UnknownLubricantUnit (golint)
    • Line 35: warning: exported function ParseUnit should have comment or be unexported (golint)
    • Line 52: warning: exported method LubricantUnit.Validate should have comment or be unexported (golint)
    • Line 61: warning: exported method LubricationPoint.Validate should have comment or be unexported (golint)
    • Line 83: warning: exported method LubricationPoint.ToGRPC should have comment or be unexported (golint)
    • Line 83: warning: receiver name p should be consistent with previous receiver name lp for LubricationPoint (golint)
    • Line 92: warning: exported method LubricationPoint.FromGRPC should have comment or be unexported (golint)
    • Line 92: warning: receiver name p should be consistent with previous receiver name lp for LubricationPoint (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!


misspell99%

Misspell Finds commonly misspelled English words