Sha256: cc07293bec9e093d0f7e87fe88b5e515f3308d5037b635cf3a9c3d07ba261d5e

Contents?: true

Size: 699 Bytes

Versions: 4

Compression:

Stored size: 699 Bytes

Contents

module Git
  module Conform
    class LowercaseFilenameChecker < FileChecker

      @file_exclusion_patterns << '*Makefile*'
      @file_exclusion_patterns << '*Brewfile*'
      @file_exclusion_patterns << '*Rakefile*'
      @file_exclusion_patterns << '*Gemfile*'
      @file_exclusion_patterns << '*Guardfile*'
      @file_exclusion_patterns << '*Capfile*'
      @file_exclusion_patterns << '*Procfile*'
      @file_exclusion_patterns << '*Vagrantfile*'

      @file_exclusion_patterns << '*README*'
      @file_exclusion_patterns << '*LICENSE*'
      @file_exclusion_patterns << '*CODE_OF_CONDUCT*'

      def conforms?
        super && @filename.match(/[A-Z]/).nil?
      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/lowercase_filename_checker.rb
git-conform-1.2.1 lib/git/conform/checkers/lowercase_filename_checker.rb
git-conform-1.1.0 lib/git/conform/checkers/lowercase_filename_checker.rb
git-conform-1.0.0 lib/git/conform/checkers/lowercase_filename_checker.rb