Tags: ingdir/scss-lint
Tags
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
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
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.
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`
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
0.36.0 release * Fix `SpaceAfterPropertyColon` to report nested properties * Add `PropertyUnits` allowing customization of which units are allowed for specific properties * Allow color literals in map declarations and the `rgba` helper function in `ColorVariable` * Gracefully handle when a library specified via `-r`/`--require` is not found and return a semantic exit code `EX_UNAVAILABLE` (`69`) * Improve message of `DeclarationOrder` to specify the line number of the out-of-order item and the line number of where it was expected to be * Return helpful error message and unsuccessful exit code when all files matched by specified glob patterns are excluded by `--exclude` flags and `exclude` configuration settings * Change exit code returned when file globs patterns did not match any files to be different from the exit code returned when a specified file does not exist
0.35.0 release * Fix `ColorVariable` to not report occurrences of `transparent` when appearing in function calls or list literals * Fix infinite loop in control comment processor when dealing with parse nodes with no children with line numbers * Change `VendorPrefix` config options `include` and `exclude` to `additional_identifers` and `excluded_identifers`, respectively * Rename `VendorPrefixes` to `VendorPrefix` * Add `animation*` properties to concentric.txt * Fix bug where attempting to lint a non-existent file would result in a crash
0.34.0 release New Features * Add `ImportantRule` linter which reports uses of `!important` in properties * Add `VariableForProperty` linter which enforces using variables for specified property values instead of literal values * Add `convention` option to `BorderZero` allowing `none` to be preferred over zero * Add `separate_groups` option to `PropertySortOrder` to specify that groups of properties should be visually separated * Add `PropertyCount` linter which reports rule sets with a large number of properties * Add `ColorVariable` linter which enforces the use of color literals in variable declarations only * Add `break-after`, `break-before`, `break-inside`, and `text-size-adjust` to list of recognized properties * Add `allow_non_nested_indentation` option to `Indentation` linter * Allow files without `.scss`/`.css` extension to be linted if they are passed explicitly (i.e. you do not specify a directory, but the file itself) Changes * Remove support for per-directory configuration and `inherit_from` from the configuration system Bug Fixes * Fix bug in `StringQuotes` where Sass script in non-silent comments would cause a crash * Fix control comments placed before `@include` blocks to apply within them * Fix crash in `PropertySortOrder` when non-existent preset sort order or otherwise invalid sort order are specified in the configuration * Fix recognition of control comments in selector comma sequences * Fix crash in `BangFormat`, `ImportantRule`, and `VendorPrefixes` when linting properties with list literals containing empty lists
0.33.0 release * Call `Kernel.exit` with status code returned by CLI in rake task (unless 0) * Allow list of files and glob patterns to be passed as task arguments to rake task * Allow custom configuration file to be specified in rake task * Fix infinite loop in `SpaceAfterComma` for arguments spanning multiple lines
PreviousNext