Skip to content

vendor is not skipped #1233

@marcelloh

Description

@marcelloh

Describe the bug
revive -formatter friendly -exclude ./vendor/... ./...
This should skip any vendor messages

To Reproduce
revive -version
version 1.6.1

revive -formatter friendly -exclude ./vendor/... ./...

Expected behavior
to have no messages like:
https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#var-naming don't use underscores in Go names; struct field single_quoted_allowed should be singleQuotedAllowed
vendor/gopkg.in/yaml.v3/yamlh.go:779:3

Desktop (please complete the following information):

  • OS: MacOS 15.3.1
  • Go: 1.24

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions