Closed sp71 closed 1 year ago
If the prefix contains a space after the comma, it impacts the gci tool. It's common practice to use a space delimiter between commas in many applications; therefore, spaces should be ignored.
0.11.1
.golangci.yaml
linters-settings: gci: sections: - standard - default - prefix(github.com/company/library, github.com/company) - blank - dot skip-generated: true custom-order: true linters: disable-all: true enable: - errcheck - gosimple - govet - ineffassign - staticcheck - unused - gci run: issues-exit-code: 1
Should group according to prefix ignoring space
Did not work as expected due to space. Had to remove space in prefix
- prefix(github.com/company/library,github.com/company)
Bug
If the prefix contains a space after the comma, it impacts the gci tool. It's common practice to use a space delimiter between commas in many applications; therefore, spaces should be ignored.
What version of GCI are you using?
Reproduce Steps
.golangci.yaml
What did you expect to see?
Should group according to prefix ignoring space
What did you see instead?
Did not work as expected due to space. Had to remove space in prefix