O suporte PVS-Studio freqüentemente recebe sugestões de usuários para melhorar o produto. Estamos felizes em implementar muitos deles. Uma das propostas mais recentes estava relacionada ao refinamento do utilitário de notificação automática para desenvolvedores (Blame Notifier). Fomos solicitados a ensiná-la a extrair a data / revisão do código, para o qual o analisador emitiu uma mensagem, usando informações de culpa do sistema de controle de versão. Esse refinamento nos permitiu expandir os recursos do utilitário, sobre os quais falaremos neste artigo.
Como tudo começou
, . , - . , SonarQube . . , , SonarQube, .
, , . . Blame Notifier, . , - , , , . , Blame Notifier: " , , ".
. , . , , , , . , , . . , blame – .
:
;
Blame Notifier , HTML- . , .
!
Blame Notifier – , PVS-Studio, , . HTML- , -, . , , , . , . , blame , .
blame , , , PVS-Studio. :
--sortByDate (-S) – HTML- , - . , , .
--days (-d) – HTML- , N .
. / : SVN, Git Mercurial.
HTML- :
HTML-, :
SonarQube, 'sonar-scanner'. .
. PVS-Studio SonarQube, , SonarQube . PVS-Studio \ SonarQube, .
, SonarQube , 'Clean as You Code'. , , - . , 'production', , "", . . SonarQube.
. . 'Quality Gate', . :
;
;
;
;
... .
, , - , 'Quality Gate' .
'Clean as You Code' . , SonarQube 7.9.4:
SonarQube – , , . :
;
;
;
, , web-;
... .
, SonarQube?
, , , SonarQube, . , :
SonarQube;
'Quality Profiles';
'Quality Gates';
'sonar-scanner';
... .
, SonarQube. .
- Blame Notifier. SonarQube . 'Clean as You Code', . , N .
SonarQube. 10 '-d' (-S) , . HTML- :
, 11 10 . , SonarQube, .
"" , , :
;
, , HTML-. 'blame-notifier' .
, , web-
, Blame Notifier PVS-Studio SonarQube Enterprise PVS-Studio.
. /, .
, PVS-Studio ( Visual Studio, SonarQube, Jenkins, Gradle/Maven/IntelliJ IDEA), PlogConverter, blame-notifier. PVS-Studio, , . , .
Blame Notifier "" , SonarQube. , – SonarQube. . , .
, : Maxim Stefanov. PVS-Studio New Features for Notifying Developers About Errors Found.