Skip to content

Releases: sds/haml-lint

HAML-Lint 0.16.1

12 Apr 16:31
@sds sds
Compare
Choose a tag to compare

Minor hotfix for 0.16.0.

  • Fix RuboCop linter to ignore ElseAlignment and FrozenStringLiteralComment cops by default

HAML-Lint 0.16.0

21 Jan 19:34
@sds sds
Compare
Choose a tag to compare

This release fixes a breaking change caused by RuboCop 0.36.0, which removed a dependency on the Astrolabe gem. It also includes a few minor bug fixes.

  • Fix MultilineScript to not erroneously report begin/rescue blocks
  • Fix ClassAttributeWithStaticValue to not erroneously report class
    attributes with method call or instance variable values
  • Update minimum RuboCop version to 0.36.0 to fix compatibility issues with
    Astrolabe gem, switching to RuboCop's own implementation instead
  • Fix RuboCop linter to not erroneously report
    Style/IdenticalConditionalBranches warnings

HAML-Lint 0.15.2

08 Sep 18:50
@sds sds
Compare
Choose a tag to compare

This is a hotfix release that addresses an issue where some users Ruby file reading libraries would incorrectly detect a UTF-8 file as US-ASCII. haml-lint now assumes all files are UTF-8 encoded by default.

HAML-Lint 0.15.1

03 Sep 17:39
@sds sds
Compare
Choose a tag to compare

A small bug fix release.

  • Fix RuboCop linter to properly parse files containing anonymous blocks with
    trailing comments
  • Fix exclude option to work with paths prefixed with ./
  • Fix RuboCop linter to not report erroneous Style/Next warnings for if
    statements in do blocks

HAML-Lint 0.15.0

24 Jun 19:02
@sds sds
Compare
Choose a tag to compare

Adds a couple of simple linters and fixes a few bugs.

  • Improve bug reporting instructions in error message
  • Add Indentation linter to enforce that spaces or tabs are used for
    indentation (enabled by default and defaults to spaces)
  • Add FinalNewline linter to enforce the presence of a final newline
    in files
  • Fix UnnecessaryStringOutput to gracefully handle script output with comments
  • Add verbose version flag -V/--verbose-version to display haml and ruby
    version information in addition to output of -v/--version flag

HAML-Lint 0.14.1

10 Jun 00:54
@sds sds
Compare
Choose a tag to compare

Minor hotfix that corrects a false positive in UnnecessaryStringOutput.

Bug Fixes

  • Fix bug in UnnecessaryStringOutput where false positives would still be
    reported for literal strings with interpolation

HAML-Lint 0.14.0

09 Jun 23:57
@sds sds
Compare
Choose a tag to compare

This release includes a significant refactor that makes it much easier to test and extend haml-lint going forward. One important point to note is that support for Ruby 1.9.3 has been dropped (since it was EOLed in February 2015).

New Features

  • Add severity linter option allowing the severity of a lint to be explicitly
    specified

Changes

  • Change required Ruby version from 1.9.3+ to 2.0.0+ since 1.9.3 has been EOLed

Bug Fixes

  • Fix false positives in UnnecessaryStringOutput for strings starting with
    reserved HAML characters (where enclosing in a string is required)
  • Fix RuboCop to report correct lines for cops reported on interpolated Ruby
    code in filters