- Languages of the repository: CSS
Is there an existing rule that checks and reports non usage of shorthands in CSS quality profile, if not can it be added?.
Would be good if this rule would be available as part of CSS quality profiles, so that certain good practices can be enforced.
For better understanding of what my request is about i’m sharing the below piece of code as e.g.
Bad piece of code
{
padding-left:1em;
padding-right:1em;
padding-top:1em;
padding-bottom:1em;
margin-left:auto;
margin-right:auto;
margin-top:0;
margin-bottom:0;
}
/*
Good code:
*/
{
padding:1em;
margin:0 auto;
}
Kindly let know…