qmetrics.net

Ansible Lint

Command-line linter for Ansible playbooks and roles

Ansible Lint screenshot

Ansible Lint scans playbooks, roles, and collections for practices that may cause bugs or maintenance pain. It can flag issues and address some common problems automatically.

Overview

Ansible Lint is a command-line linter aimed at anyone writing Ansible content. It reviews playbooks, roles, and collections to surface patterns that often lead to errors or harder-to-maintain automation.

The tool is opinionated but lets teams disable rules individually or by category. It is also positioned to help users adapt content as Ansible itself evolves; running it against newer Ansible releases is encouraged even when production still pins older versions.

Ansible Galaxy uses this linter when computing quality scores for contributed roles and collections. Metadata files such as galaxy.yml and galaxy_info sections in meta.yml are part of what it expects, which benefits private content documentation too.

A GitHub Action can run ansible-lint in CI without installing it on each runner locally, with optional pins to specific releases and hooks for dependency requirements files and working directories.

Key features

  • Playbook and role linting
  • Collection metadata checks
  • Configurable rule disables
  • GitHub Action integration
  • Ansible Galaxy quality scoring
  • Community-maintained rule set
  • Supports recent Ansible releases
  • CLI-focused workflow

Use cases

  • Ansible CI quality gates
  • Galaxy-published role checks
  • Playbook review before deploy
  • Ansible upgrade readiness review

Tags

Similar software

ShellCheck

Static analysis and linting for Bash shell scripts

ShellCheck scans bash and POSIX shell scripts for syntax, semantic, and portability problems. It is available as a CLI tool, editor integration, web paste interface, and CI hook.

★ 40.4k⟳ todayGPL-3.0

Mypy

Optional static type checker for Python

Mypy checks Python programs against PEP 484 type hints before you run them. It supports gradual typing so you can add annotations over time.

★ 20.7k⟳ todayMIT · open core

typescript-eslint

ESLint tooling for linting TypeScript codebases

typescript-eslint connects ESLint to TypeScript syntax and ships parser services plus lint rules. It enables standard and type-aware linting for JavaScript and TypeScript projects.

★ 16.5k⟳ 2 days agoMIT

React Doctor

CLI static analysis for React code quality

React Doctor scans React projects for correctness, performance, security, accessibility, and maintainability issues. Run it locally, in CI, or as an agent skill.

★ 15.2k⟳ 11 days agoMIT

Ajv

JSON Schema and JSON Type Definition validator for JavaScript

Ajv compiles JSON Schemas into validation functions for Node.js and browsers. It supports multiple JSON Schema drafts and JSON Type Definition (RFC 8927).

★ 14.9k⟳ 7 months agoMIT

Why Did You Render

React and React Native avoidable re-render diagnostics

Welldone Software’s library monkey-patches React in development to log when components render and why. It highlights redundant updates and works with React Native.

★ 12.5k⟳ 1 year agoMIT