class Object
Constants
- DEFAULT_CONFIGURATION
- DEFAULT_IGNORES
- DEFAULT_RULES
Note that order is significant; Only the earliest file pattern match's rule applies.
- NO_SUCH_FILE
Warning for files that do not exist
Public Class Methods
check(filename, configuration = nil)
click to toggle source
# File lib/lili.rb, line 127 def self.check(filename, configuration = nil) configuration = if configuration.nil? DEFAULT_CONFIGURATION else configuration end rules = configuration['rules'] if !File.zero?(filename) line_ending = ALineEnding.parse( filename, LineDetector.report_of_file(filename) ) line_ending_difference = line_ending.violate?(rules) puts line_ending.to_s(line_ending_difference) if line_ending_difference end end