Comments (8)
Hi @lukaszun,
Thanks for your feedback!
I'm not really expert in Less... Could you please tell me the purpose of this syntax? Compared to
tr:not(.big-container) { width: 100px; }
Could you also point me to some documentation detailing this syntax?
Thank you
David
from sonar-css-plugin.
Hi @racodond,
:not(selector) syntax means every element without given selector. Please check this out for details: https://developer.mozilla.org/pl/docs/Web/CSS/:not
Best regards,
Luke
from sonar-css-plugin.
My question was about the selector combinator >
. What is it for here? It combines the tr:not()
selector with no selector... I cannot find any documentation stating that this syntax is correct (even if the Less parser seems to handle it by just ignoring the combinator and removing it). Thus, my questions are:
- Can you just remove this 'useless' combinator?
- Can you find any documentation about combining with nothing in Less or it is just a corner case / wrong syntax that is luckily handled by the Less parser?
from sonar-css-plugin.
You are right, my mistake... Thanks @racodond.
from sonar-css-plugin.
Hello the ">" does not seem the main problem here... at least not for us.
We have completely same false positives for line like this:
li:not(.slim) {
max-width: 60px;
}
- Remove this usage of the unknown "li" property.
- Remove this usage of the unknown "not" function.
- Add a semicolon at the end of this declaration.
from sonar-css-plugin.
@vaclav-dvorak I don't reproduce the issue with your code sample. Which version of the plugin are you running?
from sonar-css-plugin.
@racodond i was taken here from sonar update centre but i figured out that we actually have different plugin with same name installed from https://github.com/kalidasya/sonar-css-plugin.
got confused as hell by it :D we will try your plugin it seems more updated.
Sorry for possibly false positive report :(
from sonar-css-plugin.
No problem @vaclav-dvorak :-)
See #24
from sonar-css-plugin.
Related Issues (20)
- Change or disable rules HOT 1
- user-select css property HOT 9
- Add parameter to 'experimental-xxx-usage' rules to flag some properties/@-rules/pseudos/functions/identifiers as non-experimental
- Parse error in at-rule prelude with non-quoted URL
- Support CSS Fonts Module Level 4 HOT 2
- `MissingNewLineAtEndOfFileCheck` should skip empty files HOT 3
- Unknown type selectors - exclusion HOT 3
- Please add support for Angular Material HOT 3
- How to flag some pseudo elements as non-experimental? HOT 2
- the plugin can not be updated via the marketplace of the sonar HOT 1
- Cannot enable both this plugin and the built-in "SonarCSS" plugin HOT 2
- Naming convention HOT 2
- Parent selector (&) not supported in variable declaration HOT 4
- box-shadow considered experimental HOT 4
- validate-property-value: false-positive on `background-color` value format HOT 1
- Throws an error with special characters HOT 1
- SCSS parser failure (S2260): parser does not support identifiers starting with "-#" HOT 2
- FP css:validate-property-value on filter HOT 6
- Exclude the file type css HOT 1
- link to "quick try" doesn't work HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sonar-css-plugin.