Closed koxudaxi closed 11 months ago
27 new problems were found
Inspection name | Severity | Problems |
---|---|---|
Unstable API Usage |
🔶 Warning | 16 |
Incorrect string capitalization |
🔶 Warning | 2 |
Constant conditions |
🔶 Warning | 1 |
Unused symbol |
🔶 Warning | 1 |
Class member can have 'private' visibility |
◽️ Notice | 3 |
Array property in data class |
◽️ Notice | 1 |
Const property naming convention |
◽️ Notice | 1 |
Package name does not match containing directory |
◽️ Notice | 1 |
Regular expression can be simplified |
◽️ Notice | 1 |
💡 Qodana analysis was run in the pull request mode: only the changed files were checked
Summary
Ensured code consistency before and just before the execution of Ruff due to the possibility of alterations by other processes.
Details:
In this PR, modifications have been made to ensure the consistency of the code before and just before the execution of Ruff. Due to the time consumption caused by the launching of new processes during Ruff’s execution, there exists a possibility that other methods may have altered the structure of the virtual file object tree.
To prevent alterations to the code during processing, the code is now stored in memory as text. A check is also performed before code modifications to ensure no unexpected alterations by other processes.
Notes
Unable to reproduce the issue in the test. Believed to have resolved the fundamental problem.
Related Issues: https://github.com/koxudaxi/ruff-pycharm-plugin/issues/183