moznion/cccc
Install the cccc multi-language complexity analyzer from a GitHub release, and optionally run it as a Cognitive/Cyclomatic complexity gate.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| version | Release tag to install (e.g. "v1.0.0"), or "latest" to resolve the most recent release. | no | latest |
| repository | Repository to fetch the cccc release from. | no | moznion/cccc |
| github-token | Token used to query the GitHub API (avoids rate limits when resolving "latest" and downloading assets). | no | ${{ github.token }} |
| path | Files or directories to analyze (whitespace-separated). When empty, the action only installs the binary and adds it to PATH. | no | "" |
| config | Path to an explicit cccc config file (cccc.toml). When empty, cccc auto-discovers cccc.toml / .cccc.toml by walking up from the working directory (unless `no-config` is set). | no | "" |
| no-config | Skip config-file discovery and loading entirely. | no | false |
| top-cognitive | Show only the N most cognitively-complex functions across all files. | no | "" |
| top-cyclomatic | Show only the N most cyclomatically-complex functions across all files. | no | "" |
| args | Extra raw arguments appended verbatim to the cccc invocation. Use this to pass any option not exposed above (e.g. "--max-cognitive 15 --lang es"). | no | "" |
| output-file | If set, also write cccc output to this file (gate exit code preserved). | no | "" |
Outputs
| name | description |
|---|---|
| version | The release tag that was installed. |
| bin | Absolute path to the installed cccc binary. |