Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ linters-settings:
key-naming-case: snake
# Enforce putting arguments on separate lines.
# Default: false
args-on-sep-lines: true
args-on-sep-lines: true
8 changes: 4 additions & 4 deletions .secrets.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@
"filename": "pkg/decoder/smartlabel/v1/decoder_test.go",
"hashed_secret": "884f72cf02528dcd37a031e2af8575273d4394e2",
"is_verified": false,
"line_number": 500,
"line_number": 529,
"is_secret": false
}
],
Expand Down Expand Up @@ -1645,15 +1645,15 @@
"filename": "pkg/decoder/tagxl/v1/decoder_test.go",
"hashed_secret": "516dead2735f9bcd1eced3f678aa6dbb0ed87c86",
"is_verified": false,
"line_number": 1166,
"line_number": 1045,
"is_secret": false
},
{
"type": "Hex High Entropy String",
"filename": "pkg/decoder/tagxl/v1/decoder_test.go",
"hashed_secret": "884f72cf02528dcd37a031e2af8575273d4394e2",
"is_verified": false,
"line_number": 1194,
"line_number": 1228,
"is_secret": false
}
],
Expand Down Expand Up @@ -2228,5 +2228,5 @@
}
]
},
"generated_at": "2025-09-16T15:59:23Z"
"generated_at": "2025-09-24T19:16:14Z"
}
30 changes: 15 additions & 15 deletions .testcoverage.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
# (mandatory)
# (mandatory)
# Path to coverprofile file (output of `go test -coverprofile` command).
#
# For cases where there are many coverage profiles, such as when running
# For cases where there are many coverage profiles, such as when running
# unit tests and integration tests separately, you can combine all those
# profiles into one. In this case, the profile should have a comma-separated list
# profiles into one. In this case, the profile should have a comma-separated list
# of profile files, e.g., 'cover_unit.out,cover_integration.out'.
profile: cover.out

# (optional; but recommended to set)
# (optional; but recommended to set)
# When specified reported file paths will not contain local prefix in the output
local-prefix: "github.com/truvami/decoder"

# Holds coverage thresholds percentages, values should be in range [0-100]
threshold:
# (optional; default 0)
# (optional; default 0)
# The minimum coverage that each file should have
file: 75

# (optional; default 0)
# (optional; default 0)
# The minimum coverage that each package should have
package: 80

# (optional; default 0)
# (optional; default 0)
# The minimum total coverage project should have
total: 80

# Holds regexp rules which will override thresholds for matched files or packages
# Holds regexp rules which will override thresholds for matched files or packages
# using their paths.
#
# First rule from this list that matches file or package is going to apply
# new threshold to it. If project has multiple rules that match same path,
# First rule from this list that matches file or package is going to apply
# new threshold to it. If project has multiple rules that match same path,
# override rules should be listed in order from specific to more general rules.
override:
# Increase coverage threshold to 100% for `foo` package
# Increase coverage threshold to 100% for `foo` package
# (default is 80, as configured above in this example)
- threshold: 75
path: ^internal/logger$

# Holds regexp rules which will exclude matched files or packages
# Holds regexp rules which will exclude matched files or packages
# from coverage statistics
exclude:
# Exclude files or packages matching their paths
Expand All @@ -47,12 +47,12 @@ exclude:
paths:
- ^cmd/
- ^examples/

# This solver will be deprecated after 31.07.2025
# https://www.semtech.com/loracloud-shutdown
- ^pkg/solver/loracloud/


# NOTES:
# - symbol `/` in all path regexps will be replaced by current OS file path separator
# to properly work on Windows
# to properly work on Windows
2 changes: 1 addition & 1 deletion build/buildx-alpine.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ ENV GOROOT /usr/local/go
ENV GOTOOLCHAIN auto

COPY decoder /usr/bin/
CMD ["decoder"]
CMD ["decoder"]
2 changes: 1 addition & 1 deletion build/buildx.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ ENV GOROOT /usr/local/go
ENV GOTOOLCHAIN auto

COPY decoder /usr/bin/
CMD ["decoder"]
CMD ["decoder"]
4 changes: 2 additions & 2 deletions demo.tape
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ Set Height 600

Type "decoder help" Sleep 500ms Enter

Sleep 5s
Sleep 5s

Type "decoder tagsl 1 8002cdcd1300744f5e166018040b14341a" Sleep 500ms Enter

Sleep 5s
Sleep 5s

Type "decoder tagsl 4 0000003c0000012c000151800078012c05dc02020100010200005460 --json | jq" Sleep 500ms Enter

Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -430,4 +430,4 @@ CHECKSUM=${PROJECT_NAME}-${VERSION}-checksums.txt
CHECKSUM_URL=${GITHUB_DOWNLOAD}/${TAG}/${CHECKSUM}


execute
execute
2 changes: 1 addition & 1 deletion pkg/decoder/smartlabel/v1/response.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@
},
"operation": "gnss"
}
}
}
2 changes: 1 addition & 1 deletion pkg/decoder/tagxl/v1/response.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@
},
"operation": "gnss"
}
}
}