Miscellaneous-LineBreaks

You have to use the specified sort of line breaks

Required inputs: IR

The rule tests for line breaks like \r (old Apple) or \n (Unix) in source files. The expected default is to use \r\n (Windows or Network) line breaks. Use option allowed_line_break_form to change the default.

Possible Messages

Key

Text

Severity

Disabled

bad_line_break

Line break is not of the allowed form {!r}

None

False

bad_line_break_block

Line breaks from here on up to line {} (inclusive) are not of the allowed form {!r}

None

False

file_using_bad_line_breaks

All line breaks in this file are not of the allowed form {!r}

None

False

Options

allowed_line_break_form

allowed_line_break_form : str = 'rn'

Selects the form of line break that is allowed (\r, \r\n or \n).
 

file_types

file_types : bauhaus.rules.axivion.lexical.comments.FileToCheckSet = {'Primary_File', 'User_Include_File'}

Selects file types to be checked: Primary_File, User_Include_File, System_Include_File.