11 dépôts
Extensions for measuring and limiting code complexity.
Explore 11 awesome GitHub repositories matching part of an awesome list · Code Complexity. Refine with filters or upvote what's useful.
Ponytail is an LLM code simplification framework and AI agent guardrail system. It provides rules and constraints designed to stop coding agents from producing unnecessary or overly complex logic, ensuring that AI-generated code remains minimal and maintainable. The project features a codebase complexity auditor that scans repositories and code diffs to identify over-engineered patterns and suggest deletions. It also includes a technical debt ledger to track and log deferred shortcuts and cleanup tasks. The framework supports an AI code review workflow and automated code simplification. Thes
Identifies instances of over-engineering across an entire codebase to suggest deletions and reduce technical debt.
This project is a static analysis linter, code quality tool, and language auditor for Rust. It functions as an automated refactoring system designed to identify common mistakes and suggest idiomatic improvements for Rust source code. The tool identifies non-idiomatic patterns, performance bottlenecks, and code smells to improve the overall correctness and quality of the code. It specifically audits memory safety by flagging suspicious use of unsafe blocks and pointer manipulations and detects inefficient operations to optimize execution speed. The analysis surface covers coding style enforce
Identifies overly complex functions or expressions to help developers simplify the underlying logic.
Checkstyle is a Java static analysis tool and linter designed to identify and enforce coding standards and best practices. It functions as a code quality auditor and Javadoc validation tool, checking source code against configurable rulesets to ensure structural and stylistic consistency. The project allows for the creation of custom linting rules by extending a core API to inspect the abstract syntax tree. It further enables specialized validation through the use of XPath expressions to query the syntax tree for specific code patterns and violations. Capability areas include the enforcement
Restricts the length of files, lines, and methods to maintain readability and manageability.
Scc is a codebase analysis tool written in Go that calculates source lines of code, blank lines, and comments across hundreds of programming and markup languages. It functions as a source code metric engine, software complexity analyzer, and cost estimator. The project differentiates itself by providing a COCOMO cost estimator to predict development effort and financial costs, alongside tools to estimate the cost of regenerating a codebase using large language models. It also includes a Git repository metrics tool that correlates commit history with codebase metrics to identify hotspots, trac
Estimates cyclomatic complexity by scanning source code for language-specific control flow keywords.
Restricts methods to under 30 lines and classes to under 30 methods to keep elements focused and maintainable.
Cohesion is a tool for measuring Python class cohesion.
Measures class cohesion in Python code.
An extension for flake8 that validates cognitive functions complexity.
Validates cognitive complexity of functions.
An extension for flake8 to report on issues with functions.
Validates function parameters and complexity.
An extension for flake8 to report on too complex type annotations.
Validates the complexity of type annotations.
An extension for flake8 that validates expression complexity.
Validates the complexity of expressions.
Flake8 plugin for a smart line length validation.
Provides smart line length validation.