Releases: hostnet/css-sniffer
Angular pseudo class support
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)
Added missing pseudo class for less (:extend)
Colon space sniff
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
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
Fixed false positive with colors and ids
SF4 support
SF4 support
Small fix for previous changes
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
Extended curly sniff to also check spaces before a curly bracket.
example:
.good {
color: #ffffff;
}
.bad{
color: #ffffff;
}
Small fix in the Indent Sniffer
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
Added missing violations for placement of multiple statement. These were missing and should now provide better feedback about the placement of statements.