Skip to content

Commit

Permalink
Update linting and golangci-lint version
Browse files Browse the repository at this point in the history
Signed-off-by: SabreenKaur <sabreenderjitkaur.gurjitsingh@arm.com>
  • Loading branch information
SabreenKaur committed Apr 12, 2023
1 parent 53373c8 commit d074e2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Install golangci-lint
run: |
go version
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.46.2
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.52.2
- name: Run required linters in .golangci.yml plus hard-coded ones here
run: $(go env GOPATH)/bin/golangci-lint run --timeout=3m
- name: Run optional linters (not required to pass)
Expand Down
5 changes: 2 additions & 3 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ we follow the Postel principle: refusing to encode unknown protocol entities,
while accepting unknown values - provided they fit the underlying type
system.
Creating Tags
# Creating Tags
A tag can be created with a call to NewTag() specifying a tag ID,
the name of the software being described and its version:
Expand Down Expand Up @@ -84,8 +84,7 @@ JSON marshalers:
data, err := tag.ToXML() // or tag.ToCBOR(), or tag.ToJSON()
Consuming Tags
# Consuming Tags
A tag can be de-serialized using one of the "From" interfaces. For example,
to decode a CoSWID tag from a memory buffer:
Expand Down

0 comments on commit d074e2d

Please sign in to comment.