question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add option to ignore files

See original GitHub issue

Please add a configuration opportunity to exclude particular files from the linter.

Either allow globbing for the config.files option:

files: ["**/[a-cA-C]*.md"]

Or add a new configuration option, explicitly excluding files (again, with globbin):

exclude: ["**/__*.md"]

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
elgalucommented, Jun 29, 2021

Also setting --ignore in a pre-commit works like a charm, e.g.

  - repo: https://github.com/igorshubovych/markdownlint-cli
    rev: "596386e6a7da92547c4fc6b94fce59bcbc8290ee" # frozen: v0.27.1
    hooks:
      - id: markdownlint
        args: ["--ignore", "towncrier-template.md"]
0reactions
SetTrendcommented, Dec 14, 2018

Works like a charm. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

.gitignore file - ignoring files in Git | Atlassian Git Tutorial
Git ignore patterns are used to exclude certain files in your working directory from your Git history. They can be local, global, or...
Read more >
Ignoring files - GitHub Docs
Configuring ignored files for a single repository · Open TerminalTerminalGit Bash. · Navigate to the location of your Git repository. · Create a...
Read more >
How to ignore certain files in Git - Stack Overflow
The problem is that .gitignore ignores just files that weren't tracked before (by git add ). Run git reset name_of_file to unstage the...
Read more >
.gitignore File – How to Ignore Files and Folders in Git
It's a best practice to create a .gitignore file with all the files and the different file patterns you want to ignore when...
Read more >
How to Use a .gitignore File - Pluralsight
Since the .gitignore file gets checked into the repository, there are a couple of options if you want to ignore some files without...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found