SCSS-Lint 0.26.0
Includes a large number of new features along with some minor bug fixes.
Tools that use the exit status of the scss-lint executable should be aware that the status code for failure has changed from 65 to 2. This was due to the new feature of reporting a different status code when only warnings are reported, versus when errors are reported. Since there was no semantic exit code to differentiate warnings from errors, 65 split into 1 and 2, respectively. See Exit Status Codes for a full list of status codes.
This release also bumps the minimum required sass version to 3.3.7, since this fixes a bug in the upstream Sass parser that fixes issue #151.
New Features
- Add
severityoption allowing the severity level of a lint to be configured - Include linter name in lint description
- Add
characteroption toIndentationlinter which allows specifying
tabs or spaces as the indentation character of choice - Add
SingleLinePerPropertylinter which checks that properties each reside
on their own line - Add support to
PropertySortOrderto specify a preset sort order via the
orderproperty - Add
concentricpreset
sort order to thePropertySortOrderlinter - Add
ignore_unspecifiedoption toPropertySortOrderto indicate that
unspecified properties in custom sort orderings are to be ignored (i.e. they
can appear anywhere) - Add
ignoreoption toCompass::PropertyWithMixinlinter allowing you to
not warn for certain properties - Add
ignored_namesoption toCapitalizationInSelector, allowing you to
whitelist certain names as not needing to follow the convention - Add
ignored_typesoption toCapitalizationInSelector, allowing you to
selectively ignore capitalization in certain types of selectors - Add
UnnecessaryParentReferencelinter which checks nested selectors for
extraneous parent references - Teach
TrailingSemicolonto report lints for uses of@extend,@include,
or variable declarations without semicolons
Changes
- Change CLI to return exit code of
1if only warnings are reported, or2
if any errors are reported (was previously65for either) - Update
sassdependency to require 3.3.7 or later (fixes a parsing bug) - Include test files in gem distribution
- Rename
TrailingSemicolonAfterPropertyValuetoTrailingSemicolon
Bug Fixes
- Fix bug in
SpaceBeforeBracelinter where an erroneous lint would
be reported for a brace on its own line - Fix bug in
SpaceAfterCommawhere trailing spaces followed by a newline after
a comma would incorrectly report a lint - Fix
SingleLinePerSelectorto ignore any selectors that contain interpolation