Sha256: 4d183a732cc91fe14aade8e7f49072d90052e2bfac7975c713f8ab521f0ea87b

Contents?: true

Size: 343 Bytes

Versions: 11

Compression:

Stored size: 343 Bytes

Contents

require 'pre-commit/checks/grep'

module PreCommit
  module Checks
    class Tabs < Grep

      def message
        "detected tab before initial space:\n"
      end

      def pattern
        "'^ *\t'"
      end

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

    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
pre-commit-0.19.0 lib/plugins/pre_commit/checks/tabs.rb
pre-commit-0.18.0 lib/plugins/pre_commit/checks/tabs.rb
pre-commit-0.17.0 lib/plugins/pre_commit/checks/tabs.rb
pre-commit-0.16.3 lib/plugins/pre_commit/checks/tabs.rb
pre-commit-0.16.2 lib/plugins/pre_commit/checks/tabs.rb
pre-commit-0.16.1 lib/plugins/pre_commit/checks/tabs.rb
pre-commit-0.16.0 lib/plugins/pre_commit/checks/tabs.rb
pre-commit-0.15.0 lib/plugins/pre_commit/checks/tabs.rb
pre-commit-0.14.1 lib/plugins/pre_commit/checks/tabs.rb
pre-commit-0.14.0 lib/plugins/pre_commit/checks/tabs.rb
pre-commit-0.13.0 lib/plugins/pre_commit/checks/tabs.rb