GithubHelp home page GithubHelp logo

Comments (8)

racodond avatar racodond commented on June 16, 2024

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.

lukaszun avatar lukaszun commented on June 16, 2024

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.

racodond avatar racodond commented on June 16, 2024

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.

lukaszun avatar lukaszun commented on June 16, 2024

You are right, my mistake... Thanks @racodond.

from sonar-css-plugin.

vaclav-dvorak avatar vaclav-dvorak commented on June 16, 2024

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.

racodond avatar racodond commented on June 16, 2024

@vaclav-dvorak I don't reproduce the issue with your code sample. Which version of the plugin are you running?

from sonar-css-plugin.

vaclav-dvorak avatar vaclav-dvorak commented on June 16, 2024

@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.

racodond avatar racodond commented on June 16, 2024

No problem @vaclav-dvorak :-)
See #24

from sonar-css-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.