Search code examples
webaccessibilitystandardslint

Is there a way to see Sonarwhal testresults or any logging?


When I run Sonarwhal (https://sonarwhal.com/docs/user-guide/) on the commandline for a webpage, it generates a list of problems/failures that I should address. Is there any way I can look into these problems? Googled this issue but I cannot find any solution.

enter image description here


Solution

  • The default "formatter" (how the errors are going to be printed) is "summary". You will have to change it to something else. The list of supported formatters is available in: https://sonarwhal.com/docs/user-guide/concepts/formatters/ with instructions on how to configure them in your .sonarwhalrc file. Basically all you need is add a "formatters" property:

    ```

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

    ```

    All formatters except "excel" should be in the web-recommended package.

    In the future you can ask questions directly on our GitHub repo.