Sha256: 1a9b1f2455020c56005d5b70eb7d8e14b3df639f6932872d41a19c2afb664de7

Contents?: true

Size: 288 Bytes

Versions: 16

Compression:

Stored size: 288 Bytes

Contents

module SCSSLint
  # Checks that `@extend` is never used.
  class Linter::ExtendDirective < Linter
    include LinterRegistry

    def visit_extend(node)
      add_lint(node, 'Do not use the `@extend` directive (`@include` a `@mixin` ' \
                     'instead)')
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
scss_lint-0.60.0 lib/scss_lint/linter/extend_directive.rb
scss_lint-0.59.0 lib/scss_lint/linter/extend_directive.rb
scss_lint-0.58.0 lib/scss_lint/linter/extend_directive.rb
scss_lint-0.57.1 lib/scss_lint/linter/extend_directive.rb
scss_lint-0.57.0 lib/scss_lint/linter/extend_directive.rb
scss_lint-0.56.0 lib/scss_lint/linter/extend_directive.rb
scss_lint-0.55.0 lib/scss_lint/linter/extend_directive.rb
scss_lint-0.54.0 lib/scss_lint/linter/extend_directive.rb
scss_lint-0.53.0 lib/scss_lint/linter/extend_directive.rb
scss_lint-0.52.0 lib/scss_lint/linter/extend_directive.rb
scss_lint-0.51.0 lib/scss_lint/linter/extend_directive.rb
scss_lint-0.50.3 lib/scss_lint/linter/extend_directive.rb
scss_lint-0.50.2 lib/scss_lint/linter/extend_directive.rb
scss_lint-0.50.1 lib/scss_lint/linter/extend_directive.rb
scss_lint-0.50.0 lib/scss_lint/linter/extend_directive.rb
scss_lint-0.49.0 lib/scss_lint/linter/extend_directive.rb