From 54cc7e23ecca4e0e0d933888de0cfad318432dc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A1udia?= Date: Fri, 20 Nov 2026 09:15:58 +0000 Subject: [PATCH] docs: Analysis CLI init --auto leaves out Minor style patterns and markdownlint by default [OD-1173] Co-Authored-By: Claude Opus 5.5 --- docs/codacy-analysis-cli/index.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/codacy-analysis-cli/index.md b/docs/codacy-analysis-cli/index.md index b28675c114..da45e401d8 100644 --- a/docs/codacy-analysis-cli/index.md +++ b/docs/codacy-analysis-cli/index.md @@ -101,12 +101,22 @@ If you want the rules Codacy enforces as well as the tools the CLI detects local codacy-analysis init --auto ``` +With no filter, `init --auto` leaves out Minor patterns in the Code style and Documentation categories. Minor patterns in other categories, such as Error prone or Unused code, stay in. + Narrow it with comma-separated severities and categories when a full run reports more than you want to act on: ```bash codacy-analysis init --auto Critical,High,Security ``` +Any filter replaces the no-filter default. To include the Minor Code style and Documentation patterns, list every severity: + +```bash +codacy-analysis init --auto Critical,High,Medium,Minor +``` + +`init --auto` doesn't select markdownlint or Agentlinter, with or without filters, unless the repository has its own configuration file for that tool. That file then decides which rules run. + Two narrower modes exist for cases `--auto` doesn't fit. Bare `init` configures only the tools that already have a configuration file in the repository, and `init --default` adds Codacy's default patterns from the public API, which needs no token: ```bash