diff --git a/.golangci.yml b/.golangci.yml index 9418532c..04773e19 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -21,4 +21,4 @@ linters-settings: key-naming-case: snake # Enforce putting arguments on separate lines. # Default: false - args-on-sep-lines: true \ No newline at end of file + args-on-sep-lines: true diff --git a/.secrets.baseline b/.secrets.baseline index 454522b6..8c7e8ded 100644 --- a/.secrets.baseline +++ b/.secrets.baseline @@ -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 } ], @@ -1645,7 +1645,7 @@ "filename": "pkg/decoder/tagxl/v1/decoder_test.go", "hashed_secret": "516dead2735f9bcd1eced3f678aa6dbb0ed87c86", "is_verified": false, - "line_number": 1166, + "line_number": 1045, "is_secret": false }, { @@ -1653,7 +1653,7 @@ "filename": "pkg/decoder/tagxl/v1/decoder_test.go", "hashed_secret": "884f72cf02528dcd37a031e2af8575273d4394e2", "is_verified": false, - "line_number": 1194, + "line_number": 1228, "is_secret": false } ], @@ -2228,5 +2228,5 @@ } ] }, - "generated_at": "2025-09-16T15:59:23Z" + "generated_at": "2025-09-24T19:16:14Z" } diff --git a/.testcoverage.yml b/.testcoverage.yml index a7797991..f08139c3 100644 --- a/.testcoverage.yml +++ b/.testcoverage.yml @@ -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 @@ -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 \ No newline at end of file +# to properly work on Windows diff --git a/build/buildx-alpine.Dockerfile b/build/buildx-alpine.Dockerfile index 197c3263..73870e2c 100644 --- a/build/buildx-alpine.Dockerfile +++ b/build/buildx-alpine.Dockerfile @@ -14,4 +14,4 @@ ENV GOROOT /usr/local/go ENV GOTOOLCHAIN auto COPY decoder /usr/bin/ -CMD ["decoder"] \ No newline at end of file +CMD ["decoder"] diff --git a/build/buildx.Dockerfile b/build/buildx.Dockerfile index c485add9..0ea445be 100644 --- a/build/buildx.Dockerfile +++ b/build/buildx.Dockerfile @@ -14,4 +14,4 @@ ENV GOROOT /usr/local/go ENV GOTOOLCHAIN auto COPY decoder /usr/bin/ -CMD ["decoder"] \ No newline at end of file +CMD ["decoder"] diff --git a/demo.tape b/demo.tape index 6d1a6d53..c62c807a 100644 --- a/demo.tape +++ b/demo.tape @@ -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 diff --git a/install.sh b/install.sh index ae8d2fd7..c09236b7 100755 --- a/install.sh +++ b/install.sh @@ -430,4 +430,4 @@ CHECKSUM=${PROJECT_NAME}-${VERSION}-checksums.txt CHECKSUM_URL=${GITHUB_DOWNLOAD}/${TAG}/${CHECKSUM} -execute \ No newline at end of file +execute diff --git a/pkg/decoder/smartlabel/v1/response.json b/pkg/decoder/smartlabel/v1/response.json index ec5f932a..a3dc04ff 100644 --- a/pkg/decoder/smartlabel/v1/response.json +++ b/pkg/decoder/smartlabel/v1/response.json @@ -80,4 +80,4 @@ }, "operation": "gnss" } -} \ No newline at end of file +} diff --git a/pkg/decoder/tagxl/v1/response.json b/pkg/decoder/tagxl/v1/response.json index ec5f932a..a3dc04ff 100644 --- a/pkg/decoder/tagxl/v1/response.json +++ b/pkg/decoder/tagxl/v1/response.json @@ -80,4 +80,4 @@ }, "operation": "gnss" } -} \ No newline at end of file +}