# oclint/oclint

A static source code analysis tool to improve quality and reduce defects for C, C++ and Objective-C

Repository: https://github.com/oclint/oclint
Canonical: https://ross.abutalabs.com/products/oclint
Homepage: http://oclint.org
Language: C++
License: BSD-3-Clause
License Family: permissive
Last push: 2026-02-23T04:01:02+00:00

## Health v2 (maintenance only)
Score: 65/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 69, release rhythm 40, longevity 100
- inputs: {"age_days": 5010, "days_push": 191, "days_rel": 191, "gap_med": 451, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3896, forks 496 (observed 2026-08-28T04:08:28.471189+00:00)

## What it is
OCLint is a static source code analysis tool for C, C++, and Objective-C that inspects the abstract syntax tree to find bugs, unused code, complexity issues, and code smells. It runs as a command-line tool with dynamically loadable rules, designed for integration into continuous inspection workflows.

## Use cases
- find potential bugs in c++ code
- static analysis for objective-c
- detect code smells and long methods
- measure cyclomatic complexity
- lint c code in ci pipeline
- find unused variables and dead code

## When to choose
- you need static analysis for C, C++, or Objective-C
- you want extensible, dynamically loaded linting rules
- you want to enforce code quality gates in CI

## When to avoid
- you analyze languages other than C/C++/Objective-C
- you need a fully maintained tool with frequent releases
- you want an IDE-integrated linter rather than a CLI

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: linter, developer-tools, code-review
- domain: developer-tools, testing, parsers
- platform: cli, cpp
- tags: static-analysis, objective-c, code-quality, clang, ci, linux, macos

## Member repositories
- oclint/oclint (main) score 65

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:28.471189+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:25:35.254048+00:00, confidence not recorded.
  - readme: https://github.com/oclint/oclint (fetched 2026-08-28T04:08:28.471189+00:00, sha 5fa4c7465cd9)
  - homepage: http://oclint.org (fetched 2026-08-29T09:20:25.757826+00:00, sha e8a211959ae2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
