有没有办法看到Sonarwhal测试结果或任何记录?

时间:2018-04-19 06:35:16

标签: web accessibility standards lint

当我在网页的命令行上运行Sonarwhal(https://sonarwhal.com/docs/user-guide/)时,会生成一个我应该解决的问题/失败列表。有什么办法可以解决这些问题吗?谷歌搜索这个问题,但我找不到任何解决方案。

enter image description here

1 个答案:

答案 0 :(得分:3)

默认"格式化程序" (如何打印错误)是"摘要"。您必须将其更改为其他内容。支持的格式化程序列表位于:https://sonarwhal.com/docs/user-guide/concepts/formatters/,其中包含有关如何在.sonarwhalrc文件中配置它们的说明。基本上你只需要添加一个"格式化程序"属性:

```

{
  "extends": ["web-recommended"],
  "formatters": ["codeframe"]
}

```

所有格式化程序除了" excel"应该在web-recommended包中。

将来您可以直接在GitHub repo上提问。