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.

Being able to bail on error.

See original GitHub issue

Description

Hi there, first of, awesome package!

This is a feature request.

I was wondering if there was a way to bail on error? Currently, I have multiple linters set up, and one of them is quite long to run. Sometimes, other short ones fail before this long one, but we have to wait after every linters to finish their job before exiting the process.

I’m using lint-staged in a pre-commit hook with husky. It’s very useful this way.

Maybe I’m missing a configuration that would let me bail on error, if so I’d love more info on it.

Thank you!

Environment

  • OS:macOS Mojave
  • Node.js:11.6.0
  • lint-staged:8.1.0

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
okonetcommented, Mar 20, 2019

It does make sense to me. I’ll re-open the issue if you’re up for working on it.

2reactions
yoannmoinetcommented, Mar 19, 2019

I’ve just found out that it does bail on error, but only if concurrent is set to false. Since we have lots of linters to run, it’s not practical to set concurrent to false.

Is there a way to kill other jobs when one fails? Even in concurrent mode. That would be awesome.

Read more comments on GitHub >

github_iconTop Results From Across the Web

6 Reasons Why Bail Can Be Denied
Here are six reasons why in some cases, the judges may deny bail applications. Usually, a judge reviews the criminal records of all...
Read more >
Failure to Appear: What Happens If You Skip Bail? |
Being charged with skipping bail is a very serious charge that you should do everything possible to avoid. If you end up missing...
Read more >
Common Bail Bond Mistakes
Failing to Notify the Bail Company about Out-Of-State Travel ... By law, a bail company is allowed to revoke a bond without refunding...
Read more >
7 Common Bail Bond Mistakes and How to Avoid Them
7 Common Bail Bond Mistakes and How to Avoid Them · 1. Lying · 2. Choosing an Unlicensed Bail Bond Service · 3....
Read more >
CODE OF CRIMINAL PROCEDURE CHAPTER 17. BAIL
(f) A magistrate may set bail for a defendant charged only with an offense punishable as a misdemeanor without ordering, preparing, or considering...
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