cflint / CFLint

Static code analysis for CFML (a linter)
BSD 3-Clause "New" or "Revised" License
174 stars 84 forks source link

It would be useful to have a -q (--quiet) option #4

Closed kenguest closed 10 years ago

kenguest commented 10 years ago

This currently happens:

$ cflint -folder images -text -textfile /dev/stdout 

Option folder => images Option text => null Option textfile => /dev/stdout htmloutput?false xmlOutput?false Writing /dev/stdout

Total issues:0

It would be useful to be able to turn off the printing of all progress/debug/error indicators. I'd be inclined to print them to stderr instead so they can be redirected out of the way, though it would be quicker to check for -q so they aren't printed in the first place.

This is so that ideally there would be a minimum amount of "noise" when calling cflint from a BufWritePost hook in vim for automatically linting CFML.

ryaneberly commented 10 years ago

With some effort, the noise is much reduced in general. -q is even more quiet.

Thanks. it's available in CFLint-0.1.7

kenguest commented 10 years ago

This is great, thanks. I can now have my .cfm files linted on saving them in vim, the link to my ftplugin/cf.vim file is below :-)

https://github.com/kenguest/My-.vim-files/blob/master/ftplugin/cf.vim