Fail a CI build automatically when a function's code complexity exceeds a set limit.
Check code complexity across TypeScript, Rust, Go, or PHP files in one workflow step.
Speed up repeated CI runs by caching complexity results between workflow runs.
Install the cccc binary in a workflow to run custom complexity commands yourself.
| moznion/cccc-action | 123satyajeet123/bitnet-server | adeilsonrbrito/cross-model-consult | |
|---|---|---|---|
| Stars | 0 | 0 | 0 |
| Language | Shell | Shell | Shell |
| Setup difficulty | easy | easy | moderate |
| Complexity | 2/5 | 2/5 | 3/5 |
| Audience | ops devops | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Add the action to a workflow YAML file, per-language rules and thresholds go in a committed cccc.toml file.
cccc-action is a GitHub Actions add-on that installs and runs a code complexity checker called cccc inside a project's continuous integration pipeline. cccc itself is a separate tool that measures how complicated pieces of code are, using two well known measurements from software engineering called Cognitive Complexity and Cyclomatic Complexity, and it works across TypeScript, JavaScript, Rust, Go, and PHP code. This action downloads the correct version of the cccc program for whichever operating system and processor type the CI job is running on, checks that the download matches its expected checksum for safety, and adds it to the system so it can be run as a command. If you tell the action which folder or files to look at, it will also run the complexity check right there in the workflow and can fail the build if code is too complicated according to rules you have set. Rather than letting users configure complexity rules directly through GitHub Actions settings, the action deliberately pushes all of that configuration into a single file in the project itself, called cccc.toml. That file controls which languages to check, which files to skip, complexity limits that should fail a build, and more. The idea is to avoid the action and the underlying tool drifting out of sync as options change over time. There is also a caching feature: turning on one setting in that same config file lets the action reuse results from a previous run so unchanged files do not need to be rechecked every single time, which can make repeated runs several times faster on larger codebases. The action also supports a simpler install-only mode, where it just puts the cccc binary on the system path and lets you run it yourself with whatever command line options you like, plus an escape hatch to pass extra raw options directly. This tool is aimed at software developers and teams who want to enforce a complexity limit on their code as part of their GitHub Actions based CI setup. It supports Ubuntu, macOS, and Windows runners, and is released under the MIT license.
A GitHub Actions add-on that installs and runs a code complexity checker so a project's CI pipeline can catch overly complicated code automatically.
Mainly Shell. The stack also includes Shell, GitHub Actions, cccc.
Released under the MIT License, which allows free use, modification, and commercial use as long as the original copyright notice is kept.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly ops devops.
This repo across BitVibe Labs
Don't trust strangers blindly. Verify against the repo.