Sha256: c81030fd2886127a3a50a21180b9235635c79cec44fdf39a1a12a1dc34b69a29

Contents?: true

Size: 641 Bytes

Versions: 5

Compression:

Stored size: 641 Bytes

Contents

module Take
  module Lint

    # Manages linting source files when building.  Should be
    # interesting to see how this pans out.
    #
    # @abstract
    class Base

      # Initializes the base linter.  Requires only one parameter.
      #
      # @param file [Path] the file that will be linted.
      def initialize(file)
        @file = file
      end

      # Lints the given file.  Returns an array of lint errors, which
      # is used to give information about what could be fixed.
      #
      # @abstract
      # @return [Array<Take::Lint::Error>]
      def lint
        raise NotImplementedError
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
take-0.0.15 lib/take/lint/base.rb
take-0.0.14 lib/take/lint/base.rb
take-0.0.13 lib/take/lint/base.rb
take-0.0.12 lib/take/lint/base.rb
take-0.0.11 lib/take/lint/base.rb