Skip to content

[ Question ]: How to lint multiple schemas in different folders of my project? #10

@DRodriguez88

Description

@DRodriguez88

Description of your question
I am looking for a way to run gql lint ... against schema files distributed in my project, preferably without having to run the command for each file.
This is the same behavior achieved in node projects using graphql-schema-linter **/*.graphql --rules ...

I have tried different iterations of gql lint -f **/*.graphql -r ...
The command will only run successfully against the first schema file it finds.

Side note, when using gql lint -f **/*.graphql -r ... from a Makefile or Jenkinsfile, it only finds files in a single level of directory nesting.

To Reproduce
Create a project with .graphql files nested at different levels.
run go install github.com/CrowdStrike/gql
run gql lint -f **/*.graphql -r ...
Output shows only 1 file has been linted.

Expected behavior
Linting output for each .graphql file in the project.

Environment (please complete the following information):

  • OS: MacOS Monterey 12.2
  • golang: 1.18
  • gql: 0.2.0

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions