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

Multiple files to ignore #7

Closed
ruzickap opened this issue Jul 9, 2020 · 2 comments · Fixed by #12
Closed

Multiple files to ignore #7

ruzickap opened this issue Jul 9, 2020 · 2 comments · Fixed by #12

Comments

@ruzickap
Copy link

ruzickap commented Jul 9, 2020

Hello.

Is there an easy way how to exclude multiple files form the linting process?

Something like:

    - name: Lint changelog file
      uses: docker://avtodev/markdown-lint:v1
      with:
        ignore:
          - one_file.md
          - another_file.md
        args: '**.md'

^^^ This should recursively check all *.md files and skip two of them mentioned above.

Thank you

@MarcoIeni
Copy link

This is not solved for me. Example here.

I think you have to repeat the --ignore flag in order to ignore multiple paths.

For example this doesn't work:

markdownlint '**/*.md' --ignore node_modules docs/default-keybindings.md

instead this works:

markdownlint '**/*.md' --ignore node_modules --ignore docs/default-keybindings.md

I also tried to pass the double --ignore flag to the args: yaml field, but it doesn't work. Example here

@tarampampam
Copy link
Contributor

Hi @MarcoIeni! Can you verify #12 ?

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

Successfully merging a pull request may close this issue.

3 participants