Class: PreCommit::Checks::Tabs

Inherits:
Grep show all
Defined in:
lib/plugins/pre_commit/checks/tabs.rb

Instance Attribute Summary

Attributes inherited from Plugin

#config, #pluginator

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Grep

#call, #extra_grep, #extra_pattern, #files_filter, #initialize

Methods inherited from Plugin

#initialize, #name

Constructor Details

This class inherits a constructor from PreCommit::Checks::Grep

Class Method Details

.descriptionObject



15
16
17
# File 'lib/plugins/pre_commit/checks/tabs.rb', line 15

def self.description
  "Finds ruby files with tabulation character before text in line."
end

Instance Method Details

#messageObject



7
8
9
# File 'lib/plugins/pre_commit/checks/tabs.rb', line 7

def message
  "detected tab before initial space:"
end

#patternObject



11
12
13
# File 'lib/plugins/pre_commit/checks/tabs.rb', line 11

def pattern
  "^ *\t"
end