Class: Git::Conform::TabCharacterChecker

Inherits:
FileChecker show all
Defined in:
lib/git/conform/checkers/tab_character_checker.rb

Instance Attribute Summary

Attributes inherited from BaseChecker

#filename

Instance Method Summary collapse

Methods inherited from FileChecker

available_checkers, #content, #excluded?, excluded?, inherited

Methods inherited from BaseChecker

#check_conformity, #check_exclusion, #excluded?, #initialize

Constructor Details

This class inherits a constructor from Git::Conform::BaseChecker

Instance Method Details

#conforms?Boolean

.gitmodules uses a format very similar to the ‘git config’ one!

Returns:

  • (Boolean)


12
13
14
# File 'lib/git/conform/checkers/tab_character_checker.rb', line 12

def conforms?
  super && !content.include?("\t")
end