Skip to content

Commit 8d09548

Browse files
committed
Fix typos and add goreportcard badge
1 parent eb55a90 commit 8d09548

File tree

7 files changed

+7
-6
lines changed

7 files changed

+7
-6
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
[![Build Status](https://github.com/enbility/eebus-go/actions/workflows/default.yml/badge.svg?branch=dev)](https://github.com/enbility/eebus-go/actions/workflows/default.yml/badge.svg?branch=dev)
44
[![Coverage Status](https://coveralls.io/repos/github/enbility/eebus-go/badge.svg?branch=dev)](https://coveralls.io/github/enbility/eebus-go?branch=dev)
5+
[![Go report](https://goreportcard.com/badge/github.com/enbility/eebus-go)](https://goreportcard.com/report/github.com/enbility/eebus-go)
56

67
This library provides a complete foundation for implementing [EEBUS](https://eebus.org) use cases. The use cases define various functional scenarios for different device categories, e.g. energy management systems, charging stations, heat pumps, and more.
78

service/hub.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const shipWebsocketPath = "/ship/"
2626
const shipZeroConfServiceType = "_ship._tcp"
2727
const shipZeroConfDomain = "local."
2828

29-
// used for randomizing the connection initation delay
29+
// used for randomizing the connection initiation delay
3030
// this limits the possibility of concurrent connection attempts from both sides
3131
type connectionInitiationDelayTimeRange struct {
3232
// defines the minimum and maximum wait time for when to try to initate an connection

service/mdns.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ func (m *mdns) resolveEntries() {
317317
case <-m.cancelChan:
318318
ctx.Done()
319319
case service := <-zcEntries:
320-
// Zeroconf has issues with merging mDNS data and sometimes reports non complety records
320+
// Zeroconf has issues with merging mDNS data and sometimes reports incomplete records
321321
if len(service.Text) == 0 {
322322
continue
323323
}

spine/feature_local.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func (r *FeatureLocalImpl) Entity() *EntityLocalImpl {
9393
return r.entity
9494
}
9595

96-
// Add supported function to the feature if its role is Server or Speical
96+
// Add supported function to the feature if its role is Server or Special
9797
func (r *FeatureLocalImpl) AddFunctionType(function model.FunctionType, read, write bool) {
9898
if r.role != model.RoleTypeServer && r.role != model.RoleTypeSpecial {
9999
return

spine/feature_local_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func (suite *DeviceClassificationTestSuite) TestDeviceClassification_Request_Err
8787
suite.senderMock.On("Request", model.CmdClassifierTypeRead, suite.sut.Address(), suite.remoteFeature.Address(), false, mock.AnythingOfType("[]model.CmdType")).Return(&suite.msgCounter, nil)
8888

8989
const errorNumber = model.ErrorNumberTypeGeneralError
90-
const errorDescription = "error occured"
90+
const errorDescription = "error occurred"
9191

9292
// send data request
9393
msgCounter, err := suite.sut.RequestData(suite.function, nil, nil, suite.remoteFeature)

spine/model/commondatatypes_additions_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ func TestFeatureAddressTypeString(t *testing.T) {
245245

246246
got := f.String()
247247
if got != tc.out {
248-
t.Errorf("TestFeatureAddressTypeString(), got %s, expectes %s", got, tc.out)
248+
t.Errorf("TestFeatureAddressTypeString(), got %s, expects %s", got, tc.out)
249249
}
250250
}
251251
}

spine/pending_requests_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ func (suite *PendingRequestsTestSuite) TestPendingRequests_SetData_GetData() {
111111

112112
func (suite *PendingRequestsTestSuite) TestPendingRequests_SetResult_GetData() {
113113
errNo := model.ErrorNumberTypeTimeout
114-
errDesc := "Timeout occured"
114+
errDesc := "Timeout occurred"
115115
_ = suite.sut.SetResult(suite.ski, suite.counter, NewErrorType(errNo, errDesc))
116116

117117
// Act

0 commit comments

Comments
 (0)