Skip to content

Commit

Permalink
chore: ignore load_data.go for golint
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Yu <jack.yu@suse.com>
  • Loading branch information
Yu-Jack committed May 23, 2024
1 parent ae42374 commit 84854f2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .golangci.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
"issues": {
"exclude-files": [
"/zz_generated_",
"_generated",
"load_data.go"
"_generated"
],
"exclude-dirs": [
"generated"
Expand All @@ -24,7 +23,8 @@
"timeout": "5m",
"tests": true,
"build-tags": [
"test"
"test",
"codeanalysis"
]
},
"linters-settings": {
Expand Down
1 change: 1 addition & 0 deletions pkg/util/gousb/codegen/load_data.go.tpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// +build !codeanalysis
/* This file was part of the google/gousb project, copied to this project
* to get around private package issues.
*
Expand Down
5 changes: 3 additions & 2 deletions pkg/util/gousb/usbid/load_data.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// +build !codeanalysis
/* This file was part of the google/gousb project, copied to this project
* to get around private package issues.
*
Expand Down Expand Up @@ -25,8 +26,8 @@ import "time"
//
// The baked-in data was last generated:
//
// 2024-05-23 10:35:50.641558 +0800 CST m=+1.188489792
var LastUpdate = time.Unix(0, 1716431750641558000)
// 2024-05-23 11:20:09.116951 +0800 CST m=+1.352890709
var LastUpdate = time.Unix(0, 1716434409116951000)

const usbIDListData = `#
# List of USB ID's
Expand Down

0 comments on commit 84854f2

Please sign in to comment.