I am using SONAR-CSS-PLUGIN to check all SCSS
file in my repository.
As it comes with default set of 100+ rules, at this moment am not willing to apply all rules in one go as as there is legacy code too and it's reporting many errors.
I would like to incremental by applying a set of rules (lets say 10) everyweek.
I am using TeamCity
as build tool.
Here is my TeamCity
configuration.
-Dsonar.language=scss
-Dsonar.inclusions=Src/**/*.scss
-Dsonar.css.configPath= wanna give path to .stylelintrc or custom set of rules
-Dsonar.sourceEncoding=UTF-8
%sonar.github.pullRequest%
%sonar.github.repository%
I can not find any documentaion showing how to configure above plugin in TeamCity
.
Is this -Dsonar.css.configPath
right property??
No matter what path I provide -Dsonar.css.configPath= SomePath
It always applies all the rules bydefault.
I would like to apply only some rules for time being.
答案 0 :(得分:0)
(对于将来可能需要它的人)
好吧,我在他们的git-hub存储库上询问了问题。
很高兴知道他们有回应。
创作者表示目前无法指出任何.stylelintrc
。
同样要应用一组规则,需要创建新的Quality Profile
并将其设置为声纳Web界面中各个存储库的默认值。
注意:上述选项仅适用于管理员访问。
查看详细的帖子HERE