Sha256: 629432b6afbb32d4ffb7aee82191ebc3959a44e52e3b15a089029f24786eb831

Contents?: true

Size: 477 Bytes

Versions: 4

Compression:

Stored size: 477 Bytes

Contents

module Git
  module Conform
    class TabCharacterChecker < FileChecker

      @file_exclusion_patterns << '.gitconform'
      # .gitconform is designed to be maintained using the 'git config'
      # command, which uses tab characters for its indentation purposes

      @file_exclusion_patterns << '.gitmodules'
      # .gitmodules uses a format very similar to the 'git config' one!

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

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
git-conform-1.3.0 lib/git/conform/checkers/tab_character_checker.rb
git-conform-1.2.1 lib/git/conform/checkers/tab_character_checker.rb
git-conform-1.1.0 lib/git/conform/checkers/tab_character_checker.rb
git-conform-1.0.0 lib/git/conform/checkers/tab_character_checker.rb