[code-quality] Test for checking linefeeds

2015-06-04 Thread anatoly techtonik
Hi, I don't want to reinvent to bicycle (even though it is easy), so is there a support for checking linefeeds in any of the existing linter tools? The two checks in particular are interesting: 1. test that files don't have mixed linefeeeds 2. test that files comply with project linefeed style (L

Re: [code-quality] Test for checking linefeeds

2015-06-04 Thread Claudiu Popa
On Wed, Jun 3, 2015 at 1:59 PM, anatoly techtonik wrote: > Hi, > > I don't want to reinvent to bicycle (even though it is easy), > so is there a support for checking linefeeds in any of the > existing linter tools? > > The two checks in particular are interesting: > 1. test that files don't have m

Re: [code-quality] Test for checking linefeeds

2015-06-04 Thread Claudiu Popa
On Thu, Jun 4, 2015 at 4:08 PM, Claudiu Popa wrote: > On Wed, Jun 3, 2015 at 1:59 PM, anatoly techtonik wrote: >> Hi, >> >> I don't want to reinvent to bicycle (even though it is easy), >> so is there a support for checking linefeeds in any of the >> existing linter tools? >> >> The two checks in

Re: [code-quality] Test for checking linefeeds

2015-06-04 Thread Claudiu Popa
On Thu, Jun 4, 2015 at 9:30 PM, anatoly techtonik wrote: > Found the command: > py -2 -m pylint --reports=n --disable=all > --enable=trailing-whitespace,mixed-line-endings,unexpected-line-ending-format > --expected-line-ending-format=LF file.py > > Now how to run that on all modules/packages recur

Re: [code-quality] Test for checking linefeeds

2015-06-04 Thread Claudiu Popa
On Thu, Jun 4, 2015 at 9:47 PM, anatoly techtonik wrote: > > Does it support multiple modules like `pylint package1 package1 ...`? > Command line help looks like it doesn't. > > Also, is it possible to limit CRLF mismatch message to a single line per > file if all lines are in the wrong format? >