Repository navigation
Releases
Complexity Analysis Action v1.0.0
Complexity Analysis Action v1.0.0
The first stable release of Complexity Analysis Action introduces automated complexity analysis for C# projects and solutions directly in GitHub Actions workflows.
The Action integrates the published ComplexityAnalysis.Tool CLI, providing quality gates, structured reports, and complexity regression detection without requiring a custom analysis pipeline.
Key Features
- C# project analysis: Supports .csproj, .sln, and .slnx files.
- Configurable quality gates: Evaluate Big-O, cyclomatic complexity, cognitive complexity, nesting depth, method NLOC, and code duplication.
- Regression detection: Compare pull-request changes against a baseline and identify proven complexity regressions.
- JSON and SARIF reports: Generate structured analysis results, with optional integration into GitHub Code Scanning.
- GitHub Job Summary: Review analysis results directly in workflow executions.
- Pull request reporting: Generate structured feedback with secure publication options.
- Deterministic execution: Use a fixed CLI version and reproducible analysis configuration.
Getting Started
name: Complexity Analysis
on:
pull_request:
permissions:
contents: read
jobs:
complexity:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e
with:
persist-credentials: false
- name: Analyze complexity
uses: rodri-oliveira-dev/complexity-analysis-action@v1.0.0
with:
path: MySolution.slnx
Replace MySolution.slnx with your actual project or solution path.
Compatibility
- Supported runner: Ubuntu (GitHub-hosted)
- .NET SDK: 10.0.403
- ComplexityAnalysis.Tool: 1.0.1
- Runtime: .NET 10
Windows and macOS are not supported in this release.
Security
External GitHub Actions are pinned to immutable commit SHAs within the project. The Action supports read-only analysis workflows, validates inputs and reports, and rejects privileged pull_request_target execution for project analysis.
Documentation
This release establishes the initial stable public contract for Complexity Analysis Action.