golangci / golangci-lint

Fast linters runner for Go
https://golangci-lint.run
GNU General Public License v3.0
15.65k stars 1.39k forks source link

gci: Prefixes with capital letters are ignored #2985

Closed acabarbaye closed 2 years ago

acabarbaye commented 2 years ago

Welcome

Description of the problem

The regression is with imports containing capital letters: https://github.com/daixiang0/gci/issues/79

Version of golangci-lint

1.4.7

Configuration file

run:
  timeout: 10m

  build-tags:
    - integration

linters:
  disable-all: true # Disable defaults, then enable the ones we want
  enable:
    - deadcode
    - errcheck
    - gosimple
    - govet
    - ineffassign
    - staticcheck
    - structcheck
    - typecheck
    - unused
    - varcheck
    - bodyclose
    - stylecheck
    - gosec
    - goimports
    - gci

linters-settings:
  goimports:
    local-prefixes: github.com/ARM-software
  gci:
    local-prefixes: github.com/ARM-software

Go environment

1.18

Verbose output of running

infinite loop

Code example or link to a public repository

see https://github.com/daixiang0/gci/issues/79

ldez commented 2 years ago

Hello, I created a fix https://github.com/daixiang0/gci/pull/81