Skip to content

Commit

Permalink
ci lint: ignore teoretical xml tag name conflicts
Browse files Browse the repository at this point in the history
Addressing:
  Running [/home/runner/golangci-lint-1.55.2-linux-amd64/golangci-lint run --out-format=github-actions --out-${NO_FUTURE}format colored-line-number] in [] ...
  Error: pkg/xsd/attribute.go:18:28: SA5008: invalid XML tag: name "-" conflicts with name "attribute" in *github.com/gocomply/xsd2go/pkg/xsd.Attribute.XMLName (staticcheck)
  	refAttr        *Attribute `xml:"-"`
  	                          ^
  Error: pkg/xsd/attribute.go:20:28: SA5008: invalid XML tag: name "-" conflicts with name "schema" in *github.com/gocomply/xsd2go/pkg/xsd.Schema.XMLName (staticcheck)
  	schema         *Schema    `xml:"-"`
  	                          ^
  Error: pkg/xsd/attributegroup.go:15:31: SA5008: invalid XML tag: name "-" conflicts with name "schema" in *github.com/gocomply/xsd2go/pkg/xsd.Schema.XMLName (staticcheck)
  	schema           *Schema     `xml:"-"`
  	                             ^
  Error: pkg/xsd/choice.go:13:25: SA5008: invalid XML tag: name "-" conflicts with name "schema" in *github.com/gocomply/xsd2go/pkg/xsd.Schema.XMLName (staticcheck)
  	schema      *Schema    `xml:"-"`
  	                       ^
  Error: pkg/xsd/element.go:22:31: SA5008: invalid XML tag: name "-" conflicts with name "element" in *github.com/gocomply/xsd2go/pkg/xsd.Element.XMLName (staticcheck)
  	refElm          *Element     `xml:"-"`
  	                             ^
  • Loading branch information
isimluk committed Nov 20, 2023
1 parent 4dbca29 commit 47013f2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/lint-golangci-lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
linters-settings:
staticcheck:
checks:
- all
- '-SA5008'
2 changes: 1 addition & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ jobs:
skip-go-installation: true
skip-pkg-cache: true
skip-build-cache: true
args: "--out-${NO_FUTURE}format colored-line-number"
args: "--out-${NO_FUTURE}format colored-line-number --config=./.github/workflows/lint-golangci-lint.yaml"

0 comments on commit 47013f2

Please sign in to comment.