diff --git a/.github/workflows/pr-extra.yml b/.github/workflows/pr-extra.yml deleted file mode 100644 index aed74c1..0000000 --- a/.github/workflows/pr-extra.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: Extra -on: - push: - tags: - - v* - branches: - - main - pull_request: -jobs: - vulns: - name: Vulnerability scanner - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-go@v5 - - name: Run go list - run: go list -json -m all > go.list - - name: Nancy - uses: sonatype-nexus-community/nancy-github-action@v1.0.3 diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 60dcdb1..be187d0 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -28,7 +28,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: lint - uses: golangci/golangci-lint-action@v3.7.0 + uses: golangci/golangci-lint-action@v4.0.0 with: version: latest diff --git a/.golangci.yml b/.golangci.yml index d52e5e1..daeb5ef 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -35,7 +35,6 @@ linters-settings: linters: disable-all: true enable: - - deadcode - dogsled - dupl - errcheck @@ -45,7 +44,6 @@ linters: - gocyclo - gofmt - goimports - - golint - gosec - gosimple - govet @@ -53,15 +51,12 @@ linters: - lll - misspell - nakedret - - scopelint - staticcheck - - structcheck - stylecheck - typecheck - unconvert - unparam - unused - - varcheck - whitespace - gochecknoglobals - gocognit diff --git a/type.go b/type.go index 63a190b..d3691ad 100644 --- a/type.go +++ b/type.go @@ -87,7 +87,7 @@ func (p *Type) Parse(s string) error { } // Bare types starts from lowercase. - if len(p.Name) > 0 && !p.Percent { + if p.Name != "" && !p.Percent { p.Bare = p.Name[0:1] == strings.ToLower(p.Name[0:1]) } return nil