You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A feature in SonarQube is to report duplicate selectors. It would be interesting to take this one step further and report when complete blocks are duplicated.
.my-class { color: red; background: white; } /* ... lots of code ... */ .my-class { color: red; background: white; } /* Open for discussion */ .my-class, .my-second-class { /* <-- Extra class, but the initial class and rule block are identical */color: red; background: white; } /* Same ruleset, but within a @media at-rule */@media (min-width:400px) { .my-class { color: red; background: white; } }
This discussion was converted from issue #149 on May 28, 2022 12:22.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
A feature in SonarQube is to report duplicate selectors. It would be interesting to take this one step further and report when complete blocks are duplicated.
Beta Was this translation helpful? Give feedback.
All reactions