Skip to content

Tags: aCyborg/scss-lint

Tags

v0.42.2

Toggle v0.42.2's commit message

Unverified

This tag is not signed, but one or more authors requires that any tag attributed to them is signed.
0.42.2 release

* Fix `SpaceAroundOperator` to allow newlines
* Fix `HexValidation` to ignore mid-word hex strings
* Fix `ColorVariable` to ignore color functions in variable declaration

v0.42.1

Toggle v0.42.1's commit message

Unverified

This tag is not signed, but one or more authors requires that any tag attributed to them is signed.
0.42.1 release

* Fix `TrailingSemicolon` for variables with `!default` and `!global`.
* Check `!default` and `!global` variable declarations and `!optional` `@extend`
  directives in `BangFormat`

v0.42.0

Toggle v0.42.0's commit message

Unverified

This tag is not signed, but one or more authors requires that any tag attributed to them is signed.
0.42.0 release

New Features

* Enhance Rake task to support command line flags
* Add `no_space` and `at_least_on_space` style options to `SpaceAfterComma`

Changes

* Improve `ColorVariable` to flag uses of rgb/rgba/hsl/hsla
* Return successful status code instead of 81 when all files matched by
  specified glob patterns are excluded by `--exclude` flags and `exclude`
  configuration settings, as it was confusing.

Bug Fixes

* Fix `SpaceAroundOperator` linter to not report false positives for operators
  in interpolation
* Improve performance of `ElsePlacement` linter to better handle large lists of
  `@if`/`@else if`/`@else` statements
* Fix `TrailingSemicolon` to report missing semicolons when trailing comment
  ended with a semicolon
* Fix `VariableForProperty` to not erroneously report property values with
  `!important`

v0.41.0

Toggle v0.41.0's commit message

Unverified

This tag is not signed, but one or more authors requires that any tag attributed to them is signed.
0.41.0 release

New Features

* Add `DisableLinterReason` linter which enforces including a comment
  explaining why a linter was disabled via a control comment
* Add `SpaceAroundOperator` linter which enforces whitespace padding around
  mathematical operators
* Add `CleanFiles` reporter which displays all files that were free of lints
* Add flexbox properties to `recess` preset sort order
* Add flexbox properties to `smacss` ordering
* Add `TransitionAll` linter which reports the use of `transition: all`

Changes

* Improve `SingleLinePerSelector` to report selectors with descendent selectors
  on separate lines

Bug Fixes

* Fix `SpaceAfterVariableName` linter not being included in linter set
* Fix handling of consecutive control comments to properly disable linters
* Fix handling of control comments preceded by normal comments
* Fix `NestingDepth` linter not handling rules with no selectors
* Fix `MergeableSelector` messages to condense newlines
* Fix `UnnecessaryMantissa` to not report decimal values in quoted strings

v0.40.1

Toggle v0.40.1's commit message

Unverified

This tag is not signed, but one or more authors requires that any tag attributed to them is signed.
0.40.1 release

* Fix regression where linters were enabled by default even if explicitly
  disabled in the default configuration

v0.40.0

Toggle v0.40.0's commit message

Unverified

This tag is not signed, but one or more authors requires that any tag attributed to them is signed.
0.40.0 release

= New Features

* Add support for loading custom linters via the `plugin_directories` and
  `plugin_gems` configuration options (experimental)
* Add `ExtendDirective` linter which checks for any usage of the `@extend`
  directive.
* Add `TrailingWhitespace` linter which reports whitespace characters at the
  end of a line
* Add `SpaceAfterVariableName` linter which checks that there are no spaces
  between a variable name and a colon

= Changes

* Change `NameFormat` to no longer check placeholder names, as this is handled
  by the `SelectorFormat` linter
* Change `NestingDepth` to allow parent selectors to be ignored in depth count
  via the `ignore_parent_selectors` configuration option

= Bug Fixes

* Fix `ColorVariable` from crashing when variable interpolation occurs in
  multiline comments
