Skip to content
On this page

LineEndings

Checks that end of line characters are correct.

Scope

Generic.Files.LineEndings

Description

Unix-style line endings are preferred ("\n" instead of "\r\n").

Properties

Property NameTypeDefaultAvailable Since
eolCharstring\n-

Usage

xml
<rule ref="Generic.Files.LineEndings">
    <properties>
        <property name="eolChar" value="\r\n" />
    </properties>
</rule>

Examples

No Examples Available

Please edit this page through Github to add examples.

Released under the MIT License.