OCLint install guide

Get OCLint on macOS and Linux Now!

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

OCLint one-command setup card, command-line tool, for macOS and Linux, 3.9k stars on the project's repository
★ 3.9k stars macOS and Linux

Get OCLint with one command

Pick your system, reveal the step-by-step guide, copy the command, paste it into your terminal and press Enter. This command comes from the project's public source.

PowerShell not published

What OCLint does

  • Unused code - unused local variables and parameters
  • Complicated code - high cyclomatic complexity, NPath complexity and high NCSS
  • Redundant code - redundant if statement and useless parentheses
  • Code smells - long method and long parameter list
  • Bad practices - inverted logic and parameter reassignment
  • Possible bugs - empty if/else/try/catch/finally statements

Summarised from OCLint's own documentation.

About OCLint

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

CategoryCommand-line tool
Install methodHomebrew
Windowsno install command published
macOS / Linuxdocumented install command available
PriceFree and open source
Command verifiedFrom project source
Popularity3.9k stars on the project's public repository

On mobile

OCLint is a command-line tool, so there is no phone app for it — a phone has no shell to run it in. You'll need a desktop, or a remote shell into a machine that has one.

OCLint is developed by its own authors. This page is an independent reference; we are not affiliated with or sponsored by the project. The command shown here was reproduced from the project's public documentation — always check the project's own documentation before running anything.