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.

Max-Warnings Config Issue

See original GitHub issue

Which version of lesshint are you using? 2.4.0

How are you running lesshint? CLI, Node.js API, Grunt/Gulp plugin? CLI for testing. package.json run command in Node.js app

What’s your .lesshintrc configuration? Default

If you’re reporting a bug, please show us some code that’s failing. `lesshint --max-warnings=-1 ./path_to/styles/

What did you expect to happen? I was expecting my build to succeed regardless of how many warnings I had.

What’s the actual result? I get an exit code of 1 and I received the following error when I ran the previous code: error: unknown options '-1'

While I could use a positive integer for the time being, it would be nice to know what I am doing incorrectly to receive this error or for it to be corrected to work as expected.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
darthelitcommented, Jan 22, 2017

@shellscape That is actually a lot better than what I was thinking. I’ll get a PR submitted with the fix and test updates.

0reactions
jwilssoncommented, Feb 3, 2017

@Venomknight257 I guess congratulations on the baby is in order then!

I filed a PR in #334 with the suggested changes, hope that’s alright with you. I look forward to any future future contributions from you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to specify `max-warnings`? · Issue #147
How do I specify the command-line argument max-warnings with eslint-loader? I've tried adding this to my webpack config: module.exports = { ...
Read more >
How can you set ESLint CLI settings in configuration file?
There isn't a tag for the config file where you can specify max-warnings. The next closest thing is to add a script to...
Read more >
Tune the threshold on the number of warnings on eslint - GitLab
We should allow developers/contributors to use warn effectively by setting non-zero definite value as --max-warnings for CI. https://eslint.org/ ...
Read more >
Command Line Interface
--max-warnings. This option allows you to specify a warning threshold, which can be used to force ESLint to exit with an error status...
Read more >
ESLint Warnings Are an Anti-Pattern
Now, there's no real issue with using the warn setting. The problem though is that when ESLint rule violations aren't enforced, developers tend ......
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