Skip to content

Exclusions broken #1230

@wood-jp

Description

@wood-jp

Describe the bug
With v1.6.1 which includes #1060 the exclusions are no longer working as before. I have previously been using

revive -exclude dir1/... -exclude dir2/... ./...

I see the globbing patterns have replaced the dots, however I have been unable to make anything work. I've tried:

  • 'dir1/*'
  • 'dir1/**'
  • './dir1/**'
    • 'dir1/**.go'

To Reproduce
See above

Expected behavior
Should be able to exclude entire directories

Logs
no

Desktop (please complete the following information):

  • Ubuntu 24.04.1 LTS
  • Go 1.23.6

Additional context
If this does work, some better samples in the CLI help would be good.
Also, this was clearly a breaking change and not just a patch version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions