Flutter Engine
The Flutter Engine
|
Functions | |
def | SanitizeFilesWithModifiers (directory, file_modifiers, line_modifiers) |
def | TrailingWhitespaceRemover (line, file_path, line_number) |
Line Modification methods ##############. More... | |
def | CrlfReplacer (line, file_path, line_number) |
def | TabReplacer (line, file_path, line_number) |
def | CopywriteChecker (file_content, unused_file_path) |
File Modification methods ##############. More... | |
def | EOFOneAndOnlyOneNewlineAdder (file_content, file_path) |
def | SvnEOLChecker (file_content, file_path) |
def tools.sanitize_source_files.CopywriteChecker | ( | file_content, | |
unused_file_path | |||
) |
File Modification methods ##############.
Ensures that the copywrite information is correct.
Definition at line 112 of file sanitize_source_files.py.
def tools.sanitize_source_files.CrlfReplacer | ( | line, | |
file_path, | |||
line_number | |||
) |
Replaces CRLF with LF.
Definition at line 95 of file sanitize_source_files.py.
def tools.sanitize_source_files.EOFOneAndOnlyOneNewlineAdder | ( | file_content, | |
file_path | |||
) |
Adds one and only one LF at the end of the file.
Definition at line 119 of file sanitize_source_files.py.
def tools.sanitize_source_files.SanitizeFilesWithModifiers | ( | directory, | |
file_modifiers, | |||
line_modifiers | |||
) |
Sanitizes source files with the specified file and line modifiers. Args: directory: string - The directory which will be recursively traversed to find source files to apply modifiers to. file_modifiers: list - file-modification methods which should be applied to the complete file content (Eg: EOFOneAndOnlyOneNewlineAdder). line_modifiers: list - line-modification methods which should be applied to lines in a file (Eg: TabReplacer).
Definition at line 21 of file sanitize_source_files.py.
def tools.sanitize_source_files.SvnEOLChecker | ( | file_content, | |
file_path | |||
) |
Sets svn:eol-style property to LF.
Definition at line 128 of file sanitize_source_files.py.
def tools.sanitize_source_files.TabReplacer | ( | line, | |
file_path, | |||
line_number | |||
) |
Replaces Tabs with 4 whitespaces.
Definition at line 102 of file sanitize_source_files.py.
def tools.sanitize_source_files.TrailingWhitespaceRemover | ( | line, | |
file_path, | |||
line_number | |||
) |
Line Modification methods ##############.
Strips out trailing whitespaces from the specified line.
Definition at line 87 of file sanitize_source_files.py.