Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

skip-dirs not skipping the file #2748

Closed
4 tasks done
mayank558 opened this issue Apr 6, 2022 · 2 comments
Closed
4 tasks done

skip-dirs not skipping the file #2748

mayank558 opened this issue Apr 6, 2022 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@mayank558
Copy link

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

I am trying to skip some directories in project from golangci-lint but using the skip-dirs is not helping

Version of golangci-lint

$ golangci-lint --version
# golangci-lint has version 1.43.0 built from 861262b on 2021-11-02T20:54:42Z

Configuration file

$ cat .golangci.yml
run:
  # which dirs to skip: issues from them won't be reported;
  # can use regexp here: generated.*, regexp is applied on full path;
  # default value is empty list, but default dirs are skipped independently
  # from this option's value (see skip-dirs-use-default).
  skip-dirs:
    - <path to the file>

Go environment

$ go version && go env
go version go1.17.5 darwin/arm64

Verbose output of running

$ golangci-lint cache clean
$ golangci-lint run -v
# paste output here

Code example or link to a public repository

run:
  # which dirs to skip: issues from them won't be reported;
  # can use regexp here: generated.*, regexp is applied on full path;
  # default value is empty list, but default dirs are skipped independently
  # from this option's value (see skip-dirs-use-default).
  skip-dirs:
    - <path to the file>
@mayank558 mayank558 added the bug Something isn't working label Apr 6, 2022
@boring-cyborg
Copy link

boring-cyborg bot commented Apr 6, 2022

Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors.

@ldez ldez added duplicate This issue or pull request already exists and removed bug Something isn't working labels Apr 6, 2022
@ldez
Copy link
Member

ldez commented Apr 6, 2022

duplicate of #1832

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants