見つかったエラーについて開発者に通知するための新しいPVS-Studio機能

PVS-Studioサポートは、製品を改善するための提案をユーザーから受け取ることがよくあります。それらの多くを実装できてうれしいです。そのような最新の提案の1つは、開発者向けの自動通知ユーティリティ(Blame Notifier)の改良に関連していました。バージョン管理システムからの非難情報を使用して、アナライザーがメッセージを発行したコードの日付/リビジョンを抽出する方法を彼女に教えるように依頼されました。この改良により、この記事で説明するユーティリティの機能を拡張することができました。





すべてが始まった経緯

, . , - . , 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 , , PVS-Studio, .





, 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.








All Articles