代碼質量管理 開源平臺SonarQube Python v1.6發布

Sonar是一個用于代碼質量管理的開源平臺,用于管理源代碼的質量。通過插件機制,Sonar 可以集成不同的測試工具,代碼分析工具,以及持續集成工具,比如pmd-cpd、checkstyle、findbugs、Jenkins。通過不同的插件對這些結果進行再加工處理,通過量化的方式度量代碼質量的變化,從而可以方便地對不同規模和種類的工程進行代碼質量管理。同時 Sonar 還對大量的持續集成工具提供了接口支持,可以很方便地在持續集成中使用 Sonar。 此外,Sonar 的插件還可以對 Java 以外的其他編程語言提供支持,對國際化以及報告文檔化也有良好的支持。
更新日志
Bug 修復
- [SONARPY-101] - Analysis breaks when importing a coverage report containing windows paths and zero coverage switched on
- [SONARPY-122] - Parsing error when using "*" in function parameter list
- [SONARPY-138] - NPE in NeedlessPassCheck when "pass" is not nested
- [SONARPY-150] - FP ExitHasBadArgumentsCheck: parameter with "*"
功能改進
- [SONARPY-124] - Add a warning in the log when coverage report is not found
- [SONARPY-125] - Handle absolute path for coverage report path properties
- [SONARPY-130] - False positive S2325: method raises NotImplementedError
- [SONARPY-134] - Change the default mode for unit test result import
- [SONARPY-136] - update issueManagement url in POM
- [SONARPY-137] - update description in POM
- [SONARPY-140] - Tune "Sonar way" quality profile
- [SONARPY-149] - Do not save 0 for ncloc_data and comment_lines_data metrics
- [SONARPY-154] - False Positive on rules considering nested class properties
- [SONARPY-156] - Improve MethodShouldBeStaticCheck: ignore built-in methods
- [SONARPY-157] - Update FunctionComplexity parameter default value to 20
- [SONARPY-158] - Update NestedControlFlowDepthCheck parameter default value to 4
- [SONARPY-159] - Update FunctionName and MethodName parameter default value to not limit max name length
- [SONARPY-171] - Group plugin properties into subcategories
新特性
- [SONARPY-129] - Support NOSONAR to ignore specific issues on the same line
- [SONARPY-142] - Migrate plugin on SQ 5.6 LTS
- [SONARPY-143] - Support issues with precise location
- [SONARPY-144] - Raise issues with precise location for comments-related rules
- [SONARPY-145] - Raise issues with precise location for flow-related rules
- [SONARPY-146] - Raise issues with precise location for class- and function-related rules
- [SONARPY-147] - Raise issues with precise location for bad-usage rules
- [SONARPY-148] - Support new Python <=3.6 syntax
- [SONARPY-163] - Highlight number literals
- [SONARPY-164] - Highlight python docstring
Task
- [SONARPY-103] - Migrate text colorizing to use Highlightable interface
- [SONARPY-127] - Update maven groupId
- [SONARPY-151] - Deprecate rule LongIntegerWithLowercaseSuffixUsage
- [SONARPY-153] - Remove BackslashInStringCheck from Sonar Way profile
- [SONARPY-160] - Drop SQALE characteristics
- [SONARPY-162] - Migrate to Java8
- [SONARPY-165] - Drop commons rules
Sub-task
- [SONARPY-161] - Parse "yield from"
- [SONARPY-167] - Parse coroutines with async and await syntax
- [SONARPY-168] - Parse an infix operator for matrix multiplication
- [SONARPY-169] - Parse additional unpacking generalizations
- [SONARPY-170] - Parse formatted string literals
- [SONARPY-172] - Parse 'rb' prefix of raw bytes literals
下載
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!