Minor changes to structural analysis of methods#4
Merged
fernandoop merged 13 commits intocodeemoji:mainfrom Apr 30, 2024
Merged
Minor changes to structural analysis of methods#4fernandoop merged 13 commits intocodeemoji:mainfrom
fernandoop merged 13 commits intocodeemoji:mainfrom
Conversation
Updating version to 4.0.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request contains changes for the structural analysis of methods. It mainly incorporates small error fixes, minor configuration changes for some scenarios, refactoring modifications and a correspondingly updated documentation. The most notable alterations done to the previous plugin version include:
Fixes → Some scenarios have been refined to properly activate the corresponding inlay hints in some particular situations:
CEUtilsclass now implements methods for counting the number of lines in a method body. These are invoked by theHighCyclomaticComplexityMethodandLargeLineCountMethodclasses in order to perform their respective computations using a methodology that now foresees the calculation of the line count inside a method's body with the added possibility of excluding superfluous comment lines from it.Configuration changes for some scenarios → Some scenarios can now be configured in more detail:
Refactoring → The code for some scenarios has been refactored to accomodate the changes mentioned above and to improve the activation performance of the corresponding inlay hints:
PSIElementclass and to avoid unnecessary repeated resolutions of method calls. The latter motivation could potentially be enforced even further by implementing a caching mechanism for storing and efficiently reusing values that are of interest to the scenario being analyzed. This could constitute an interesting development topic once new cases for the structural analysis of source code will be added to the plugin.