SoftwareMarbles / lazy

Hackable Coding Assistant
http://getlazy.org
MIT License
1 stars 0 forks source link

Add pragma push/pop to custom lazy rules #32

Open ierceg opened 7 years ago

ierceg commented 7 years ago

Apparently ESLint doesn't apply pragma rules within the defined boundaries but rather scans the entire file first and whatever was the last setting, that's the one that's applied. This may be fine for them but I think there are good reasons to implement pragma push/pop mechanism (like C/C++ compilers have since pretty much forever) and then keep track of the statistics on such turning on/offs (in general even without it, it's probably useful to show stats on rules that have to be turned off in the code base)