Skip to content
This repository has been archived by the owner on Nov 11, 2019. It is now read-only.

Releases: hostnet/css-sniffer

Angular pseudo class support

28 Jun 09:11
Compare
Choose a tag to compare

With this release there is no Angular pseudo class support within the colon sniffer. This is not enabled by default but needs to be configured as such:

<?xml version="1.0"?>
<csssniffer>
    <sniff class="\Hostnet\Component\CssSniff\Sniff\ColonSniff">
        <arg>css,less,angular</arg>
    </sniff>
</csssniffer>

Added missing pseudo class for less (:extend)

16 Mar 10:32
Compare
Choose a tag to compare

Added missing pseudo class for less (:extend)

Colon space sniff

16 Mar 09:25
Compare
Choose a tag to compare

With this release there has been a sniff added to make sure there is a space after the colon of a propety.

Examples:

.foo {
    float:left;
    margin:0;
}

Output will be:

FILE: test/Sniff/fixtures/colons.less
--------------------------------------------------------------------------------
FOUND 6 ERROR(S) AFFECTING 6 LINE(S)
--------------------------------------------------------------------------------
 2 | Colon should be followed by a single space.
 3 | Colon should be followed by a single space.

Removed phars

28 Feb 09:56
Compare
Choose a tag to compare

In the last release, two phars were added by accident. These are now removed, reducing the package size.

Fixed false positive with colors and ids

26 Feb 12:39
Compare
Choose a tag to compare

Fixed false positive with colors and ids

SF4 support

01 Feb 11:02
Compare
Choose a tag to compare

SF4 support

Small fix for previous changes

05 Dec 09:15
Compare
Choose a tag to compare

With the previous changes a small false-positive was triggered for cases like:

.placeholder({
    color: @color_white;
    opacity: 1;
});

this is now fixed.

Extended curly sniff to also check spaces before a curly bracket

05 Dec 07:55
Compare
Choose a tag to compare

Extended curly sniff to also check spaces before a curly bracket.

example:

.good {
  color: #ffffff;
}
.bad{
  color: #ffffff;
}

Small fix in the Indent Sniffer

01 Dec 07:54
a9e1eca
Compare
Choose a tag to compare

Small fix in the Indent Sniffer where it did not correctly check if line started with tabs.

Added missing violations for placement of multiple statement

06 Nov 07:12
4233cd9
Compare
Choose a tag to compare

Added missing violations for placement of multiple statement. These were missing and should now provide better feedback about the placement of statements.