rodjek/puppet-lint — pull request #229 by olivierdagenais (2013-09-25 17:15:51+00:00)
Title: Fix lexing of files containing CR/LF line endings on non-Windows OS

This fixes a bug *in version 0.3.2* where an input file containing CR/LF will be flagged as containing syntax errors on platforms other than Windows.

#### Note
I created a branch called `0.3` (based on the tag for `0.3.2`) but I'm having difficulty crafting the pull request to have my changes also go to a `0.3` branch, probably because there isn't (yet!) a `0.3` branch in the origin.

#### Manual testing
Before this fix, running `puppet-lint some-file.pp` on, say, CentOS when `some-file.pp` contained CR/LF (i.e. Windows line endings) would yield:

ERROR: Syntax error (try running `puppet parser validate `) on line 2

With this fix, running `puppet-lint some-file.pp` on, say, CentOS when `some-file.pp` contained CR/LF (i.e. Windows line endings) now yields no errors.