Vauxoo / pylint-conf

Este proyecto se manejará el estándar de configuración de pylint versionado
GNU Lesser General Public License v3.0
0 stars 17 forks source link

[IMP] pylint.cfg: Adding the format check 'expected-line-ending-format' #50

Closed JesusZapata closed 7 years ago

JesusZapata commented 7 years ago

Related with https://github.com/PyCQA/pylint/issues/1616#issuecomment-322973093

In this PR all configuration related with pylint now has one new parameter called expected-line-ending-format this new parameter to the section [FORMAT] limit the character of the endline to LF that character is for the operation system *Unix

For example if the parameter expected-line-ending-format is set to CRLF if you operation system is *Unix then you see the follow warning in the vim

[unexpected-line-ending-format] Unexpected line ending format. There is 'LF' while it should be 'CRLF'. [python/pylint]
JesusZapata commented 7 years ago

@moylop260 In this PR has the change to limit the newline only to system operative *Unix if the newline is different to LF then vim show one warning for each line where the newline is CRLF