Releases: nareyko/vscode-radon-linter
Releases · nareyko/vscode-radon-linter
Release 1.0.3
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.
vscode-radon-linter v1.0.0: Initial Release with Automatic Python Linting and Detailed Output
Release Notes
vscode-radon-linter v1.0.0
Features
- Automatic linting of Python files using Radon
- Display of potential issues in the Problems tab
- Identification of code complexity, maintainability, and other potential problems
- Ability to process individual files, all Python files in the workspace, and all workspace folders for linting multiple Python files at once
- Detailed output that includes the cyclomatic complexity of blocks of code, the type of the block (e.g., "function", "method", "class"), the name of the block, and the line number where the block starts
- Configuration setting to determine the Radon executable to use
- Debug mode that can be enabled to log the Radon runs
- Seamless integration with Visual Studio Code
Changes
- Initial release of vscode-radon-linter
Fixes
- None in this release
Known Issues
- None in this release
Please report any issues on the GitHub repository.