Skip to content

Commit 6de0279

Browse files
Merge pull request #166 from truvami/refactor/Run_pre-commit
2 parents eb5dfe7 + 500d2d6 commit 6de0279

9 files changed

Lines changed: 27 additions & 27 deletions

File tree

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ linters-settings:
2121
key-naming-case: snake
2222
# Enforce putting arguments on separate lines.
2323
# Default: false
24-
args-on-sep-lines: true
24+
args-on-sep-lines: true

.secrets.baseline

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@
405405
"filename": "pkg/decoder/smartlabel/v1/decoder_test.go",
406406
"hashed_secret": "884f72cf02528dcd37a031e2af8575273d4394e2",
407407
"is_verified": false,
408-
"line_number": 500,
408+
"line_number": 529,
409409
"is_secret": false
410410
}
411411
],
@@ -1645,15 +1645,15 @@
16451645
"filename": "pkg/decoder/tagxl/v1/decoder_test.go",
16461646
"hashed_secret": "516dead2735f9bcd1eced3f678aa6dbb0ed87c86",
16471647
"is_verified": false,
1648-
"line_number": 1166,
1648+
"line_number": 1045,
16491649
"is_secret": false
16501650
},
16511651
{
16521652
"type": "Hex High Entropy String",
16531653
"filename": "pkg/decoder/tagxl/v1/decoder_test.go",
16541654
"hashed_secret": "884f72cf02528dcd37a031e2af8575273d4394e2",
16551655
"is_verified": false,
1656-
"line_number": 1194,
1656+
"line_number": 1228,
16571657
"is_secret": false
16581658
}
16591659
],
@@ -2228,5 +2228,5 @@
22282228
}
22292229
]
22302230
},
2231-
"generated_at": "2025-09-16T15:59:23Z"
2231+
"generated_at": "2025-09-24T19:16:14Z"
22322232
}

.testcoverage.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
1-
# (mandatory)
1+
# (mandatory)
22
# Path to coverprofile file (output of `go test -coverprofile` command).
33
#
4-
# For cases where there are many coverage profiles, such as when running
4+
# For cases where there are many coverage profiles, such as when running
55
# unit tests and integration tests separately, you can combine all those
6-
# profiles into one. In this case, the profile should have a comma-separated list
6+
# profiles into one. In this case, the profile should have a comma-separated list
77
# of profile files, e.g., 'cover_unit.out,cover_integration.out'.
88
profile: cover.out
99

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

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

20-
# (optional; default 0)
20+
# (optional; default 0)
2121
# The minimum coverage that each package should have
2222
package: 80
2323

24-
# (optional; default 0)
24+
# (optional; default 0)
2525
# The minimum total coverage project should have
2626
total: 80
2727

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

40-
# Holds regexp rules which will exclude matched files or packages
40+
# Holds regexp rules which will exclude matched files or packages
4141
# from coverage statistics
4242
exclude:
4343
# Exclude files or packages matching their paths
@@ -47,12 +47,12 @@ exclude:
4747
paths:
4848
- ^cmd/
4949
- ^examples/
50-
50+
5151
# This solver will be deprecated after 31.07.2025
5252
# https://www.semtech.com/loracloud-shutdown
5353
- ^pkg/solver/loracloud/
5454

55-
55+
5656
# NOTES:
5757
# - symbol `/` in all path regexps will be replaced by current OS file path separator
58-
# to properly work on Windows
58+
# to properly work on Windows

build/buildx-alpine.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ ENV GOROOT /usr/local/go
1414
ENV GOTOOLCHAIN auto
1515

1616
COPY decoder /usr/bin/
17-
CMD ["decoder"]
17+
CMD ["decoder"]

build/buildx.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ ENV GOROOT /usr/local/go
1414
ENV GOTOOLCHAIN auto
1515

1616
COPY decoder /usr/bin/
17-
CMD ["decoder"]
17+
CMD ["decoder"]

demo.tape

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ Set Height 600
6868

6969
Type "decoder help" Sleep 500ms Enter
7070

71-
Sleep 5s
71+
Sleep 5s
7272

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

75-
Sleep 5s
75+
Sleep 5s
7676

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

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,4 +430,4 @@ CHECKSUM=${PROJECT_NAME}-${VERSION}-checksums.txt
430430
CHECKSUM_URL=${GITHUB_DOWNLOAD}/${TAG}/${CHECKSUM}
431431

432432

433-
execute
433+
execute

pkg/decoder/smartlabel/v1/response.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,4 @@
8080
},
8181
"operation": "gnss"
8282
}
83-
}
83+
}

pkg/decoder/tagxl/v1/response.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,4 @@
8080
},
8181
"operation": "gnss"
8282
}
83-
}
83+
}

0 commit comments

Comments
 (0)