Skip to content

Conversation

@zhamborova
Copy link
Contributor

@zhamborova zhamborova commented May 8, 2025

This pull request introduces the integration of the Lizard code complexity analyzer into the project. It includes changes to support Lizard as a tool, updates to the configuration and initialization processes, and the addition of utility methods for handling Lizard-specific configurations.

Integration of Lizard Tool:

  • Added Lizard to the list of supported tools in .codacy/codacy.yaml and included its version (1.17.19).
  • Introduced Lizard-specific imports and logic in cmd/analyze.go to handle its execution, configuration, and error handling. [1] [2] [3] [4]
  • Added a new plugin.yaml file for Lizard, defining its runtime, binaries, and options.

Configuration and Initialization Enhancements:

  • Updated cmd/init.go to include Lizard in the default configuration template, runtime requirements, and initialization logic. [1] [2] [3] [4]
  • Added a createLizardConfigFile function to generate Lizard-specific configuration files, supporting both default and custom configurations.
  • Introduced a buildDefaultConfigurationFiles function to streamline the creation of default tool configurations, starting with Lizard.

Utility and Domain Updates:

  • Added a CreateLizardConfig function in tools/lizard/lizardConfigCreator.go to generate YAML configuration files based on patterns and thresholds.
  • Enhanced the ParameterConfiguration struct in domain/patternConfiguration.go to support a default field for parameters.

Testing and Logging:

  • Updated plugins/tool-utils_test.go to include Lizard in the list of supported tools for testing.
  • Added logging in cmd/analyze.go to indicate when all configured tools are being executed.

@codacy-production
Copy link

codacy-production bot commented May 8, 2025

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
+1.93% 50.47%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (a65f9cd) 3411 1235 36.21%
Head commit (42baf37) 3923 (+512) 1496 (+261) 38.13% (+1.93%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#101) 529 267 50.47%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

* [PLUTO-1392] Lizard installation and running
@zhamborova zhamborova force-pushed the feature/lizard-tool branch from 0a8ad9e to 1972c88 Compare May 8, 2025 10:38
zhamborova and others added 2 commits May 8, 2025 12:52
@zhamborova zhamborova merged commit 4770bfe into main May 8, 2025
8 checks passed
@alerizzo alerizzo deleted the feature/lizard-tool branch June 3, 2025 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants