]> khamidou — GitHub mirrors - arcanist.git/commit
Improve `LINT_DOS_NEWLINE` behavior
authorJoshua Spence <josh@joshuaspence.com>
Wed, 24 Sep 2014 21:13:10 +0000 (07:13 +1000)
committerJoshua Spence <josh@joshuaspence.com>
Wed, 24 Sep 2014 21:14:58 +0000 (07:14 +1000)
commit888ada2f380cb951d6fd3e94d1087643527f381b
treef02eb58bfddba44ce6e6b0c2d47d7f79fdf2de6a
parent5951ec26b4473b0b695eecc1eb97cb81d815401f
Improve `LINT_DOS_NEWLINE` behavior

Summary: Improve the behavior of `ArcanistTextLinter` in dealing with `LINT_DOS_NEWLINE`. In particular, provide replacement text so that these linter issues can be autofixed.

Test Plan: Added a unit test.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D10472
src/lint/linter/ArcanistTextLinter.php
src/lint/linter/__tests__/text/dos-newline.lint-test [new file with mode: 0644]