我正在使用 webpack 开发 Angular2 应用程序。我正在使用 sonarqube 来衡量代码质量。我使用 VS Code 作为 IDE。
下面的 css 给我一个关于 sonarqube 的警告“检查这个潜在的盒子模型大小问题”是正确的。
.popup-dock-button {
background: url('./app/assets/images/dock.svg') no-repeat;
background-size: 13px 13px;
float: left;
width: 20px;
height: 20px;
padding: 3px;
}
但在 VSCode 中,我无法将此代码气味视为警告。下面是我的 stylelintrc.json 文件
{
"extends": [
"stylelint-config-standard"
],
"plugins": [
"stylelint-scss"
],
"rules": {
"indentation": 4,
"number-leading-zero": null,
"declaration-block-no-ignored-properties": true,
"selector-class-pattern": "^[a-z][-a-z0-9]*$",
"selector-no-id": true
},
"defaultSeverity": "warning"
}
我找不到要设置来解决此问题的规则 ID。