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.

Support checking multiple files at once

See original GitHub issue

Please support an arbitrary number of files passed in on the commandline. For example:

cfn-lint template1.yaml template2.yaml

Issue Analytics

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

github_iconTop GitHub Comments

4reactions
asottilecommented, Jun 21, 2018

Nearly every linter supports as a standard interface linter [filename, [filename ...]] (except this one) please consider the precedents set by tools like pyflakes / flake8 / pylint / eslint / prettier / black / etc.

Not only does this make invocation dead simple with xargs, it is much more performant (the interpreter and subprocess overhead occurs once instead of a linear amount of times by file). This overhead is especially high on windows. (even on Linux, compare the time taken between git ls-files -- '*.py' | xargs pylint vs. git ls-files -- '*.py' | xargs -n1 pylint).

Also in line with other posix tools you could simply invoke with a glob linter *.yaml instead of needing to copy paste a complicated wrapper everywhere.

The main motivation here is so that this linter can easily be integrated into other frameworks, in particular https://pre-commit.com

0reactions
kddejongcommented, Oct 4, 2018

Released in v0.7.4

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Select Multiple Files on a Computer: A Guide - Indeed
The ability to select multiple files is important because it means you can perform actions on many files at one time, which is...
Read more >
How to Select Multiple Files or Folders on a Windows Computer
An alternative way to pick up multiple Windows files is through your mouse. Simply left-click your mouse button and drag it over the...
Read more >
How to Select or Highlight Multiple Files and Folders
You can use a combination of selecting multiple files or folders and single files or folders at the same time by following the...
Read more >
Support checking multiple files at once · Issue #149 - GitHub
Please support an arbitrary number of files passed in on the commandline. For example: cfn-lint template1.yaml template2.yaml.
Read more >
How to Select Multiple Files on a Windows 10 PC at Once
To select multiple files on Windows 10 from your desktop, hold down the Ctrl key as you click on each file until all...
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