* Fix `PropertySortOrder`'s `ignore_unspecified: false` behavior to not care
  about the relative order of unspecified properties at the end of a list of
  properties
* Fix `PropertyUnits` for properties that have multiple unit-like values (e.g.
  shorthand properties) and quoted values
* Fix control comment processing for `FinalNewline`, `SpaceBetweenParens`, and
  `TrailingNewline`
* Fix `ElsePlacement` to lint nested `@if` statements

v0.39.0

Toggle v0.39.0's commit message

Unverified

This tag is not signed, but one or more authors requires that any tag attributed to them is signed.
0.39.0 release

= New Features

* Add `BemDepth` which checks the number of BEM elements is under a specified
  maximum

= Changes

* Load configuration file from user's home directory if one exists and no other
  configuration file is specified or in the current working directory
* Improve issue reporting instructions displayed when scss-lint crashes
* Remove `XML` formatter (see the
  [`Checkstyle` formatter](https://github.com/Sweetchuck/scss_lint_reporter_checkstyle)
  for an XML-based alternative)

= Bug Fixes

* Fix `Indentation` to not report `@import` directives spread across multiple
  lines
* Fix `Indentation` linter from crashing on `@else` statements with
  `allow_non_nested_indentation` set to `true`
* Update default configuration to work with projects using the
  [`syck`](https://github.com/indeyets/syck) YAML parser
* Fix `ColorKeyword` to not report lints for map keys with color keyword names

v0.38.0

Toggle v0.38.0's commit message

Unverified

This tag is not signed, but one or more authors requires that any tag attributed to them is signed.
0.38.0 release

* Change configuration loading behavior so that defining lists in a custom
  configuration will completely override the old list instead of adding to it
* Fix `DeclarationOrder` linter to report lints for items within media queries
* Add `allowed_shorthands` option for `Shorthand` linter
* Add `allowed` option to `Comment` linter specifying regex of allowed
  multi-line comments, such as copyright notices
* Fix bug where control comments could filter out lints from other files
  depending on scan order
* Ignore `currentColor`, `inherit`, and `transparent` values in
  `VariableForProperty`
* Add `min_properties` option to `PropertySortOrder` to allow specifying a
  threshold number of properties that must be present before linting occurs
* Fix `PropertySortOrder` to lint sort order of nested properties
* Add `one_space_or_newline` `style` option to `SpaceAfterPropertyColon`
* Fix `ColorVariable` to ignore literal strings containing color keywords
* Rename `scss-lint` gem to `scss_lint` to follow RubyGems [best practices for
  naming gems](http://guides.rubygems.org/name-your-gem/). This only affects
  the name you use in `Gemfile`s or when you `gem install`; everything else
  remains the same.

v0.37.0

Toggle v0.37.0's commit message

Unverified

This tag is not signed, but one or more authors requires that any tag attributed to them is signed.
0.37.0 release

* Rename `BEM` option on `SelectorFormat` to `strict_BEM` to emphasize that
  this is a particular dialect which may not be what developers expect
* Allow `SelectorFormat` convention explanations to be customized via the
  `#{type}_convention_explanation` and `convention_explanation` options
* Add `camel_case` and `snake_case` conventions to `NameFormat`
* Remove `BEM` convention from `NameFormat`, as it didn't make sense in this
  context since `NameFormat` does not deal with selectors
* Add support for function, mixin, or variable-specific conventions to
  `NameFormat`
* Add support for custom convention explanations to `NameFormat`

v0.36.1

Toggle v0.36.1's commit message

Unverified

This tag is not signed, but one or more authors requires that any tag attributed to them is signed.
0.36.1 release

* Fix `PropertyUnits` to not error on properties with function call values
* Fix `DeclarationOrder` false positives on lines of the same type of node
* Fix `PropertyUnits` false positives on unicode escape sequences and string
  values that look like units
* Add additional units to default configuration for `PropertyUnits`, including
  durations, frequencies, angles, and resolutions