Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable JSCS validation for a specific part of code: Line must be at most 120 characters

In a specific part of my code I need to allow a string to longer that 120 characters.

I would like to disable for that line of code JSCS validation.

At the moment I get

JSCS: Line must be at most 120 characters

How to do it?

like image 695
GibboK Avatar asked Dec 07 '25 02:12

GibboK


2 Answers

I found a solution using this

//jscs:disable maximumLineLength
..long code here
//jscs:enable maximumLineLength

Ignore all rules at file level

//jscs:disable

Ignore specific rule at file level

//jscs:disable specificRule
like image 125
GibboK Avatar answered Dec 08 '25 17:12

GibboK


if you want to disable globally in your .jscsrc, just add "maximumLineLength": null to it.

like image 39
joe Avatar answered Dec 08 '25 17:12

joe



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!