Skip to content

Release 1.0.3

Latest
Compare
Choose a tag to compare
@nareyko nareyko released this 19 Dec 19:48

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, and vscodeRadonLinter.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 to workspace.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 of radonOutput.

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 and processAllWorkspaceFolders functions to use Array.filter and Array.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 and reloadConfig import from extension.ts.
  • Removed unnecessary array check in processRadonOutput function.