Skip to content
This repository has been archived by the owner on Nov 11, 2021. It is now read-only.

How can I disable lint checks for a code block? #19

Open
huangjs opened this issue Mar 19, 2015 · 7 comments
Open

How can I disable lint checks for a code block? #19

huangjs opened this issue Mar 19, 2015 · 7 comments

Comments

@huangjs
Copy link

huangjs commented Mar 19, 2015

No description provided.

@HairyFotr
Copy link
Owner

Currently you cannot, but you can ignore specific lines with //linter:disable[:OptionalCheckNames...]

What kind of syntax would you recommend?

@huangjs
Copy link
Author

huangjs commented Mar 19, 2015

I would recommend scalastyle-like switcher.

// linter:off
...
// linter:on

Jianshi

On Thu, Mar 19, 2015 at 6:33 PM, Matic Potočnik [email protected]
wrote:

Currently you cannot, but you can ignore specific lines with
//linter:disable[:OptionalCheckNames...]

What kind of syntax would you recommend?


Reply to this email directly or view it on GitHub
#19 (comment).

Jianshi Huang

LinkedIn: jianshi
Twitter: @JsHuang
Github & Blog: http://huangjs.github.com/

@HairyFotr
Copy link
Owner

Yeah, that sounds good, I'll try to implement something over the weekend.

I'll likely also replace "disable" in favour of "ignore" to make it even more similar to scalastyle, and because having "disable" and "off"/"on" together would be confusing.

@huangjs
Copy link
Author

huangjs commented Mar 20, 2015

Thanks!

Jianshi

On Fri, Mar 20, 2015 at 12:51 AM, Matic Potočnik [email protected]
wrote:

Yeah, that sounds good, I'll try to implement something over the weekend.

I'll likely also replace "disable" in favour of "ignore" to make it even
more similar to scalastyle, and because having "disable" and "off"/"on"
together would be confusing.


Reply to this email directly or view it on GitHub
#19 (comment).

Jianshi Huang

LinkedIn: jianshi
Twitter: @JsHuang
Github & Blog: http://huangjs.github.com/

@ngbinh
Copy link

ngbinh commented May 17, 2016

any update on this?

@TomasMikula
Copy link
Contributor

👍
I would also like to be able to turn off just specific warnings.

@KANGOD

This comment has been minimized.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants