Skip to content

Adding Analysis Action and Fixes to the Configuration#72

Merged
floriankraemer merged 6 commits into
masterfrom
add-action
May 24, 2026
Merged

Adding Analysis Action and Fixes to the Configuration#72
floriankraemer merged 6 commits into
masterfrom
add-action

Conversation

@floriankraemer
Copy link
Copy Markdown
Contributor

No description provided.

…andling

- Added support for new CI report formats: Checkstyle, JUnit, SARIF, GitLab Code Quality, and GitHub Actions.
- Improved HTML and Markdown report generation with a single table configuration option.
- Refactored MarkdownReport for better file handling and class section management, enhancing code readability and maintainability.
- Updated tests to validate new report formats and configurations.
- Added configuration file paths and cache status to various output files for improved clarity and debugging.
- Updated output formats for all relevant test cases to reflect the new configuration and cache information.
- Replaced instances of `config.yml` with `phpcca.yaml` across the codebase to standardize configuration file usage.
- Introduced a new `phpcca.yaml` file containing cognitive metrics configuration settings.
- Updated README.md to reflect the new copyright format.
- Adjusted GitHub Actions workflow to utilize the new configuration file.
@Phauthentic Phauthentic deleted a comment from github-actions Bot May 24, 2026
- Changed all instances of cca.yaml to phpcca.yaml across documentation and codebase for consistency.
- Updated README.md, CI-Integration.md, and Configuration.md to reflect the new configuration file name.
- Modified InitCommand and related tests to create and reference phpcca.yaml instead of cca.yaml.
@floriankraemer floriankraemer changed the title Adding Analysis Action Adding Analysis Action and Fixes to the Configuration May 24, 2026
- Changed the setting for showOnlyMethodsExceedingThreshold from false to true to enhance cognitive metrics reporting.
@Phauthentic Phauthentic deleted a comment from github-actions Bot May 24, 2026
…t configuration method

- Introduced a private method `withTestConfig` to streamline the execution of tests with a specified configuration file.
- Updated all test cases in `CognitiveMetricsCommandCoverageTest` to utilize the new method for improved readability and maintainability.
@Phauthentic Phauthentic deleted a comment from github-actions Bot May 24, 2026
@github-actions
Copy link
Copy Markdown

Cognitive Metrics Report

Generated: 2026-05-24 13:08:45

Total Classes: 8

Note: Only showing methods exceeding threshold of 0.500


  • Class: \Phauthentic\CognitiveCodeAnalysis\Command\InitCommand
  • File: /home/runner/work/cognitive-code-analysis/cognitive-code-analysis/src/Command/InitCommand.php
Method Lines Args Returns Variables Property Calls If If Nesting Else Cognitive Complexity
execute 28 (0.000) 2 (0.000) 3 (0.182) 6 (0.336) 1 (0.000) 1 (0.000) 1 (0.000) 0 (0.000) 0.519

  • Class: \Phauthentic\CognitiveCodeAnalysis\Tests\Unit\Command\InitCommandTest
  • File: /home/runner/work/cognitive-code-analysis/cognitive-code-analysis/tests/Unit/Command/InitCommandTest.php
Method Lines Args Returns Variables Property Calls If If Nesting Else Cognitive Complexity
removeDirectory 27 (0.000) 1 (0.000) 2 (0.000) 4 (0.000) 0 (0.000) 4 (0.693) 1 (0.000) 0 (0.000) 0.693

  • Class: \Phauthentic\CognitiveCodeAnalysis\Tests\Unit\Config\ConfigInitializerTest
  • File: /home/runner/work/cognitive-code-analysis/cognitive-code-analysis/tests/Unit/Config/ConfigInitializerTest.php
Method Lines Args Returns Variables Property Calls If If Nesting Else Cognitive Complexity
removeDirectory 27 (0.000) 1 (0.000) 2 (0.000) 4 (0.000) 0 (0.000) 4 (0.693) 1 (0.000) 0 (0.000) 0.693

@floriankraemer floriankraemer merged commit 36a2acd into master May 24, 2026
6 checks passed
@floriankraemer floriankraemer deleted the add-action branch May 24, 2026 23:44
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.

1 participant