Skip to content

gci: Prefixes with capital letters are ignored #2985

Closed
@acabarbaye

Description

@acabarbaye

Welcome

  • Yes, I'm using a binary release within 2 latest major releases. Only such installations are supported.
  • Yes, I've searched similar issues on GitHub and didn't find any.
  • Yes, I've included all information below (version, config, etc).
  • Yes, I've tried with the standalone linter if available. (https://golangci-lint.run/usage/linters/)

Description of the problem

The regression is with imports containing capital letters:
daixiang0/gci#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 daixiang0/gci#79

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdependenciesRelates to an upstream dependency

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions