C# Class GitForce.ClassTabCheck

Contains code to check files for TABs and EOL spaces. Implements the optional functionality enabled by a checkbox in the Settings->Files
Datei anzeigen Open project: gdevic/GitForce Class Usage Examples

Public Methods

Method Description
CheckForTabs ( List files ) : void

If user checked a preference to scan for TABS, and the file extension matches, check the file(s) for TABs and EOL's spaces

Private Methods

Method Description
CheckTabsInFile ( string file ) : bool

Check if a file contains TAB characters or EOL spaces Assumes the file is a readable text file

CheckTabsInFiles ( List files, List regexes ) : List

Check a list of files, filtered by a list of Regex expressions, for TABs or EOL spaces Returns a subset of files that contain TABs or EOL spaces

Method Details

CheckForTabs() public static method

If user checked a preference to scan for TABS, and the file extension matches, check the file(s) for TABs and EOL's spaces
public static CheckForTabs ( List files ) : void
files List
return void