Skip to content
This repository has been archived by the owner on Mar 4, 2022. It is now read-only.

Ignore entire directory for linting purposes #564

Closed
gitpushdashf opened this issue Jul 8, 2020 · 2 comments
Closed

Ignore entire directory for linting purposes #564

gitpushdashf opened this issue Jul 8, 2020 · 2 comments

Comments

@gitpushdashf
Copy link

I'm importing a large, public proto repository. Unfortunately, it doesn't pass lint. I'd like to run the google lint on my code and no lint on that folder.

Nothing I've found makes that happen. I can ignore individual lint types, but not all of them.

Is there a way to do this?

@gitpushdashf
Copy link
Author

$ cat prototool.yaml
protoc:
  version: 3.11.0
  includes:
    - ai
    - fhir
excludes:
  - fhir
lint:
  group: google
  ignores:
    - id: ALL
      files:
        - fhir
generate:
  plugins:
    - name: python
      output: stubs
$ prototool all
unknown lint id in configuration file: ALL

Not sure how one is supposed to specify all or do an empty group for a particular folder.

@gitpushdashf gitpushdashf reopened this Jul 9, 2020
@gitpushdashf
Copy link
Author

My bad. This works as intended dropping the lint: ignores section like this:

$ cat prototool.yaml
protoc:
  version: 3.11.0
  includes:
    - ai
    - fhir
excludes:
  - fhir
lint:
  group: google
generate:
  plugins:
    - name: python
      output: stubs

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant