Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Static analysis using ESLint with snapshot

We're using ESLint in our company in order to detect errors, that break the build and block the deploy, but we also have some other rules which trigger some warnings in our console.

We want to see those warnings in a timeline, so we'll be able to check if we are improving our tech debts or not.

I tried SonarEsLintPlugin in SonarQube but it does not work properly in version 7+

Anyone knows other way to have ESLint timeline snapshots?

like image 713
Afonso França Avatar asked Jul 25 '18 16:07

Afonso França


Video Answer


1 Answers

You can use the official SonarJS plugin from SonarSource. In the latest 4.2 version it supports import of ESLint issues, see documentation here.

It will allow to track your technical debt, you can also import your test coverage, etc. There is also SaaS offering on https://sonarcloud.io

like image 81
Tibor Blenessy Avatar answered Sep 28 '22 18:09

Tibor Blenessy