Release Date: 2022-12-19 (including 1.0.1, 1.0.2, 1.0.3)
New Features
- Introduced new configuration options:
vscodeRadonLinter.minComplexityRank
,vscodeRadonLinter.excludeFiles
,vscodeRadonLinter.ignoreFolders
,vscodeRadonLinter.showRadonPathWarning
, andvscodeRadonLinter.showErrors
. - Added "*.pyx" and "cpython" to the default glob patterns for files and folders to exclude.
- Introduced a new PromiseQueue to handle tasks in a queue.
Improvements
General
- Simplified the configuration retrieval process for improved readability and maintainability.
- Improved error handling across various functions.
- Enhanced logging in
processRadon
function for better debugging.
In extension.ts
- Simplified by moving the
handlePythonDocument
function toworkspace.ts
. - Added a check for the
showRadonPathWarning
configuration.
In diagnostics.ts
- Refactored the
createDiagnostics
function for improved readability and maintainability. - Updated the
createDiagnostics
function to handle different types ofradonOutput
.
In radon.ts
- Improved documentation and refactored
executeRadon
function for better command arguments structure and error handling. - Updated the
executeRadon
function to include new parameters in the Radon command execution. - Added logging for debugging.
In workspace.ts
- Refactored the
processPythonFiles
andprocessAllWorkspaceFolders
functions to useArray.filter
andArray.forEach
. - Added new functions:
processWorkspaces
,handleDocumentEvent
,handlePythonDocument
.
Fixes
- Fixed the order of parameters in the Radon executable command.
- Fixed handling of file paths in
src/radon.ts
. - Fixed the Radon command execution to properly handle the exclusion of files and folders, and to consider the minimum complexity rank.
Removals
- Removed the inline definition of
handlePythonDocument
function andreloadConfig
import fromextension.ts
. - Removed unnecessary array check in
processRadonOutput
function.