Skip to content
Back to search

megalinter

๐Ÿฆ™ MegaLinter analyzes 50 languages, 22 formats, 21 tooling formats, excessive copy-pastes, spelling mistakes and security issues in your repository sources with a GitHub Action, other CI tools or locally.

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today

Check it deeper on your machine

It has changed since its scan on 11 Nov 2026. Its scripts were only partly scanned.

As a Claude Code plugin, install it and then ask Claude Code:

/plugin marketplace add keithmackay/mackayi/plugin install scanskillsafety@mackayiDo a deep scan of https://github.com/oxsecurity/megalinter with scanskillsafety

Or from a terminal, clone it and run it:

git clone https://github.com/keithmackay/scanskillsafety-skill ~/.claude/skills/scanskillsafetynode ~/.claude/skills/scanskillsafety/cli.cjs --deep 'https://github.com/oxsecurity/megalinter'

It checks the exact commit: every file, its packages against OSV (api.osv.dev), how it compares with this page's scan (findsafeskills.com receives the repository's address), and, if you agree, Claude reading every file with your own Claude subscription. It never runs the code.

Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/oxsecurity--megalinter/badge.svg)](/listings/oxsecurity--megalinter)

HTML

<a href="/listings/oxsecurity--megalinter"><img src="/api/listings/oxsecurity--megalinter/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

- **With a coding agent**: install the [MegaLinter agent skills](https://megalinter.io/latest/install-agent-skills/) with `npx skills add oxsecurity/megalinter/skills`, then ask your agent to _"setup megalinter"_. - **Or with the interactive wizard**: run `npx mega-linter-runner --install` to generate configuration files (you need [Node.js](https://nodejs.org/en/) installed). - Commit, push, and create a pull request. - Watch!

**Notes**:

- This repo is a hard fork of [GitHub Super-Linter](https://github.com/super-linter/super-linter), rewritten in Python to add [many additional features](#mega-linter-vs-super-linter). - If you are a Super-Linter user, you can transparently **switch to MegaLinter and keep the same configuration** (just replace `super-linter/super-linter@v3` with `oxsecurity/megalinter@v10` in your GitHub Action YAML file, [like on this PR](https://github.com/nvuillam/npm-groovy-lint/pull/109)). - If you want to use MegaLinter's extra features (recommended), please take 5 minutes to use the [assisted installation](https://github.com/oxsecurity/megalinter/tree/main/docs/install-assisted.md). - For a beginner-friendly example of getting started with MegaLinter, check out [this blog post](https://ayyjohn.com/posts/linting-a-jekyll-blog-with-mega-linter) by Alec Johnson.

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

.claude-plugin/marketplace.json ยท Manifest ยท 26 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

This file has changed since it was scanned, so this is not exactly the text that was scanned, and no line is marked. The findings are listed with the safety scan above.

  1. {
  2. "name": "megalinter",
  3. "owner": {
  4. "name": "OX Security",
  5. "url": "https://github.com/oxsecurity"
  6. },
  7. "description": "MegaLinter agent plugin: set up, run and fix MegaLinter from your coding agent.",
  8. "plugins": [
  9. {
  10. "name": "megalinter",
  11. "source": "./",
  12. "description": "Set up, run and fix MegaLinter on any repository: 100+ linters for 69+ languages, 23+ formats and 21+ tooling formats, from CI or locally.",
  13. "category": "code-quality",
  14. "homepage": "https://megalinter.io",
  15. "repository": "https://github.com/oxsecurity/megalinter",
  16. "license": "AGPL-3.0",
  17. "keywords": [
  18. "linter",
  19. "code-quality",
  20. "formatter",
  21. "security",
  22. "ci"
  23. ]
  24. }
  25. ]
  26. }
README.md ยท README ยท 1,354 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

This file has changed since it was scanned, so this is not exactly the text that was scanned, and no line is marked. The findings are listed with the safety scan above.

  1. <!-- markdownlint-disable MD013 MD033 MD041 -->
  2. <!-- header-intro-start -->
  3. <!-- header-intro-end -->
  4. <!-- header-logo-start -->
  5. <div align="center">
  6. <a href="https://megalinter.io" target="blank" title="Visit MegaLinter Web Site">
  7. <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/images/megalinter-banner.png" alt="MegaLinter" min-height="200px">
  8. </a>
  9. </div>
  10. <!-- header-logo-end -->
  11. <!-- mega-linter-title-start -->
  12. # MegaLinter, by [![OX Security](https://www.ox.security/wp-content/uploads/2022/06/logo.svg?ref=megalinter_readme)](https://www.ox.security/?ref=megalinter)
  13. <!-- mega-linter-title-end -->
  14. <!-- mega-linter-badges-start -->
  15. ![GitHub release](https://img.shields.io/github/v/release/oxsecurity/megalinter?sort=semver)
  16. [![Docker Pulls](https://img.shields.io/badge/docker%20pulls-29.5M-blue)](https://megalinter.io/flavors/)
  17. [![Downloads/week](https://img.shields.io/npm/dw/mega-linter-runner.svg)](https://npmjs.org/package/mega-linter-runner)
  18. [![Coding Agents](https://img.shields.io/badge/Coding%20Agents-compatible-blueviolet?logo=githubcopilot&logoColor=white)](https://megalinter.io/latest/coding-agents/)
  19. [![GitHub stars](https://img.shields.io/github/stars/oxsecurity/megalinter?cacheSeconds=3600)](https://github.com/oxsecurity/megalinter/stargazers/)
  20. [![MegaLinter](https://github.com/oxsecurity/megalinter/workflows/MegaLinter/badge.svg?branch=main)](https://github.com/oxsecurity/megalinter/actions?query=workflow%3AMegaLinter+branch%3Amain)
  21. [![codecov](https://codecov.io/gh/oxsecurity/megalinter/branch/main/graph/badge.svg)](https://codecov.io/gh/oxsecurity/megalinter)
  22. <!-- gh-dependents-info-used-by-start -->
  23. [![Generated by github-dependents-info](https://img.shields.io/static/v1?label=Used%20by&message=6432&color=informational&logo=slickpic)](https://github.com/oxsecurity/megalinter/blob/main/./docs/used-by-stats.md)<!-- gh-dependents-info-used-by-end -->
  24. [![Secured with Trivy](https://img.shields.io/badge/Trivy-secured-green?logo=docker)](https://github.com/aquasecurity/trivy)
  25. [![GitHub contributors](https://img.shields.io/github/contributors/oxsecurity/megalinter.svg)](https://github.com/oxsecurity/megalinter/graphs/contributors/)
  26. [![GitHub Sponsors](https://img.shields.io/github/sponsors/nvuillam)](https://github.com/sponsors/nvuillam)
  27. [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://github.com/oxsecurity/megalinter/blob/main/.github/CONTRIBUTING.md)
  28. [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Check+MegaLinter+to+say+goodbye+to+dirty+code+in+your+projects+%3A%29+100%25+free+and+open+source+for+all+uses&url=https://megalinter.io/&via=NicolasVuillamy&hashtags=linters,code,quality,ci,python,java,golang,c,dotnet,kotlin,rust,scala,salesforce,terraform)
  29. <!-- mega-linter-badges-end -->
  30. <!-- welcome-phrase-start -->
  31. MegaLinter is an **open-source** tool for **CI/CD workflows** that analyzes the **consistency of your code**, **IaC**, **configuration**, and **scripts** in your repository to **ensure all your project sources are clean and formatted**, no matter which IDE or toolbox is used by your developers. Powered by [**OX Security**](https://www.ox.security/?ref=megalinter).
  32. Supports [**68** languages](#languages), [**23** formats](#formats), [**22** tooling formats](#tooling-formats), and is **ready to use out of the box** as a GitHub Action or with any CI system. It is **highly configurable** and **free for all uses**.
  33. MegaLinter has **native integrations** with popular CI/CD tools and is compliant with most [**Coding Agents**](https://megalinter.io/latest/coding-agents/).
  34. <div align="center">
  35. <a href="https://github.com/oxsecurity/megalinter/tree/main/docs/reporters/GitHubCommentReporter.md"><img src="https://github.com/oxsecurity/megalinter/blob/main/docs/assets/icons/integrations/github.png?raw=true" alt="GitHub" height="40" style="height:40px;vertical-align:middle;margin:4px"></a>
  36. <a href="https://github.com/oxsecurity/megalinter/tree/main/docs/reporters/GitlabCommentReporter.md"><img src="https://github.com/oxsecurity/megalinter/blob/main/docs/assets/icons/integrations/gitlab.png?raw=true" alt="GitLab" height="40" style="height:40px;vertical-align:middle;margin:4px"></a>
  37. <a href="https://github.com/oxsecurity/megalinter/tree/main/docs/reporters/AzureCommentReporter.md"><img src="https://github.com/oxsecurity/megalinter/blob/main/docs/assets/icons/integrations/azure.png?raw=true" alt="Azure" height="40" style="height:40px;vertical-align:middle;margin:4px"></a>
  38. <a href="https://github.com/oxsecurity/megalinter/tree/main/docs/reporters/BitbucketCommentReporter.md"><img src="https://github.com/oxsecurity/megalinter/blob/main/docs/assets/icons/integrations/bitbucket.png?raw=true" alt="Bitbucket" height="40" style="height:40px;vertical-align:middle;margin:4px"></a>
  39. <a href="https://github.com/oxsecurity/megalinter/tree/main/docs/install-jenkins.md"><img src="https://github.com/oxsecurity/megalinter/blob/main/docs/assets/icons/integrations/jenkins.png?raw=true" alt="Jenkins" height="40" style="height:40px;vertical-align:middle;margin:4px"></a>
  40. <a href="https://github.com/oxsecurity/megalinter/tree/main/docs/install-drone.md"><img src="https://github.com/oxsecurity/megalinter/blob/main/docs/assets/icons/integrations/drone.png?raw=true" alt="Drone" height="40" style="height:40px;vertical-align:middle;margin:4px"></a>
  41. <a href="https://github.com/oxsecurity/megalinter/tree/main/docs/install-concourse.md"><img src="https://github.com/oxsecurity/megalinter/blob/main/docs/assets/icons/integrations/concourse.png?raw=true" alt="Concourse" height="40" style="height:40px;vertical-align:middle;margin:4px"></a>
  42. <a href="https://github.com/oxsecurity/megalinter/tree/main/docs/install-docker.md"><img src="https://github.com/oxsecurity/megalinter/blob/main/docs/assets/icons/integrations/docker.png?raw=true" alt="Docker" height="40" style="height:40px;vertical-align:middle;margin:4px"></a>
  43. <a href="https://github.com/oxsecurity/megalinter/tree/main/docs/reporters/SarifReporter.md"><img src="https://github.com/oxsecurity/megalinter/blob/main/docs/assets/icons/integrations/sarif.png?raw=true" alt="SARIF" height="40" style="height:40px;vertical-align:middle;margin:4px"></a>
  44. <a href="https://github.com/oxsecurity/megalinter/tree/main/docs/observability/grafana.md"><img src="https://github.com/oxsecurity/megalinter/blob/main/docs/assets/icons/integrations/grafana.png?raw=true" alt="Grafana" height="40" style="height:40px;vertical-align:middle;margin:4px"></a>
  45. <a href="https://github.com/oxsecurity/megalinter/tree/main/docs/observability/datadog.md"><img src="https://github.com/oxsecurity/megalinter/blob/main/docs/assets/icons/integrations/datadog.png?raw=true" alt="Datadog" height="40" style="height:40px;vertical-align:middle;margin:4px"></a>
  46. <a href="https://github.com/oxsecurity/megalinter/tree/main/docs/observability/newrelic.md"><img src="https://github.com/oxsecurity/megalinter/blob/main/docs/assets/icons/integrations/newrelic.png?raw=true" alt="New Relic" height="40" style="height:40px;vertical-align:middle;margin:4px"></a>
  47. <a href="https://github.com/oxsecurity/megalinter/tree/main/docs/observability/elastic.md"><img src="https://github.com/oxsecurity/megalinter/blob/main/docs/assets/icons/integrations/elastic.png?raw=true" alt="Elastic" height="40" style="height:40px;vertical-align:middle;margin:4px"></a>
  48. </div>
  49. <div align="center">
  50. <a href="https://github.com/oxsecurity/megalinter/tree/main/docs/coding-agents.md"><img src="https://github.com/oxsecurity/megalinter/blob/main/docs/assets/icons/agents/claude.png?raw=true" alt="Claude Code" height="40" style="height:40px;vertical-align:middle;margin:4px"></a>
  51. <a href="https://github.com/oxsecurity/megalinter/tree/main/docs/coding-agents.md"><img src="https://github.com/oxsecurity/megalinter/blob/main/docs/assets/icons/agents/cursor.png?raw=true" alt="Cursor" height="40" style="height:40px;vertical-align:middle;margin:4px"></a>
  52. <a href="https://github.com/oxsecurity/megalinter/tree/main/docs/coding-agents.md"><img src="https://github.com/oxsecurity/megalinter/blob/main/docs/assets/icons/agents/github-copilot.png?raw=true" alt="GitHub Copilot CLI" height="40" style="height:40px;vertical-align:middle;margin:4px"></a>
  53. <a href="https://github.com/oxsecurity/megalinter/tree/main/docs/coding-agents.md"><img src="https://github.com/oxsecurity/megalinter/blob/main/docs/assets/icons/agents/codex.png?raw=true" alt="Codex" height="40" style="height:40px;vertical-align:middle;margin:4px"></a>
  54. <a href="https://github.com/oxsecurity/megalinter/tree/main/docs/coding-agents.md"><img src="https://github.com/oxsecurity/megalinter/blob/main/docs/assets/icons/agents/antigravity.png?raw=true" alt="Antigravity" height="40" style="height:40px;vertical-align:middle;margin:4px"></a>
  55. <a href="https://github.com/oxsecurity/megalinter/tree/main/docs/coding-agents.md"><img src="https://github.com/oxsecurity/megalinter/blob/main/docs/assets/icons/agents/opencode.png?raw=true" alt="OpenCode" height="40" style="height:40px;vertical-align:middle;margin:4px"></a>
  56. <a href="https://github.com/oxsecurity/megalinter/tree/main/docs/coding-agents.md"><img src="https://github.com/oxsecurity/megalinter/blob/main/docs/assets/icons/agents/gemini-cli.png?raw=true" alt="Gemini CLI" height="40" style="height:40px;vertical-align:middle;margin:4px"></a>
  57. <a href="https://github.com/oxsecurity/megalinter/tree/main/docs/coding-agents.md"><img src="https://github.com/oxsecurity/megalinter/blob/main/docs/assets/icons/agents/windsurf.png?raw=true" alt="Windsurf" height="40" style="height:40px;vertical-align:middle;margin:4px"></a>
  58. <a href="https://github.com/oxsecurity/megalinter/tree/main/docs/coding-agents.md"><img src="https://github.com/oxsecurity/megalinter/blob/main/docs/assets/icons/agents/cline.png?raw=true" alt="Cline" height="40" style="height:40px;vertical-align:middle;margin:4px"></a>
  59. <a href="https://github.com/oxsecurity/megalinter/tree/main/docs/coding-agents.md"><img src="https://github.com/oxsecurity/megalinter/blob/main/docs/assets/icons/agents/roo-code.png?raw=true" alt="Roo Code" height="40" style="height:40px;vertical-align:middle;margin:4px"></a>
  60. <a href="https://github.com/oxsecurity/megalinter/tree/main/docs/coding-agents.md"><img src="https://github.com/oxsecurity/megalinter/blob/main/docs/assets/icons/agents/kilo-code.png?raw=true" alt="Kilo Code" height="40" style="height:40px;vertical-align:middle;margin:4px"></a>
  61. <a href="https://github.com/oxsecurity/megalinter/tree/main/docs/coding-agents.md"><img src="https://github.com/oxsecurity/megalinter/blob/main/docs/assets/icons/agents/amp.png?raw=true" alt="Amp" height="40" style="height:40px;vertical-align:middle;margin:4px"></a>
  62. <a href="https://github.com/oxsecurity/megalinter/tree/main/docs/coding-agents.md"><img src="https://github.com/oxsecurity/megalinter/blob/main/docs/assets/icons/agents/goose.png?raw=true" alt="Goose" height="40" style="height:40px;vertical-align:middle;margin:4px"></a>
  63. <a href="https://github.com/oxsecurity/megalinter/tree/main/docs/coding-agents.md"><img src="https://github.com/oxsecurity/megalinter/blob/main/docs/assets/icons/agents/openhands.png?raw=true" alt="OpenHands" height="40" style="height:40px;vertical-align:middle;margin:4px"></a>
  64. <a href="https://github.com/oxsecurity/megalinter/tree/main/docs/coding-agents.md"><img src="https://github.com/oxsecurity/megalinter/blob/main/docs/assets/icons/agents/qwen-code.png?raw=true" alt="Qwen Code" height="40" style="height:40px;vertical-align:middle;margin:4px"></a>
  65. </div>
  66. <!-- welcome-phrase-end -->
  67. ![MegaLinter Presentation GIF](https://github.com/oxsecurity/megalinter/blob/main/docs/assets/images/MegaLinter-banner-Medium.gif?raw=true)
  68. - Use the new [LLM Advisor](https://megalinter.io/latest/llm-advisor/) that will tell you how to fix linters issues
  69. - Create your own [MegaLinter Custom Flavors](https://megalinter.io/latest/custom-flavors/) to improve performance
  70. <!-- online-doc-start -->
  71. Before you go further, see the [**online documentation website, which offers much easier navigation than this README**](https://megalinter.io/)
  72. <!-- online-doc-end -->
  73. <!-- table-of-contents-start -->
  74. ## Table of Contents
  75. - [Why MegaLinter](#why-megalinter)
  76. - [Quick Start](#quick-start)
  77. - [Coding Agents](#coding-agents)
  78. - [Supported Linters](#supported-linters)
  79. - [Languages](#languages)
  80. - [Formats](#formats)
  81. - [Tooling formats](#tooling-formats)
  82. - [Other](#other)
  83. - [Installation](#installation)
  84. - [Coding agents (skills)](#coding-agents-skills)
  85. - [Coding Agents (Plugins)](#coding-agents-plugins)
  86. - [Assisted installation](#assisted-installation)
  87. - [Which version to use ?](#which-version-to-use-)
  88. - [GitHub Action](#github-action)
  89. - [GitLab CI](#gitlab-ci)
  90. - [Azure Pipelines](#azure-pipelines)
  91. - [Single Repository](#single-repository)
  92. - [Central Repository](#central-repository)
  93. - [Pull Request Comments](#pull-request-comments)
  94. - [Detailed Tutorial](#detailed-tutorial)
  95. - [Bitbucket Pipelines](#bitbucket-pipelines)
  96. - [Jenkins](#jenkins)
  97. - [Concourse](#concourse)
  98. - [Pipeline step](#pipeline-step)
  99. - [Use it as a reusable task](#use-it-as-a-reusable-task)
  100. - [Drone CI](#drone-ci)
  101. - [(Optional) Adjusting trigger rules](#optional-adjusting-trigger-rules)
  102. - [Docker container](#docker-container)
  103. - [Run MegaLinter locally](#run-megalinter-locally)
  104. - [Configuration](#configuration)
  105. - [.mega-linter.yml file](#mega-linteryml-file)
  106. - [Common variables](#common-variables)
  107. - [Activation and deactivation](#activation-and-deactivation)
  108. - [Filter linted files](#filter-linted-files)
  109. - [Apply fixes](#apply-fixes)
  110. - [Apply fixes issues](#apply-fixes-issues)
  111. - [Notes](#notes)
  112. - [Linter specific variables](#linter-specific-variables)
  113. - [Pre-commands](#pre-commands)
  114. - [Post-commands](#post-commands)
  115. - [Environment variables security](#environment-variables-security)
  116. - [Secured env variables](#secured-env-variables)
  117. - [Secured configuration examples](#secured-configuration-examples)
  118. - [Default secured variables](#default-secured-variables)
  119. - [Unhide variables for linters](#unhide-variables-for-linters)
  120. - [CLI lint mode](#cli-lint-mode)
  121. - [Reporters](#reporters)
  122. - [Flavors](#flavors)
  123. - [Badge](#badge)
  124. - [Markdown](#markdown)
  125. - [reStructuredText](#restructuredtext)
  126. - [Plugins](#plugins)
  127. - [External Plugins Catalog](#external-plugins-catalog)
  128. - [Use external plugins](#use-external-plugins)
  129. - [Example](#example)
  130. - [Create your own plugin](#create-your-own-plugin)
  131. - [Limitations](#limitations)
  132. - [They talk about MegaLinter](#they-talk-about-megalinter)
  133. - [English articles](#english-articles)
  134. - [French articles](#french-articles)
  135. - [Videos](#videos)
  136. - [Web Sites](#web-sites)
  137. - [Linters](#linters)
  138. - [Frequently Asked Questions](#frequently-asked-questions)
  139. - [How to contribute](#how-to-contribute)
  140. - [Special thanks](#special-thanks)
  141. - [Maintainers](#maintainers)
  142. - [Contributors](#contributors)
  143. - [Open-source teams](#open-source-teams)
  144. - [Super-Linter team](#super-linter-team)
  145. - [License](#license)
  146. - [MegaLinter vs Super-Linter](#megalinter-vs-super-linter)
  147. - [Security](#security)
  148. - [Performance](#performance)
  149. - [More languages and formats linted](#more-languages-and-formats-linted)
  150. - [Automatically apply formatting and fixes](#automatically-apply-formatting-and-fixes)
  151. - [Run locally](#run-locally)
  152. - [Reports](#reports)
  153. - [Capabilities](#capabilities)
  154. - [Additional Reporters](#additional-reporters)
  155. - [Enhanced configuration](#enhanced-configuration)
  156. - [Enhanced documentation](#enhanced-documentation)
  157. - [Plugin management](#plugin-management)
  158. - [Simplify architecture and evolutionary maintenance](#simplify-architecture-and-evolutionary-maintenance)
  159. - [Improve robustness \& stability](#improve-robustness--stability)
  160. <!-- table-of-contents-end -->
  161. ## Why MegaLinter
  162. Projects need to contain clean code in order to **avoid technical debt**, which makes **ongoing maintenance harder and more time-consuming**.
  163. By using [**code formatters and code linters**](#supported-linters), you ensure that your **codebase is easier to read** and **follows best practices**, from kickoff through each step of the project lifecycle.
  164. Not all developers use linters in their IDEs, which makes code reviews harder and longer to process.
  165. By using **MegaLinter**, you'll enjoy the following benefits for your team:
  166. - At **each pull request**, it **automatically analyzes all updated code across all languages**.
  167. - By reading error logs, **developers learn best practices** for the languages they use.
  168. - The [**MegaLinter documentation**](https://megalinter.io/) provides a **list of IDE plugins for each linter**, so developers know which linter and plugins to install.
  169. - MegaLinter **works out of the box** after a [**quick setup**](#quick-start).
  170. - **Formatting and fixes** can be automatically [**applied directly to the Git branch**](https://github.com/oxsecurity/megalinter/tree/main/docs/config-apply-fixes.md) or [**provided in reports**](https://github.com/oxsecurity/megalinter/tree/main/docs/reporters/UpdatedSourcesReporter.md).
  171. - This tool is **100% open source** and **free for all uses** (personal, professional, public, and private repositories).
  172. - MegaLinter can run on [**any CI tool**](https://github.com/oxsecurity/megalinter/tree/main/docs/install-assisted.md) and be [**run locally**](https://megalinter.io/mega-linter-runner/): **no need to authorize an external application**, and **your codebase never leaves your tooling ecosystem**.
  173. Join a **continuously growing community**: MegaLinter Docker images are pulled **hundreds of thousands of times every month**.
  174. [![MegaLinter Docker pulls per month](https://github.com/oxsecurity/megalinter/raw/main/docs/assets/images/docker-pulls-monthly.svg)](https://megalinter.io/latest/flavors-stats/)
  175. <!-- quick-start-section-start -->
  176. <!-- markdown-headers
  177. ---
  178. title: Quick Start with MegaLinter
  179. description: Setup MegaLinter in 5 minutes thanks to its assisted installation tool
  180. ---
  181. -->
  182. ## Quick Start
  183. - **With a coding agent**: install the [MegaLinter agent skills](https://megalinter.io/latest/install-agent-skills/) with `npx skills add oxsecurity/megalinter/skills`, then ask your agent to _"setup megalinter"_.
  184. - **Or with the interactive wizard**: run `npx mega-linter-runner --install` to generate configuration files (you need [Node.js](https://nodejs.org/en/) installed).
  185. - Commit, push, and create a pull request.
  186. - Watch!
  187. ![Runner Install](https://github.com/oxsecurity/megalinter/blob/main/docs/assets/images/mega-linter-runner-generator.gif?raw=true)
  188. **Notes**:
  189. <!-- # MAJOR-RELEASE-IMPACTED -->
  190. - This repo is a hard fork of [GitHub Super-Linter](https://github.com/super-linter/super-linter), rewritten in Python to add [many additional features](#mega-linter-vs-super-linter).
  191. - If you are a Super-Linter user, you can transparently **switch to MegaLinter and keep the same configuration** (just replace `super-linter/super-linter@v3` with `oxsecurity/megalinter@v10` in your GitHub Action YAML file, [like on this PR](https://github.com/nvuillam/npm-groovy-lint/pull/109)).
  192. - If you want to use MegaLinter's extra features (recommended), please take 5 minutes to use the [assisted installation](https://github.com/oxsecurity/megalinter/tree/main/docs/install-assisted.md).
  193. - For a beginner-friendly example of getting started with MegaLinter, check out [this blog post](https://ayyjohn.com/posts/linting-a-jekyll-blog-with-mega-linter) by Alec Johnson.
  194. <!-- quick-start-section-end -->
  195. <!-- coding-agents-section-start -->
  196. <!-- markdown-headers
  197. ---
  198. title: Use MegaLinter with coding agents
  199. description: Setup, run and fix MegaLinter errors from Claude Code, Cursor, GitHub Copilot CLI, Codex, Gemini CLI, Antigravity, OpenCode and other coding agents, with token-efficient sub-agents orchestration
  200. ---
  201. -->
  202. ## Coding Agents
  203. MegaLinter is designed to work hand in hand with your coding agent:
  204. [<img src="https://github.com/oxsecurity/megalinter/blob/main/docs/assets/icons/agents/claude.png?raw=true" alt="Claude Code" height="40" style="height:40px">](https://claude.com/product/claude-code)
  205. [<img src="https://github.com/oxsecurity/megalinter/blob/main/docs/assets/icons/agents/cursor.png?raw=true" alt="Cursor" height="40" style="height:40px">](https://cursor.com)
  206. [<img src="https://github.com/oxsecurity/megalinter/blob/main/docs/assets/icons/agents/github-copilot.png?raw=true" alt="GitHub Copilot CLI" height="40" style="height:40px">](https://github.com/features/copilot)
  207. [<img src="https://github.com/oxsecurity/megalinter/blob/main/docs/assets/icons/agents/codex.png?raw=true" alt="Codex" height="40" style="height:40px">](https://openai.com/codex/)
  208. [<img src="https://github.com/oxsecurity/megalinter/blob/main/docs/assets/icons/agents/antigravity.png?raw=true" alt="Antigravity" height="40" style="height:40px">](https://antigravity.google/)
  209. [<img src="https://github.com/oxsecurity/megalinter/blob/main/docs/assets/icons/agents/opencode.png?raw=true" alt="OpenCode" height="40" style="height:40px">](https://opencode.ai)
  210. [<img src="https://github.com/oxsecurity/megalinter/blob/main/docs/assets/icons/agents/gemini-cli.png?raw=true" alt="Gemini CLI" height="40" style="height:40px">](https://github.com/google-gemini/gemini-cli)
  211. [<img src="https://github.com/oxsecurity/megalinter/blob/main/docs/assets/icons/agents/windsurf.png?raw=true" alt="Windsurf" height="40" style="height:40px">](https://windsurf.com)
  212. [<img src="https://github.com/oxsecurity/megalinter/blob/main/docs/assets/icons/agents/cline.png?raw=true" alt="Cline" height="40" style="height:40px">](https://cline.bot)
  213. [<img src="https://github.com/oxsecurity/megalinter/blob/main/docs/assets/icons/agents/roo-code.png?raw=true" alt="Roo Code" height="40" style="height:40px">](https://roocode.com)
  214. [<img src="https://github.com/oxsecurity/megalinter/blob/main/docs/assets/icons/agents/kilo-code.png?raw=true" alt="Kilo Code" height="40" style="height:40px">](https://kilocode.ai)
  215. [<img src="https://github.com/oxsecurity/megalinter/blob/main/docs/assets/icons/agents/amp.png?raw=true" alt="Amp" height="40" style="height:40px">](https://ampcode.com)
  216. [<img src="https://github.com/oxsecurity/megalinter/blob/main/docs/assets/icons/agents/goose.png?raw=true" alt="Goose" height="40" style="height:40px">](https://block.github.io/goose/)
  217. [<img src="https://github.com/oxsecurity/megalinter/blob/main/docs/assets/icons/agents/openhands.png?raw=true" alt="OpenHands" height="40" style="height:40px">](https://www.all-hands.dev)
  218. [<img src="https://github.com/oxsecurity/megalinter/blob/main/docs/assets/icons/agents/qwen-code.png?raw=true" alt="Qwen Code" height="40" style="height:40px">](https://github.com/QwenLM/qwen-code)
  219. ### Get started
  220. Install the [MegaLinter agent skills](https://github.com/oxsecurity/megalinter/tree/main/skills) at the root of your repository:
  221. With **Claude Code** (the skills are copied directly into `.claude/skills/`):
  222. ```bash
  223. npx skills add oxsecurity/megalinter/skills -s '*' -a claude-code -y
  224. ```
  225. With **another coding agent**, replace `claude-code` with your agent's identifier (`cursor`, `github-copilot`, `codex`, `antigravity`, `opencode`... full list in the [skills CLI documentation](https://github.com/vercel-labs/skills#supported-agents)) โ€” or let the CLI **detect your installed agents** and install the skills for all of them at once:
  226. ```bash
  227. npx skills add oxsecurity/megalinter/skills -s '*' -y --copy
  228. ```
  229. Then just talk to your agent:
  230. - _"Setup MegaLinter on this repo"_
  231. - _"Run MegaLinter and fix the errors"_
  232. - _"Why is the MegaLinter CI job failing? Fix it"_
  233. ### What the skills do
  234. | Skill | Role |
  235. |:---------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------|
  236. | **megalinter** | Entry point: detects the repository state and orchestrates the other skills in a check โ†’ fix โ†’ re-check loop (3 iterations max) |
  237. | **megalinter-setup** | Installs or upgrades MegaLinter using `npx mega-linter-runner --install` (non-interactive), then refines `.mega-linter.yml` |
  238. | **megalinter-check** | Collects errors: watches a MegaLinter CI job (GitHub Actions, GitLab CI, Azure Pipelines, Bitbucket Pipelines) or runs MegaLinter locally with docker/podman |
  239. | **megalinter-fix** | Fixes errors guided by a per-linter fix guide (one for each of the 124 linters, loaded only when its linter has errors), asks you before disabling rules or pushing |
  240. ### Sub-agents orchestration
  241. On agents supporting sub-agents (Claude Code, OpenCode, GitHub Copilot custom agents...), `megalinter-setup` installs three sub-agents that keep large CI logs and linter outputs **out of your main agent's context**, and run on low-cost models when possible:
  242. ```mermaid
  243. flowchart TD
  244. U(["๐Ÿ‘ค You: <i>run megalinter and fix the errors</i>"]) --> O["๐ŸŽฏ megalinter<br/>(orchestrator skill)"]
  245. O -->|"no config found"| S["๐Ÿ› ๏ธ megalinter-setup"]
  246. S -->|"npx mega-linter-runner --install"| CFG[/".mega-linter.yml<br/>+ CI workflow"/]
  247. O --> C["๐Ÿ” megalinter-check"]
  248. C -->|"watch mode"| W[["๐Ÿ‘€ megalinter-watcher<br/>sub-agent, low-cost model"]]
  249. W --> CI[/"CI job logs<br/>GitHub / GitLab / Azure / Bitbucket"/]
  250. C -->|"local mode"| RUN[["๐Ÿณ megalinter-runner<br/>sub-agent, low-cost model"]]
  251. RUN --> IMG[/"MegaLinter Docker image<br/>docker or podman"/]
  252. W --> ERR[/"๐Ÿ“‹ Compact error list<br/>grouped by linter"/]
  253. RUN --> ERR
  254. ERR --> F["๐Ÿ”ง megalinter-fix"]
  255. F -->|"one sub-agent per failing linter,<br/>in parallel"| FX1[["๐Ÿค– megalinter-fixer<br/>+ python_ruff fix guide"]]
  256. F --> FX2[["๐Ÿค– megalinter-fixer<br/>+ markdown_markdownlint fix guide"]]
  257. FX1 --> RES[/"โœ๏ธ Fixed files<br/>+ proposed rule disables"/]
  258. FX2 --> RES
  259. RES -->|"you confirm disables"| RC["โ™ป๏ธ Targeted re-check<br/>parallel standalone linter images"]
  260. RC -->|"errors remain (max 3 loops)"| F
  261. RC -->|"clean"| DONE(["โœ… Commit on a branch<br/>(never on main)"])
  262. classDef user fill:#e8f5e9,stroke:#2e7d32,stroke-width:2px,color:#1b5e20
  263. classDef skill fill:#ede7f6,stroke:#5e35b1,stroke-width:2px,color:#311b92
  264. classDef subagent fill:#e3f2fd,stroke:#1976d2,stroke-width:2px,color:#0d47a1
  265. classDef artifact fill:#fff8e1,stroke:#f9a825,stroke-width:1px,color:#5d4037
  266. classDef recheck fill:#e0f2f1,stroke:#00897b,stroke-width:2px,color:#004d40
  267. class U,DONE user
  268. class O,S,C,F skill
  269. class W,RUN,FX1,FX2 subagent
  270. class CFG,CI,IMG,ERR,RES artifact
  271. class RC recheck
  272. ```
  273. The fix guides combine information generated from the [linter descriptors](https://github.com/oxsecurity/megalinter/tree/main/megalinter/descriptors) (auto-fix support, rules documentation URLs, MegaLinter tuning variables) with curated fix, inline-disable and ignore instructions grounded in each linter's official documentation.
  274. ### Safety rules
  275. - Safe fixes are applied automatically; ambiguous ones are asked to you
  276. - Disabling a linter or a rule always requires your confirmation
  277. - Commits are never pushed to the default branch
  278. See also the [installation page for coding agents](https://megalinter.io/latest/install-agent-skills/), or install everything at once as an [agent plugin](https://megalinter.io/latest/agent-plugins/).
  279. <!-- coding-agents-section-end -->
  280. <!-- supported-linters-section-start -->
  281. <!-- markdown-headers
  282. ---
  283. title: List of the 100+ supported linters embedded in MegaLinter
  284. description: Full list of all linters for all languages and formats that are available in MegaLinter
  285. ---
  286. -->
  287. ## Supported Linters
  288. All linters are integrated into the [MegaLinter Docker image](https://hub.docker.com/r/oxsecurity/megalinter), which is frequently updated with their latest versions.
  289. <!-- languages-section-start-->
  290. <!-- linters-table-start -->
  291. ### Languages
  292. | <!-- --> | Language | Linter | Additional |
  293. |:--------------------------------------------------------------------------------------------------------------------------------------------------------------------:|---------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
  294. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/bash.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**BASH**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/bash.md) | [**bash-exec**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/bash_bash_exec.md)<br/>[_BASH_EXEC_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/bash_bash_exec.md) | |
  295. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/bash.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**BASH**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/bash.md) | [**shellcheck**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/bash_shellcheck.md)<br/>[_BASH_SHELLCHECK_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/bash_shellcheck.md) | [![GitHub stars](https://img.shields.io/github/stars/koalaman/shellcheck?cacheSeconds=3600)](https://github.com/koalaman/shellcheck) ![sarif](https://shields.io/badge/-SARIF-orange) |
  296. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/bash.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**BASH**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/bash.md) | [**shfmt**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/bash_shfmt.md)<br/>[_BASH_SHFMT_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/bash_shfmt.md) | [![GitHub stars](https://img.shields.io/github/stars/mvdan/sh?cacheSeconds=3600)](https://github.com/mvdan/sh) ![formatter](https://shields.io/badge/-format-yellow) |
  297. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/c.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**C**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/c.md) | [**cppcheck**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/c_cppcheck.md)<br/>[_C_CPPCHECK_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/c_cppcheck.md) | ![sarif](https://shields.io/badge/-SARIF-orange) |
  298. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/c.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**C**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/c.md) | [**cpplint**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/c_cpplint.md)<br/>[_C_CPPLINT_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/c_cpplint.md) | [![GitHub stars](https://img.shields.io/github/stars/cpplint/cpplint?cacheSeconds=3600)](https://github.com/cpplint/cpplint) |
  299. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/c.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**C**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/c.md) | [**clang-format**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/c_clang_format.md)<br/>[_C_CLANG_FORMAT_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/c_clang_format.md) | [![GitHub stars](https://img.shields.io/github/stars/llvm/llvm-project?cacheSeconds=3600)](https://github.com/llvm/llvm-project) ![autofix](https://shields.io/badge/-autofix-green) |
  300. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/clojure.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**CLOJURE**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/clojure.md) | [**clj-kondo**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/clojure_clj_kondo.md)<br/>[_CLOJURE_CLJ_KONDO_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/clojure_clj_kondo.md) | [![GitHub stars](https://img.shields.io/github/stars/clj-kondo/clj-kondo?cacheSeconds=3600)](https://github.com/clj-kondo/clj-kondo) ![sarif](https://shields.io/badge/-SARIF-orange) |
  301. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/clojure.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**CLOJURE**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/clojure.md) | [**cljstyle**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/clojure_cljstyle.md)<br/>[_CLOJURE_CLJSTYLE_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/clojure_cljstyle.md) | [![GitHub stars](https://img.shields.io/github/stars/greglook/cljstyle?cacheSeconds=3600)](https://github.com/greglook/cljstyle) ![autofix](https://shields.io/badge/-autofix-green) |
  302. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/coffee.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**COFFEE**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/coffee.md) | <s>[**coffeelint**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/coffee_coffeelint.md)<br/>[_COFFEE_COFFEELINT_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/coffee_coffeelint.md)</s> | <span title="Disabled: CoffeeScript tooling is discontinued, and coffeelint can not honor EXCLUDED_DIRECTORIES (it has no exclusion option and only reads .coffeelintignore from its working directory). The linter will be removed in a future version">๐Ÿšซ</span> [![GitHub stars](https://img.shields.io/github/stars/clutchski/coffeelint?cacheSeconds=3600)](https://github.com/clutchski/coffeelint) |
  303. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/cpp.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**C++** (CPP)](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/cpp.md) | [**cppcheck**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/cpp_cppcheck.md)<br/>[_CPP_CPPCHECK_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/cpp_cppcheck.md) | ![sarif](https://shields.io/badge/-SARIF-orange) |
  304. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/cpp.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**C++** (CPP)](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/cpp.md) | [**cpplint**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/cpp_cpplint.md)<br/>[_CPP_CPPLINT_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/cpp_cpplint.md) | [![GitHub stars](https://img.shields.io/github/stars/cpplint/cpplint?cacheSeconds=3600)](https://github.com/cpplint/cpplint) |
  305. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/cpp.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**C++** (CPP)](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/cpp.md) | [**clang-format**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/cpp_clang_format.md)<br/>[_CPP_CLANG_FORMAT_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/cpp_clang_format.md) | [![GitHub stars](https://img.shields.io/github/stars/llvm/llvm-project?cacheSeconds=3600)](https://github.com/llvm/llvm-project) ![autofix](https://shields.io/badge/-autofix-green) |
  306. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/csharp.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**C#** (CSHARP)](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/csharp.md) | [**dotnet-format**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/csharp_dotnet_format.md)<br/>[_CSHARP_DOTNET_FORMAT_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/csharp_dotnet_format.md) | [![GitHub stars](https://img.shields.io/github/stars/dotnet/sdk?cacheSeconds=3600)](https://github.com/dotnet/sdk) ![formatter](https://shields.io/badge/-format-yellow) |
  307. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/csharp.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**C#** (CSHARP)](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/csharp.md) | [**csharpier**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/csharp_csharpier.md)<br/>[_CSHARP_CSHARPIER_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/csharp_csharpier.md) | [![GitHub stars](https://img.shields.io/github/stars/belav/csharpier?cacheSeconds=3600)](https://github.com/belav/csharpier) ![formatter](https://shields.io/badge/-format-yellow) |
  308. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/csharp.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**C#** (CSHARP)](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/csharp.md) | [**roslynator**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/csharp_roslynator.md)<br/>[_CSHARP_ROSLYNATOR_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/csharp_roslynator.md) | [![GitHub stars](https://img.shields.io/github/stars/dotnet/Roslynator?cacheSeconds=3600)](https://github.com/dotnet/Roslynator) ![formatter](https://shields.io/badge/-format-yellow) |
  309. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/dart.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**DART**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/dart.md) | [**dartanalyzer**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/dart_dartanalyzer.md)<br/>[_DART_DARTANALYZER_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/dart_dartanalyzer.md) | [![GitHub stars](https://img.shields.io/github/stars/dart-lang/sdk?cacheSeconds=3600)](https://github.com/dart-lang/sdk) |
  310. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/go.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**GO**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/go.md) | [**golangci-lint**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/go_golangci_lint.md)<br/>[_GO_GOLANGCI_LINT_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/go_golangci_lint.md) | [![GitHub stars](https://img.shields.io/github/stars/golangci/golangci-lint?cacheSeconds=3600)](https://github.com/golangci/golangci-lint) ![autofix](https://shields.io/badge/-autofix-green) ![sarif](https://shields.io/badge/-SARIF-orange) |
  311. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/go.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**GO**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/go.md) | [**revive**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/go_revive.md)<br/>[_GO_REVIVE_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/go_revive.md) | [![GitHub stars](https://img.shields.io/github/stars/mgechev/revive?cacheSeconds=3600)](https://github.com/mgechev/revive) ![sarif](https://shields.io/badge/-SARIF-orange) |
  312. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/groovy.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**GROOVY**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/groovy.md) | [**npm-groovy-lint**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/groovy_npm_groovy_lint.md)<br/>[_GROOVY_NPM_GROOVY_LINT_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/groovy_npm_groovy_lint.md) | [![GitHub stars](https://img.shields.io/github/stars/nvuillam/npm-groovy-lint?cacheSeconds=3600)](https://github.com/nvuillam/npm-groovy-lint) ![autofix](https://shields.io/badge/-autofix-green) ![sarif](https://shields.io/badge/-SARIF-orange) |
  313. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/java.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**JAVA**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/java.md) | [**checkstyle**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/java_checkstyle.md)<br/>[_JAVA_CHECKSTYLE_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/java_checkstyle.md) | [![GitHub stars](https://img.shields.io/github/stars/checkstyle/checkstyle?cacheSeconds=3600)](https://github.com/checkstyle/checkstyle) ![sarif](https://shields.io/badge/-SARIF-orange) |
  314. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/java.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**JAVA**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/java.md) | [**pmd**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/java_pmd.md)<br/>[_JAVA_PMD_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/java_pmd.md) | [![GitHub stars](https://img.shields.io/github/stars/pmd/pmd?cacheSeconds=3600)](https://github.com/pmd/pmd) ![sarif](https://shields.io/badge/-SARIF-orange) |
  315. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/javascript.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**JAVASCRIPT**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/javascript.md) | [**eslint**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/javascript_eslint.md)<br/>[_JAVASCRIPT_ES_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/javascript_eslint.md) | [![GitHub stars](https://img.shields.io/github/stars/eslint/eslint?cacheSeconds=3600)](https://github.com/eslint/eslint) ![autofix](https://shields.io/badge/-autofix-green) ![sarif](https://shields.io/badge/-SARIF-orange) |
  316. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/javascript.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**JAVASCRIPT**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/javascript.md) | [**standard**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/javascript_standard.md)<br/>[_JAVASCRIPT_STANDARD_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/javascript_standard.md) | [![GitHub stars](https://img.shields.io/github/stars/standard/standard?cacheSeconds=3600)](https://github.com/standard/standard) ![autofix](https://shields.io/badge/-autofix-green) |
  317. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/javascript.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**JAVASCRIPT**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/javascript.md) | [**prettier**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/javascript_prettier.md)<br/>[_JAVASCRIPT_PRETTIER_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/javascript_prettier.md) | [![GitHub stars](https://img.shields.io/github/stars/prettier/prettier?cacheSeconds=3600)](https://github.com/prettier/prettier) ![formatter](https://shields.io/badge/-format-yellow) |
  318. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/javascript.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**JAVASCRIPT**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/javascript.md) | [**biome**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/javascript_biome.md)<br/>[_JAVASCRIPT_BIOME_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/javascript_biome.md) | [![GitHub stars](https://img.shields.io/github/stars/biomejs/biome?cacheSeconds=3600)](https://github.com/biomejs/biome) ![autofix](https://shields.io/badge/-autofix-green) ![sarif](https://shields.io/badge/-SARIF-orange) |
  319. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/jsx.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**JSX**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/jsx.md) | [**eslint**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/jsx_eslint.md)<br/>[_JSX_ESLINT_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/jsx_eslint.md) | [![GitHub stars](https://img.shields.io/github/stars/Rel1cx/eslint-react?cacheSeconds=3600)](https://github.com/Rel1cx/eslint-react) ![autofix](https://shields.io/badge/-autofix-green) ![sarif](https://shields.io/badge/-SARIF-orange) |
  320. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/jsx.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**JSX**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/jsx.md) | [**biome**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/jsx_biome.md)<br/>[_JSX_BIOME_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/jsx_biome.md) | [![GitHub stars](https://img.shields.io/github/stars/biomejs/biome?cacheSeconds=3600)](https://github.com/biomejs/biome) ![autofix](https://shields.io/badge/-autofix-green) ![sarif](https://shields.io/badge/-SARIF-orange) |
  321. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/kotlin.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**KOTLIN**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/kotlin.md) | [**ktlint**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/kotlin_ktlint.md)<br/>[_KOTLIN_KTLINT_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/kotlin_ktlint.md) | [![GitHub stars](https://img.shields.io/github/stars/pinterest/ktlint?cacheSeconds=3600)](https://github.com/pinterest/ktlint) ![autofix](https://shields.io/badge/-autofix-green) ![sarif](https://shields.io/badge/-SARIF-orange) |
  322. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/kotlin.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**KOTLIN**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/kotlin.md) | [**detekt**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/kotlin_detekt.md)<br/>[_KOTLIN_DETEKT_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/kotlin_detekt.md) | [![GitHub stars](https://img.shields.io/github/stars/detekt/detekt?cacheSeconds=3600)](https://github.com/detekt/detekt) ![sarif](https://shields.io/badge/-SARIF-orange) |
  323. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/lua.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**LUA**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/lua.md) | [**luacheck**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/lua_luacheck.md)<br/>[_LUA_LUACHECK_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/lua_luacheck.md) | [![GitHub stars](https://img.shields.io/github/stars/lunarmodules/luacheck?cacheSeconds=3600)](https://github.com/lunarmodules/luacheck) |
  324. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/lua.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**LUA**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/lua.md) | [**stylua**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/lua_stylua.md)<br/>[_LUA_STYLUA_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/lua_stylua.md) | [![GitHub stars](https://img.shields.io/github/stars/JohnnyMorganz/StyLua?cacheSeconds=3600)](https://github.com/JohnnyMorganz/StyLua) |
  325. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/perl.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**PERL**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/perl.md) | [**perlcritic**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/perl_perlcritic.md)<br/>[_PERL_PERLCRITIC_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/perl_perlcritic.md) | [![GitHub stars](https://img.shields.io/github/stars/Perl-Critic/Perl-Critic?cacheSeconds=3600)](https://github.com/Perl-Critic/Perl-Critic) |
  326. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/php.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**PHP**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/php.md) | [**phpcs**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/php_phpcs.md)<br/>[_PHP_PHPCS_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/php_phpcs.md) | [![GitHub stars](https://img.shields.io/github/stars/PHPCSStandards/PHP_CodeSniffer?cacheSeconds=3600)](https://github.com/PHPCSStandards/PHP_CodeSniffer) ![sarif](https://shields.io/badge/-SARIF-orange) |
  327. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/php.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**PHP**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/php.md) | [**phpstan**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/php_phpstan.md)<br/>[_PHP_PHPSTAN_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/php_phpstan.md) | [![GitHub stars](https://img.shields.io/github/stars/phpstan/phpstan?cacheSeconds=3600)](https://github.com/phpstan/phpstan) ![sarif](https://shields.io/badge/-SARIF-orange) |
  328. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/php.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**PHP**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/php.md) | [**psalm**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/php_psalm.md)<br/>[_PHP_PSALM_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/php_psalm.md) | [![GitHub stars](https://img.shields.io/github/stars/vimeo/psalm?cacheSeconds=3600)](https://github.com/vimeo/psalm) ![sarif](https://shields.io/badge/-SARIF-orange) |
  329. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/php.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**PHP**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/php.md) | [**phplint**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/php_phplint.md)<br/>[_PHP_PHPLINT_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/php_phplint.md) | [![GitHub stars](https://img.shields.io/github/stars/overtrue/phplint?cacheSeconds=3600)](https://github.com/overtrue/phplint) ![sarif](https://shields.io/badge/-SARIF-orange) |
  330. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/php.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**PHP**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/php.md) | [**php-cs-fixer**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/php_php_cs_fixer.md)<br/>[_PHP_PHPCSFIXER_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/php_php_cs_fixer.md) | [![GitHub stars](https://img.shields.io/github/stars/PHP-CS-Fixer/PHP-CS-Fixer?cacheSeconds=3600)](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer) |
  331. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/powershell.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**POWERSHELL**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/powershell.md) | [**powershell**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/powershell_powershell.md)<br/>[_POWERSHELL_POWERSHELL_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/powershell_powershell.md) | [![GitHub stars](https://img.shields.io/github/stars/PowerShell/PSScriptAnalyzer?cacheSeconds=3600)](https://github.com/PowerShell/PSScriptAnalyzer) ![autofix](https://shields.io/badge/-autofix-green) |
  332. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/powershell.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**POWERSHELL**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/powershell.md) | [**powershell_formatter**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/powershell_powershell_formatter.md)<br/>[_POWERSHELL_POWERSHELL_FORMATTER_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/powershell_powershell_formatter.md) | [![GitHub stars](https://img.shields.io/github/stars/PowerShell/PSScriptAnalyzer?cacheSeconds=3600)](https://github.com/PowerShell/PSScriptAnalyzer) ![formatter](https://shields.io/badge/-format-yellow) |
  333. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/python.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**PYTHON**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/python.md) | [**pylint**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/python_pylint.md)<br/>[_PYTHON_PYLINT_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/python_pylint.md) | [![GitHub stars](https://img.shields.io/github/stars/pylint-dev/pylint?cacheSeconds=3600)](https://github.com/pylint-dev/pylint) |
  334. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/python.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**PYTHON**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/python.md) | [**black**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/python_black.md)<br/>[_PYTHON_BLACK_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/python_black.md) | [![GitHub stars](https://img.shields.io/github/stars/psf/black?cacheSeconds=3600)](https://github.com/psf/black) ![formatter](https://shields.io/badge/-format-yellow) |
  335. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/python.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**PYTHON**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/python.md) | [**flake8**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/python_flake8.md)<br/>[_PYTHON_FLAKE8_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/python_flake8.md) | [![GitHub stars](https://img.shields.io/github/stars/PyCQA/flake8?cacheSeconds=3600)](https://github.com/PyCQA/flake8) |
  336. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/python.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**PYTHON**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/python.md) | [**isort**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/python_isort.md)<br/>[_PYTHON_ISORT_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/python_isort.md) | [![GitHub stars](https://img.shields.io/github/stars/PyCQA/isort?cacheSeconds=3600)](https://github.com/PyCQA/isort) ![formatter](https://shields.io/badge/-format-yellow) |
  337. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/python.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**PYTHON**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/python.md) | [**bandit**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/python_bandit.md)<br/>[_PYTHON_BANDIT_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/python_bandit.md) | [![GitHub stars](https://img.shields.io/github/stars/PyCQA/bandit?cacheSeconds=3600)](https://github.com/PyCQA/bandit) ![sarif](https://shields.io/badge/-SARIF-orange) |
  338. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/python.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**PYTHON**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/python.md) | [**mypy**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/python_mypy.md)<br/>[_PYTHON_MYPY_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/python_mypy.md) | [![GitHub stars](https://img.shields.io/github/stars/python/mypy?cacheSeconds=3600)](https://github.com/python/mypy) |
  339. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/python.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**PYTHON**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/python.md) | [**nbqa**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/python_nbqa.md)<br/>[_PYTHON_NBQA_MYPY_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/python_nbqa.md) | [![GitHub stars](https://img.shields.io/github/stars/nbQA-dev/nbQA?cacheSeconds=3600)](https://github.com/nbQA-dev/nbQA) |
  340. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/python.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**PYTHON**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/python.md) | [**pyright**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/python_pyright.md)<br/>[_PYTHON_PYRIGHT_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/python_pyright.md) | [![GitHub stars](https://img.shields.io/github/stars/microsoft/pyright?cacheSeconds=3600)](https://github.com/microsoft/pyright) |
  341. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/python.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**PYTHON**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/python.md) | [**ruff**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/python_ruff.md)<br/>[_PYTHON_RUFF_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/python_ruff.md) | [![GitHub stars](https://img.shields.io/github/stars/astral-sh/ruff?cacheSeconds=3600)](https://github.com/astral-sh/ruff) ![autofix](https://shields.io/badge/-autofix-green) ![sarif](https://shields.io/badge/-SARIF-orange) |
  342. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/python.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**PYTHON**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/python.md) | [**ruff-format**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/python_ruff_format.md)<br/>[_PYTHON_RUFF_FORMAT_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/python_ruff_format.md) | [![GitHub stars](https://img.shields.io/github/stars/astral-sh/ruff?cacheSeconds=3600)](https://github.com/astral-sh/ruff) ![formatter](https://shields.io/badge/-format-yellow) |
  343. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/python.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**PYTHON**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/python.md) | [**ty**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/python_ty.md)<br/>[_PYTHON_TY_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/python_ty.md) | [![GitHub stars](https://img.shields.io/github/stars/astral-sh/ty?cacheSeconds=3600)](https://github.com/astral-sh/ty) ![autofix](https://shields.io/badge/-autofix-green) ![sarif](https://shields.io/badge/-SARIF-orange) |
  344. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/r.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**R**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/r.md) | [**lintr**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/r_lintr.md)<br/>[_R_LINTR_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/r_lintr.md) | [![GitHub stars](https://img.shields.io/github/stars/r-lib/lintr?cacheSeconds=3600)](https://github.com/r-lib/lintr) ![sarif](https://shields.io/badge/-SARIF-orange) |
  345. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/raku.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**RAKU**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/raku.md) | [**raku**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/raku_raku.md)<br/>[_RAKU_RAKU_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/raku_raku.md) | [![GitHub stars](https://img.shields.io/github/stars/rakudo/rakudo?cacheSeconds=3600)](https://github.com/rakudo/rakudo) |
  346. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/ruby.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**RUBY**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/ruby.md) | [**rubocop**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/ruby_rubocop.md)<br/>[_RUBY_RUBOCOP_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/ruby_rubocop.md) | [![GitHub stars](https://img.shields.io/github/stars/rubocop-hq/rubocop?cacheSeconds=3600)](https://github.com/rubocop-hq/rubocop) ![autofix](https://shields.io/badge/-autofix-green) |
  347. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/rust.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**RUST**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/rust.md) | [**clippy**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/rust_clippy.md)<br/>[_RUST_CLIPPY_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/rust_clippy.md) | [![GitHub stars](https://img.shields.io/github/stars/rust-lang/rust-clippy?cacheSeconds=3600)](https://github.com/rust-lang/rust-clippy) |
  348. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/salesforce.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**SALESFORCE**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/salesforce.md) | [**code-analyzer-apex**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/salesforce_code_analyzer_apex.md)<br/>[_SALESFORCE_CODE_ANALYZER_APEX_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/salesforce_code_analyzer_apex.md) | [![GitHub stars](https://img.shields.io/github/stars/forcedotcom/code-analyzer?cacheSeconds=3600)](https://github.com/forcedotcom/code-analyzer) ![sarif](https://shields.io/badge/-SARIF-orange) |
  349. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/salesforce.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**SALESFORCE**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/salesforce.md) | [**code-analyzer-apexguru**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/salesforce_code_analyzer_apexguru.md)<br/>[_SALESFORCE_CODE_ANALYZER_APEXGURU_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/salesforce_code_analyzer_apexguru.md) | [![GitHub stars](https://img.shields.io/github/stars/forcedotcom/code-analyzer?cacheSeconds=3600)](https://github.com/forcedotcom/code-analyzer) ![sarif](https://shields.io/badge/-SARIF-orange) |
  350. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/salesforce.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**SALESFORCE**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/salesforce.md) | [**code-analyzer-aura**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/salesforce_code_analyzer_aura.md)<br/>[_SALESFORCE_CODE_ANALYZER_AURA_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/salesforce_code_analyzer_aura.md) | [![GitHub stars](https://img.shields.io/github/stars/forcedotcom/code-analyzer?cacheSeconds=3600)](https://github.com/forcedotcom/code-analyzer) ![sarif](https://shields.io/badge/-SARIF-orange) |
  351. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/salesforce.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**SALESFORCE**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/salesforce.md) | [**code-analyzer-lwc**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/salesforce_code_analyzer_lwc.md)<br/>[_SALESFORCE_CODE_ANALYZER_LWC_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/salesforce_code_analyzer_lwc.md) | [![GitHub stars](https://img.shields.io/github/stars/forcedotcom/code-analyzer?cacheSeconds=3600)](https://github.com/forcedotcom/code-analyzer) ![sarif](https://shields.io/badge/-SARIF-orange) |
  352. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/salesforce.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**SALESFORCE**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/salesforce.md) | [**code-analyzer-flow**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/salesforce_code_analyzer_flow.md)<br/>[_SALESFORCE_CODE_ANALYZER_FLOW_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/salesforce_code_analyzer_flow.md) | [![GitHub stars](https://img.shields.io/github/stars/forcedotcom/code-analyzer?cacheSeconds=3600)](https://github.com/forcedotcom/code-analyzer) ![sarif](https://shields.io/badge/-SARIF-orange) |
  353. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/scala.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**SCALA**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/scala.md) | [**scalafix**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/scala_scalafix.md)<br/>[_SCALA_SCALAFIX_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/scala_scalafix.md) | [![GitHub stars](https://img.shields.io/github/stars/scalacenter/scalafix?cacheSeconds=3600)](https://github.com/scalacenter/scalafix) |
  354. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/sql.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**SQL**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/sql.md) | [**sqlfluff**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/sql_sqlfluff.md)<br/>[_SQL_SQLFLUFF_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/sql_sqlfluff.md) | [![GitHub stars](https://img.shields.io/github/stars/sqlfluff/sqlfluff?cacheSeconds=3600)](https://github.com/sqlfluff/sqlfluff) ![autofix](https://shields.io/badge/-autofix-green) ![sarif](https://shields.io/badge/-SARIF-orange) |
  355. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/swift.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**SWIFT**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/swift.md) | [**swiftlint**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/swift_swiftlint.md)<br/>[_SWIFT_SWIFTLINT_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/swift_swiftlint.md) | [![GitHub stars](https://img.shields.io/github/stars/realm/SwiftLint?cacheSeconds=3600)](https://github.com/realm/SwiftLint) ![autofix](https://shields.io/badge/-autofix-green) ![sarif](https://shields.io/badge/-SARIF-orange) |
  356. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/tsx.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**TSX**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/tsx.md) | [**eslint**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/tsx_eslint.md)<br/>[_TSX_ESLINT_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/tsx_eslint.md) | [![GitHub stars](https://img.shields.io/github/stars/Rel1cx/eslint-react?cacheSeconds=3600)](https://github.com/Rel1cx/eslint-react) ![autofix](https://shields.io/badge/-autofix-green) ![sarif](https://shields.io/badge/-SARIF-orange) |
  357. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/tsx.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**TSX**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/tsx.md) | [**biome**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/tsx_biome.md)<br/>[_TSX_BIOME_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/tsx_biome.md) | [![GitHub stars](https://img.shields.io/github/stars/biomejs/biome?cacheSeconds=3600)](https://github.com/biomejs/biome) ![autofix](https://shields.io/badge/-autofix-green) ![sarif](https://shields.io/badge/-SARIF-orange) |
  358. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/typescript.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**TYPESCRIPT**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/typescript.md) | [**eslint**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/typescript_eslint.md)<br/>[_TYPESCRIPT_ES_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/typescript_eslint.md) | [![GitHub stars](https://img.shields.io/github/stars/typescript-eslint/typescript-eslint?cacheSeconds=3600)](https://github.com/typescript-eslint/typescript-eslint) ![autofix](https://shields.io/badge/-autofix-green) ![sarif](https://shields.io/badge/-SARIF-orange) |
  359. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/typescript.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**TYPESCRIPT**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/typescript.md) | [**ts-standard**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/typescript_ts_standard.md)<br/>[_TYPESCRIPT_STANDARD_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/typescript_ts_standard.md) | [![GitHub stars](https://img.shields.io/github/stars/standard/ts-standard?cacheSeconds=3600)](https://github.com/standard/ts-standard) ![autofix](https://shields.io/badge/-autofix-green) |
  360. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/typescript.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**TYPESCRIPT**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/typescript.md) | [**prettier**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/typescript_prettier.md)<br/>[_TYPESCRIPT_PRETTIER_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/typescript_prettier.md) | [![GitHub stars](https://img.shields.io/github/stars/prettier/prettier?cacheSeconds=3600)](https://github.com/prettier/prettier) ![formatter](https://shields.io/badge/-format-yellow) |
  361. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/typescript.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**TYPESCRIPT**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/typescript.md) | [**biome**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/typescript_biome.md)<br/>[_TYPESCRIPT_BIOME_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/typescript_biome.md) | [![GitHub stars](https://img.shields.io/github/stars/biomejs/biome?cacheSeconds=3600)](https://github.com/biomejs/biome) ![autofix](https://shields.io/badge/-autofix-green) ![sarif](https://shields.io/badge/-SARIF-orange) |
  362. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/vbdotnet.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**Visual Basic .NET** (VBDOTNET)](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/vbdotnet.md) | [**dotnet-format**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/vbdotnet_dotnet_format.md)<br/>[_VBDOTNET_DOTNET_FORMAT_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/vbdotnet_dotnet_format.md) | [![GitHub stars](https://img.shields.io/github/stars/dotnet/sdk?cacheSeconds=3600)](https://github.com/dotnet/sdk) ![formatter](https://shields.io/badge/-format-yellow) |
  363. ### Formats
  364. | <!-- --> | Format | Linter | Additional |
  365. |:------------------------------------------------------------------------------------------------------------------------------------------------------------------:|-------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
  366. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/css.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**CSS**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/css.md) | [**stylelint**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/css_stylelint.md)<br/>[_CSS_STYLELINT_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/css_stylelint.md) | [![GitHub stars](https://img.shields.io/github/stars/stylelint/stylelint?cacheSeconds=3600)](https://github.com/stylelint/stylelint) ![autofix](https://shields.io/badge/-autofix-green) |
  367. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/css.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**CSS**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/css.md) | [**biome**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/css_biome.md)<br/>[_CSS_BIOME_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/css_biome.md) | [![GitHub stars](https://img.shields.io/github/stars/biomejs/biome?cacheSeconds=3600)](https://github.com/biomejs/biome) ![autofix](https://shields.io/badge/-autofix-green) ![sarif](https://shields.io/badge/-SARIF-orange) |
  368. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/env.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**ENV**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/env.md) | [**dotenv-linter**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/env_dotenv_linter.md)<br/>[_ENV_DOTENV_LINTER_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/env_dotenv_linter.md) | [![GitHub stars](https://img.shields.io/github/stars/dotenv-linter/dotenv-linter?cacheSeconds=3600)](https://github.com/dotenv-linter/dotenv-linter) ![autofix](https://shields.io/badge/-autofix-green) |
  369. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/graphql.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**GRAPHQL**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/graphql.md) | <s>[**graphql-schema-linter**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/graphql_graphql_schema_linter.md)<br/>[_GRAPHQL_GRAPHQL_SCHEMA_LINTER_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/graphql_graphql_schema_linter.md)</s> | <span title="Disabled: graphql-schema-linter is unmaintained (no release or commit since May 2022) and its peer dependency range pins graphql to ^15 or ^16, which blocks the whole GraphQL npm install from moving to graphql v17. Use GRAPHQL_BIOME to lint GraphQL files. The linter will be removed in a future version">๐Ÿšซ</span> [![GitHub stars](https://img.shields.io/github/stars/cjoudrey/graphql-schema-linter?cacheSeconds=3600)](https://github.com/cjoudrey/graphql-schema-linter) |
  370. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/graphql.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**GRAPHQL**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/graphql.md) | [**biome**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/graphql_biome.md)<br/>[_GRAPHQL_BIOME_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/graphql_biome.md) | [![GitHub stars](https://img.shields.io/github/stars/biomejs/biome?cacheSeconds=3600)](https://github.com/biomejs/biome) ![autofix](https://shields.io/badge/-autofix-green) ![sarif](https://shields.io/badge/-SARIF-orange) |
  371. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/html.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**HTML**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/html.md) | [**djlint**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/html_djlint.md)<br/>[_HTML_DJLINT_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/html_djlint.md) | [![GitHub stars](https://img.shields.io/github/stars/djlint/djLint?cacheSeconds=3600)](https://github.com/djlint/djLint) |
  372. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/html.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**HTML**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/html.md) | [**htmlhint**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/html_htmlhint.md)<br/>[_HTML_HTMLHINT_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/html_htmlhint.md) | [![GitHub stars](https://img.shields.io/github/stars/htmlhint/HTMLHint?cacheSeconds=3600)](https://github.com/htmlhint/HTMLHint) ![sarif](https://shields.io/badge/-SARIF-orange) |
  373. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/json.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**JSON**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/json.md) | [**jsonlint**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/json_jsonlint.md)<br/>[_JSON_JSONLINT_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/json_jsonlint.md) | [![GitHub stars](https://img.shields.io/github/stars/prantlf/jsonlint?cacheSeconds=3600)](https://github.com/prantlf/jsonlint) |
  374. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/json.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**JSON**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/json.md) | [**v8r**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/json_v8r.md)<br/>[_JSON_V8R_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/json_v8r.md) | [![GitHub stars](https://img.shields.io/github/stars/chris48s/v8r?cacheSeconds=3600)](https://github.com/chris48s/v8r) |
  375. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/json.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**JSON**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/json.md) | [**prettier**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/json_prettier.md)<br/>[_JSON_PRETTIER_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/json_prettier.md) | [![GitHub stars](https://img.shields.io/github/stars/prettier/prettier?cacheSeconds=3600)](https://github.com/prettier/prettier) ![formatter](https://shields.io/badge/-format-yellow) |
  376. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/json.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**JSON**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/json.md) | [**npm-package-json-lint**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/json_npm_package_json_lint.md)<br/>[_JSON_NPM_PACKAGE_JSON_LINT_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/json_npm_package_json_lint.md) | [![GitHub stars](https://img.shields.io/github/stars/tclindner/npm-package-json-lint?cacheSeconds=3600)](https://github.com/tclindner/npm-package-json-lint) |
  377. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/json.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**JSON**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/json.md) | [**biome**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/json_biome.md)<br/>[_JSON_BIOME_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/json_biome.md) | [![GitHub stars](https://img.shields.io/github/stars/biomejs/biome?cacheSeconds=3600)](https://github.com/biomejs/biome) ![autofix](https://shields.io/badge/-autofix-green) ![sarif](https://shields.io/badge/-SARIF-orange) |
  378. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/latex.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**LATEX**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/latex.md) | [**chktex**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/latex_chktex.md)<br/>[_LATEX_CHKTEX_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/latex_chktex.md) | |
  379. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/markdown.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**MARKDOWN**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/markdown.md) | [**markdownlint**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/markdown_markdownlint.md)<br/>[_MARKDOWN_MARKDOWNLINT_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/markdown_markdownlint.md) | [![GitHub stars](https://img.shields.io/github/stars/DavidAnson/markdownlint?cacheSeconds=3600)](https://github.com/DavidAnson/markdownlint) ![formatter](https://shields.io/badge/-format-yellow) |
  380. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/markdown.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**MARKDOWN**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/markdown.md) | [**markdown-table-formatter**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/markdown_markdown_table_formatter.md)<br/>[_MARKDOWN_MARKDOWN_TABLE_FORMATTER_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/markdown_markdown_table_formatter.md) | [![GitHub stars](https://img.shields.io/github/stars/nvuillam/markdown-table-formatter?cacheSeconds=3600)](https://github.com/nvuillam/markdown-table-formatter) ![formatter](https://shields.io/badge/-format-yellow) |
  381. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/markdown.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**MARKDOWN**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/markdown.md) | [**rumdl**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/markdown_rumdl.md)<br/>[_MARKDOWN_RUMDL_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/markdown_rumdl.md) | [![GitHub stars](https://img.shields.io/github/stars/rvben/rumdl?cacheSeconds=3600)](https://github.com/rvben/rumdl) ![formatter](https://shields.io/badge/-format-yellow) ![sarif](https://shields.io/badge/-SARIF-orange) |
  382. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/protobuf.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**PROTOBUF**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/protobuf.md) | [**protolint**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/protobuf_protolint.md)<br/>[_PROTOBUF_PROTOLINT_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/protobuf_protolint.md) | [![GitHub stars](https://img.shields.io/github/stars/yoheimuta/protolint?cacheSeconds=3600)](https://github.com/yoheimuta/protolint) ![autofix](https://shields.io/badge/-autofix-green) ![sarif](https://shields.io/badge/-SARIF-orange) |
  383. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/rst.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**RST**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/rst.md) | [**rst-lint**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/rst_rst_lint.md)<br/>[_RST_RST_LINT_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/rst_rst_lint.md) | [![GitHub stars](https://img.shields.io/github/stars/twolfson/restructuredtext-lint?cacheSeconds=3600)](https://github.com/twolfson/restructuredtext-lint) |
  384. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/rst.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**RST**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/rst.md) | [**rstcheck**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/rst_rstcheck.md)<br/>[_RST_RSTCHECK_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/rst_rstcheck.md) | [![GitHub stars](https://img.shields.io/github/stars/myint/rstcheck?cacheSeconds=3600)](https://github.com/myint/rstcheck) |
  385. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/rst.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**RST**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/rst.md) | [**rstfmt**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/rst_rstfmt.md)<br/>[_RST_RSTFMT_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/rst_rstfmt.md) | ![formatter](https://shields.io/badge/-format-yellow) |
  386. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/xml.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**XML**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/xml.md) | [**xmllint**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/xml_xmllint.md)<br/>[_XML_XMLLINT_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/xml_xmllint.md) | ![autofix](https://shields.io/badge/-autofix-green) |
  387. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/yaml.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**YAML**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/yaml.md) | [**prettier**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/yaml_prettier.md)<br/>[_YAML_PRETTIER_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/yaml_prettier.md) | [![GitHub stars](https://img.shields.io/github/stars/prettier/prettier?cacheSeconds=3600)](https://github.com/prettier/prettier) ![formatter](https://shields.io/badge/-format-yellow) |
  388. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/yaml.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**YAML**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/yaml.md) | [**yamllint**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/yaml_yamllint.md)<br/>[_YAML_YAMLLINT_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/yaml_yamllint.md) | [![GitHub stars](https://img.shields.io/github/stars/adrienverge/yamllint?cacheSeconds=3600)](https://github.com/adrienverge/yamllint) |
  389. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/yaml.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**YAML**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/yaml.md) | [**v8r**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/yaml_v8r.md)<br/>[_YAML_V8R_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/yaml_v8r.md) | [![GitHub stars](https://img.shields.io/github/stars/chris48s/v8r?cacheSeconds=3600)](https://github.com/chris48s/v8r) |
  390. ### Tooling formats
  391. | <!-- --> | Tooling format | Linter | Additional |
  392. |:------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|-------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
  393. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/default.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**ACTION**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/action.md) | [**actionlint**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/action_actionlint.md)<br/>[_ACTION_ACTIONLINT_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/action_actionlint.md) | [![GitHub stars](https://img.shields.io/github/stars/rhysd/actionlint?cacheSeconds=3600)](https://github.com/rhysd/actionlint) |
  394. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/default.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**ACTION**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/action.md) | [**zizmor**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/action_zizmor.md)<br/>[_ACTION_ZIZMOR_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/action_zizmor.md) | [![GitHub stars](https://img.shields.io/github/stars/zizmorcore/zizmor?cacheSeconds=3600)](https://github.com/zizmorcore/zizmor) ![autofix](https://shields.io/badge/-autofix-green) ![sarif](https://shields.io/badge/-SARIF-orange) |
  395. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/ansible.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**ANSIBLE**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/ansible.md) | [**ansible-lint**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/ansible_ansible_lint.md)<br/>[_ANSIBLE_ANSIBLE_LINT_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/ansible_ansible_lint.md) | [![GitHub stars](https://img.shields.io/github/stars/ansible/ansible-lint?cacheSeconds=3600)](https://github.com/ansible/ansible-lint) ![sarif](https://shields.io/badge/-SARIF-orange) |
  396. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/default.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**API**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/api.md) | [**spectral**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/api_spectral.md)<br/>[_API_SPECTRAL_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/api_spectral.md) | [![GitHub stars](https://img.shields.io/github/stars/stoplightio/spectral?cacheSeconds=3600)](https://github.com/stoplightio/spectral) ![sarif](https://shields.io/badge/-SARIF-orange) |
  397. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/arm.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**ARM**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/arm.md) | [**arm-ttk**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/arm_arm_ttk.md)<br/>[_ARM_ARM_TTK_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/arm_arm_ttk.md) | [![GitHub stars](https://img.shields.io/github/stars/Azure/arm-ttk?cacheSeconds=3600)](https://github.com/Azure/arm-ttk) |
  398. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/default.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**BICEP**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/bicep.md) | [**bicep_linter**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/bicep_bicep_linter.md)<br/>[_BICEP_BICEP_LINTER_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/bicep_bicep_linter.md) | [![GitHub stars](https://img.shields.io/github/stars/Azure/bicep?cacheSeconds=3600)](https://github.com/Azure/bicep) ![sarif](https://shields.io/badge/-SARIF-orange) |
  399. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/cloudformation.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**CLOUDFORMATION**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/cloudformation.md) | [**cfn-lint**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/cloudformation_cfn_lint.md)<br/>[_CLOUDFORMATION_CFN_LINT_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/cloudformation_cfn_lint.md) | [![GitHub stars](https://img.shields.io/github/stars/aws-cloudformation/cfn-lint?cacheSeconds=3600)](https://github.com/aws-cloudformation/cfn-lint) ![sarif](https://shields.io/badge/-SARIF-orange) |
  400. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/dockerfile.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**DOCKERFILE**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/dockerfile.md) | [**hadolint**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/dockerfile_hadolint.md)<br/>[_DOCKERFILE_HADOLINT_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/dockerfile_hadolint.md) | [![GitHub stars](https://img.shields.io/github/stars/hadolint/hadolint?cacheSeconds=3600)](https://github.com/hadolint/hadolint) ![sarif](https://shields.io/badge/-SARIF-orange) |
  401. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/editorconfig.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**EDITORCONFIG**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/editorconfig.md) | [**editorconfig-checker**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/editorconfig_editorconfig_checker.md)<br/>[_EDITORCONFIG_EDITORCONFIG_CHECKER_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/editorconfig_editorconfig_checker.md) | [![GitHub stars](https://img.shields.io/github/stars/editorconfig-checker/editorconfig-checker?cacheSeconds=3600)](https://github.com/editorconfig-checker/editorconfig-checker) |
  402. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/gherkin.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**GHERKIN**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/gherkin.md) | [**gherkin-lint**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/gherkin_gherkin_lint.md)<br/>[_GHERKIN_GHERKIN_LINT_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/gherkin_gherkin_lint.md) | [![GitHub stars](https://img.shields.io/github/stars/gherkin-lint/gherkin-lint?cacheSeconds=3600)](https://github.com/gherkin-lint/gherkin-lint) |
  403. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/kubernetes.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**KUBERNETES**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/kubernetes.md) | [**kubeconform**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/kubernetes_kubeconform.md)<br/>[_KUBERNETES_KUBECONFORM_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/kubernetes_kubeconform.md) | [![GitHub stars](https://img.shields.io/github/stars/yannh/kubeconform?cacheSeconds=3600)](https://github.com/yannh/kubeconform) |
  404. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/kubernetes.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**KUBERNETES**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/kubernetes.md) | [**helm**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/kubernetes_helm.md)<br/>[_KUBERNETES_HELM_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/kubernetes_helm.md) | [![GitHub stars](https://img.shields.io/github/stars/helm/helm?cacheSeconds=3600)](https://github.com/helm/helm) |
  405. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/kubernetes.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**KUBERNETES**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/kubernetes.md) | [**kubescape**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/kubernetes_kubescape.md)<br/>[_KUBERNETES_KUBESCAPE_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/kubernetes_kubescape.md) | [![GitHub stars](https://img.shields.io/github/stars/kubescape/kubescape?cacheSeconds=3600)](https://github.com/kubescape/kubescape) ![sarif](https://shields.io/badge/-SARIF-orange) |
  406. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/default.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**ROBOTFRAMEWORK**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/robotframework.md) | [**robocop**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/robotframework_robocop.md)<br/>[_ROBOTFRAMEWORK_ROBOCOP_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/robotframework_robocop.md) | [![GitHub stars](https://img.shields.io/github/stars/MarketSquare/robotframework-robocop?cacheSeconds=3600)](https://github.com/MarketSquare/robotframework-robocop) ![autofix](https://shields.io/badge/-autofix-green) ![sarif](https://shields.io/badge/-SARIF-orange) |
  407. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/snakemake.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**SNAKEMAKE**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/snakemake.md) | [**snakemake**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/snakemake_snakemake.md)<br/>[_SNAKEMAKE_LINT_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/snakemake_snakemake.md) | [![GitHub stars](https://img.shields.io/github/stars/snakemake/snakemake?cacheSeconds=3600)](https://github.com/snakemake/snakemake) |
  408. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/snakemake.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**SNAKEMAKE**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/snakemake.md) | [**snakefmt**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/snakemake_snakefmt.md)<br/>[_SNAKEMAKE_SNAKEFMT_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/snakemake_snakefmt.md) | [![GitHub stars](https://img.shields.io/github/stars/snakemake/snakefmt?cacheSeconds=3600)](https://github.com/snakemake/snakefmt) ![formatter](https://shields.io/badge/-format-yellow) |
  409. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/tekton.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**TEKTON**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/tekton.md) | [**tekton-lint**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/tekton_tekton_lint.md)<br/>[_TEKTON_TEKTON_LINT_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/tekton_tekton_lint.md) | [![GitHub stars](https://img.shields.io/github/stars/IBM/tekton-lint?cacheSeconds=3600)](https://github.com/IBM/tekton-lint) |
  410. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/terraform.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**TERRAFORM**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/terraform.md) | [**tflint**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/terraform_tflint.md)<br/>[_TERRAFORM_TFLINT_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/terraform_tflint.md) | [![GitHub stars](https://img.shields.io/github/stars/terraform-linters/tflint?cacheSeconds=3600)](https://github.com/terraform-linters/tflint) ![sarif](https://shields.io/badge/-SARIF-orange) |
  411. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/terraform.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**TERRAFORM**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/terraform.md) | [**terragrunt**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/terraform_terragrunt.md)<br/>[_TERRAFORM_TERRAGRUNT_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/terraform_terragrunt.md) | [![GitHub stars](https://img.shields.io/github/stars/gruntwork-io/terragrunt?cacheSeconds=3600)](https://github.com/gruntwork-io/terragrunt) ![autofix](https://shields.io/badge/-autofix-green) |
  412. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/terraform.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**TERRAFORM**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/terraform.md) | [**terraform-fmt**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/terraform_terraform_fmt.md)<br/>[_TERRAFORM_TERRAFORM_FMT_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/terraform_terraform_fmt.md) | [![GitHub stars](https://img.shields.io/github/stars/hashicorp/terraform?cacheSeconds=3600)](https://github.com/hashicorp/terraform) ![formatter](https://shields.io/badge/-format-yellow) |
  413. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/terraform.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**TERRAFORM**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/terraform.md) | [**tofu-fmt**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/terraform_tofu_fmt.md)<br/>[_TERRAFORM_TOFU_FMT_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/terraform_tofu_fmt.md) | [![GitHub stars](https://img.shields.io/github/stars/opentofu/opentofu?cacheSeconds=3600)](https://github.com/opentofu/opentofu) ![formatter](https://shields.io/badge/-format-yellow) |
  414. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/terraform.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**TERRAFORM**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/terraform.md) | [**tofu-validate**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/terraform_tofu_validate.md)<br/>[_TERRAFORM_TOFU_VALIDATE_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/terraform_tofu_validate.md) | [![GitHub stars](https://img.shields.io/github/stars/opentofu/opentofu?cacheSeconds=3600)](https://github.com/opentofu/opentofu) |
  415. ### Other
  416. | <!-- --> | Code quality checker | Linter | Additional |
  417. |:-------------------------------------------------------------------------------------------------------------------------------------------------------------------:|-----------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
  418. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/copypaste.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**COPYPASTE**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/copypaste.md) | [**jscpd**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/copypaste_jscpd.md)<br/>[_COPYPASTE_JSCPD_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/copypaste_jscpd.md) | [![GitHub stars](https://img.shields.io/github/stars/kucherenko/jscpd?cacheSeconds=3600)](https://github.com/kucherenko/jscpd) ![sarif](https://shields.io/badge/-SARIF-orange) |
  419. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/default.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**REPOSITORY**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/repository.md) | [**checkov**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/repository_checkov.md)<br/>[_REPOSITORY_CHECKOV_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/repository_checkov.md) | [![GitHub stars](https://img.shields.io/github/stars/bridgecrewio/checkov?cacheSeconds=3600)](https://github.com/bridgecrewio/checkov) ![sarif](https://shields.io/badge/-SARIF-orange) |
  420. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/default.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**REPOSITORY**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/repository.md) | [**devskim**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/repository_devskim.md)<br/>[_REPOSITORY_DEVSKIM_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/repository_devskim.md) | [![GitHub stars](https://img.shields.io/github/stars/microsoft/DevSkim?cacheSeconds=3600)](https://github.com/microsoft/DevSkim) ![sarif](https://shields.io/badge/-SARIF-orange) |
  421. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/default.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**REPOSITORY**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/repository.md) | [**dustilock**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/repository_dustilock.md)<br/>[_REPOSITORY_DUSTILOCK_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/repository_dustilock.md) | [![GitHub stars](https://img.shields.io/github/stars/Checkmarx/dustilock?cacheSeconds=3600)](https://github.com/Checkmarx/dustilock) ![sarif](https://shields.io/badge/-SARIF-orange) |
  422. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/default.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**REPOSITORY**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/repository.md) | [**git_diff**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/repository_git_diff.md)<br/>[_REPOSITORY_GIT_DIFF_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/repository_git_diff.md) | [![GitHub stars](https://img.shields.io/github/stars/git/git?cacheSeconds=3600)](https://github.com/git/git) |
  423. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/default.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**REPOSITORY**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/repository.md) | [**betterleaks**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/repository_betterleaks.md)<br/>[_REPOSITORY_BETTERLEAKS_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/repository_betterleaks.md) | [![GitHub stars](https://img.shields.io/github/stars/betterleaks/betterleaks?cacheSeconds=3600)](https://github.com/betterleaks/betterleaks) ![sarif](https://shields.io/badge/-SARIF-orange) |
  424. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/default.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**REPOSITORY**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/repository.md) | [**grype**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/repository_grype.md)<br/>[_REPOSITORY_GRYPE_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/repository_grype.md) | [![GitHub stars](https://img.shields.io/github/stars/anchore/grype?cacheSeconds=3600)](https://github.com/anchore/grype) ![sarif](https://shields.io/badge/-SARIF-orange) |
  425. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/default.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**REPOSITORY**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/repository.md) | [**ls-lint**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/repository_ls_lint.md)<br/>[_REPOSITORY_LS_LINT_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/repository_ls_lint.md) | [![GitHub stars](https://img.shields.io/github/stars/loeffel-io/ls-lint?cacheSeconds=3600)](https://github.com/loeffel-io/ls-lint) |
  426. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/default.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**REPOSITORY**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/repository.md) | [**osv-scanner**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/repository_osv_scanner.md)<br/>[_REPOSITORY_OSV_SCANNER_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/repository_osv_scanner.md) | [![GitHub stars](https://img.shields.io/github/stars/google/osv-scanner?cacheSeconds=3600)](https://github.com/google/osv-scanner) ![sarif](https://shields.io/badge/-SARIF-orange) |
  427. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/default.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**REPOSITORY**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/repository.md) | [**secretlint**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/repository_secretlint.md)<br/>[_REPOSITORY_SECRETLINT_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/repository_secretlint.md) | [![GitHub stars](https://img.shields.io/github/stars/secretlint/secretlint?cacheSeconds=3600)](https://github.com/secretlint/secretlint) ![sarif](https://shields.io/badge/-SARIF-orange) |
  428. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/default.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**REPOSITORY**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/repository.md) | [**semgrep**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/repository_semgrep.md)<br/>[_REPOSITORY_SEMGREP_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/repository_semgrep.md) | [![GitHub stars](https://img.shields.io/github/stars/returntocorp/semgrep?cacheSeconds=3600)](https://github.com/returntocorp/semgrep) ![sarif](https://shields.io/badge/-SARIF-orange) |
  429. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/default.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**REPOSITORY**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/repository.md) | [**syft**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/repository_syft.md)<br/>[_REPOSITORY_SYFT_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/repository_syft.md) | [![GitHub stars](https://img.shields.io/github/stars/anchore/syft?cacheSeconds=3600)](https://github.com/anchore/syft) ![sarif](https://shields.io/badge/-SARIF-orange) |
  430. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/default.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**REPOSITORY**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/repository.md) | [**trivy**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/repository_trivy.md)<br/>[_REPOSITORY_TRIVY_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/repository_trivy.md) | [![GitHub stars](https://img.shields.io/github/stars/aquasecurity/trivy?cacheSeconds=3600)](https://github.com/aquasecurity/trivy) ![sarif](https://shields.io/badge/-SARIF-orange) |
  431. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/default.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**REPOSITORY**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/repository.md) | [**trivy-sbom**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/repository_trivy_sbom.md)<br/>[_REPOSITORY_TRIVY_SBOM_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/repository_trivy_sbom.md) | [![GitHub stars](https://img.shields.io/github/stars/aquasecurity/trivy?cacheSeconds=3600)](https://github.com/aquasecurity/trivy) ![sarif](https://shields.io/badge/-SARIF-orange) |
  432. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/default.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**REPOSITORY**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/repository.md) | [**trufflehog**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/repository_trufflehog.md)<br/>[_REPOSITORY_TRUFFLEHOG_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/repository_trufflehog.md) | [![GitHub stars](https://img.shields.io/github/stars/trufflesecurity/trufflehog?cacheSeconds=3600)](https://github.com/trufflesecurity/trufflehog) |
  433. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/default.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**REPOSITORY**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/repository.md) | [**kingfisher**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/repository_kingfisher.md)<br/>[_REPOSITORY_KINGFISHER_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/repository_kingfisher.md) | [![GitHub stars](https://img.shields.io/github/stars/mongodb/kingfisher?cacheSeconds=3600)](https://github.com/mongodb/kingfisher) ![sarif](https://shields.io/badge/-SARIF-orange) |
  434. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/spell.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**SPELL**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/spell.md) | [**cspell**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/spell_cspell.md)<br/>[_SPELL_CSPELL_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/spell_cspell.md) | [![GitHub stars](https://img.shields.io/github/stars/streetsidesoftware/cspell?cacheSeconds=3600)](https://github.com/streetsidesoftware/cspell) |
  435. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/spell.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**SPELL**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/spell.md) | [**proselint**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/spell_proselint.md)<br/>[_SPELL_PROSELINT_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/spell_proselint.md) | [![GitHub stars](https://img.shields.io/github/stars/amperser/proselint?cacheSeconds=3600)](https://github.com/amperser/proselint) |
  436. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/spell.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**SPELL**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/spell.md) | [**vale**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/spell_vale.md)<br/>[_SPELL_VALE_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/spell_vale.md) | [![GitHub stars](https://img.shields.io/github/stars/errata-ai/vale?cacheSeconds=3600)](https://github.com/errata-ai/vale) |
  437. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/spell.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**SPELL**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/spell.md) | [**lychee**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/spell_lychee.md)<br/>[_SPELL_LYCHEE_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/spell_lychee.md) | [![GitHub stars](https://img.shields.io/github/stars/lycheeverse/lychee?cacheSeconds=3600)](https://github.com/lycheeverse/lychee) |
  438. | <img src="https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/spell.ico" alt="" height="32px" class="megalinter-icon"></a> <!-- linter-icon --> | [**SPELL**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/spell.md) | [**codespell**](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/spell_codespell.md)<br/>[_SPELL_CODESPELL_](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/spell_codespell.md) | [![GitHub stars](https://img.shields.io/github/stars/codespell-project/codespell?cacheSeconds=3600)](https://github.com/codespell-project/codespell) ![autofix](https://shields.io/badge/-autofix-green) |
  439. <!-- linters-table-end -->
  440. <!-- supported-linters-section-end -->
  441. <!-- installation-section-start -->
  442. <!-- markdown-headers
  443. ---
  444. title: MegaLinter Installation Guide
  445. description: How to install MegaLinter on Github Actions, Gitlab CI, Azure Pipelines, Jenkins, Concourse, Drone CI or to run locally
  446. ---
  447. -->
  448. ## Installation
  449. <!-- install-agent-skills-section-start -->
  450. <!-- markdown-headers
  451. ---
  452. title: Install and use MegaLinter with coding agents
  453. description: Setup and drive MegaLinter from Claude Code, Cursor, GitHub Copilot CLI, Codex, OpenCode and other coding agents thanks to MegaLinter agent skills
  454. ---
  455. -->
  456. ### Coding agents (skills)
  457. MegaLinter ships [**agent skills**](https://github.com/oxsecurity/megalinter/tree/main/skills) making it easy to drive from coding agents like **Claude Code, Cursor CLI, GitHub Copilot CLI, Codex, Antigravity or OpenCode**:
  458. With **Claude Code** (the skills are copied directly into `.claude/skills/`):
  459. ```bash
  460. npx skills add oxsecurity/megalinter/skills -s '*' -a claude-code -y
  461. ```
  462. With **another coding agent**, replace `claude-code` with your agent's identifier (`cursor`, `github-copilot`, `codex`, `antigravity`, `opencode`... full list in the [skills CLI documentation](https://github.com/vercel-labs/skills#supported-agents)) โ€” or let the CLI **detect your installed agents** and install the skills for all of them at once:
  463. ```bash
  464. npx skills add oxsecurity/megalinter/skills -s '*' -y --copy
  465. ```
  466. Then just ask your agent to _"setup megalinter"_ or _"run megalinter and fix the errors"_. The skills handle:
  467. - **megalinter-setup**: install or upgrade MegaLinter on the repository (non-interactive `npx mega-linter-runner --install`)
  468. - **megalinter-check**: watch MegaLinter CI jobs (GitHub Actions, GitLab CI, Azure Pipelines, Bitbucket Pipelines) or run locally with Docker
  469. - **megalinter-fix**: apply fixes guided by per-linter fix guides, with user confirmation before disabling anything or pushing
  470. - **megalinter**: orchestrate the whole check โ†’ fix โ†’ re-check loop
  471. On coding agents supporting sub-agents (Claude Code, OpenCode, GitHub Copilot custom agents...), dedicated MegaLinter sub-agents (running on low-cost models) watch CI jobs and digest linter outputs to keep large logs out of your agent's context, and fix several linters in parallel.
  472. <!-- install-agent-skills-section-end -->
  473. <!-- agent-plugins-section-start -->
  474. <!-- markdown-headers
  475. ---
  476. title: Install MegaLinter agent plugins
  477. description: Install the MegaLinter skills and sub-agents as a native plugin on Claude Code, Cursor, GitHub Copilot, Codex, Gemini CLI and Antigravity
  478. ---
  479. -->
  480. ## Coding Agents (Plugins)
  481. The MegaLinter [agent skills](https://megalinter.io/latest/install-agent-skills/) are also published as an **agent plugin**, so a single command installs all four skills at once, and keeps them updated.
  482. ### Claude Code
  483. ```bash
  484. /plugin marketplace add oxsecurity/megalinter
  485. /plugin install megalinter@megalinter
  486. ```
  487. The three MegaLinter sub-agents are installed with the plugin, so there is nothing else to set up.
  488. ### Cursor
  489. Add `https://github.com/oxsecurity/megalinter` as a plugin source from **Customize โ†’ Plugins**, then install **MegaLinter**. The sub-agents ship with the plugin.
  490. ### GitHub Copilot
  491. ```bash
  492. copilot plugin marketplace add oxsecurity/megalinter
  493. copilot plugin install megalinter@megalinter
  494. ```
  495. ### Codex
  496. ```bash
  497. codex plugin marketplace add oxsecurity/megalinter
  498. ```
  499. Then install **MegaLinter** from the `/plugins` browser.
  500. ### Gemini CLI and Antigravity
  501. ```bash
  502. gemini extensions install https://github.com/oxsecurity/megalinter
  503. ```
  504. ### Other coding agents
  505. Every other agent (Windsurf, Cline, Roo Code, Amp, OpenCode, Goose, OpenHands...) is covered by the [skills installation](https://megalinter.io/latest/install-agent-skills/) with `npx skills add oxsecurity/megalinter/skills`.
  506. Once installed, just ask your agent to _"setup megalinter"_ or _"run megalinter and fix the errors"_.
  507. <!-- agent-plugins-section-end -->
  508. <!-- install-assisted-section-start -->
  509. <!-- markdown-headers
  510. ---
  511. title: Install mega-linter with automated setup
  512. description: Setup MegaLinter in 5 minutes thanks to its assisted installation tool
  513. ---
  514. -->
  515. ### Assisted installation
  516. Two assisted ways to setup MegaLinter on your repository:
  517. - **With a coding agent**: install the [MegaLinter agent skills](https://megalinter.io/latest/install-agent-skills/) with `npx skills add oxsecurity/megalinter/skills`, then ask your agent to _"setup megalinter"_.
  518. - **With the interactive wizard**: run `npx mega-linter-runner --install` at the root of your repository and answer questions, it will generate ready to use configuration files for MegaLinter :)
  519. ![Runner Install](https://github.com/oxsecurity/megalinter/blob/main/docs/assets/images/mega-linter-runner-generator.gif?raw=true)
  520. <!-- install-assisted-section-end -->
  521. <!-- install-version-section-start -->
  522. <!-- markdown-headers
  523. ---
  524. title: Selecting a MegaLinter version to use
  525. description: You can use latest release or beta version of MegaLinter, know the differences !
  526. ---
  527. -->
  528. ### Which version to use ?
  529. <!-- # MAJOR-RELEASE-IMPACTED -->
  530. > **Docker registry change (since v9.5.0)**: MegaLinter Docker images are **published only to GitHub Container Registry (`ghcr.io`)**. The Docker Hub registry (`docker.io/oxsecurity/megalinter`, formerly `oxsecurity/megalinter:*`) is **frozen at v9.4.0** until we implement OIDC-based publishing to Docker Hub.
  531. > Docker Hub does not have v10 images: if you pull `oxsecurity/megalinter` from Docker Hub you will stay on v9.4.0. To get v10, switch your `image:` / `docker pull` references to `ghcr.io/oxsecurity/megalinter:v10` (same applies to `:beta` and all [flavor](#flavors) tags like `ghcr.io/oxsecurity/megalinter-python:v10`).
  532. > GitHub Action users (`uses: oxsecurity/megalinter@v10`) are not affected, as the action already pulls from `ghcr.io`.
  533. The following instructions examples are using latest MegaLinter stable version (**v10** , always corresponding to the [latest release](https://github.com/oxsecurity/megalinter/releases))
  534. - Docker image: `ghcr.io/oxsecurity/megalinter:v10`
  535. - GitHub Action: `oxsecurity/megalinter@v10`
  536. You can also use **beta** version (corresponding to the content of main branch)
  537. - Docker image: `ghcr.io/oxsecurity/megalinter:beta`
  538. - GitHub Action: `oxsecurity/megalinter@beta`
  539. <!-- install-version-section-end -->
  540. <!-- install-github-section-start -->
  541. <!-- markdown-headers
  542. ---
  543. title: Install MegaLinter on GitHub Actions
  544. description: Manual instructions to setup MegaLinter in a GitHub Action Workflow
  545. ---
  546. -->
  547. ### GitHub Action
  548. 1. Create a new file in your repository called `.github/workflows/mega-linter.yml`
  549. 2. Copy the [example workflow from below](https://raw.githubusercontent.com/oxsecurity/megalinter/main/TEMPLATES/mega-linter.yml) into that new file, no extra configuration required
  550. 3. Commit that file to a new branch
  551. 4. Open up a pull request and observe the action working
  552. 5. Enjoy your more _stable_, and _cleaner_ code base
  553. **NOTES:**
  554. - If you pass the _Environment_ variable `GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}` in your workflow, then the **MegaLinter** will mark the status of each individual linter run in the Checks section of a pull request. Without this you will only see the overall status of the full run. There is no need to set the **GitHub** Secret as it's automatically set by GitHub, it only needs to be passed to the action.
  555. - You can also **use it outside of GitHub Actions** (CircleCI, Azure Pipelines, Jenkins, GitLab, or even locally with a docker run) , and have status on Github Pull Request if `GITHUB_TARGET_URL` environment variable exists.
  556. In your repository you should have a `.github/workflows` folder with **GitHub** Action similar to below:
  557. - `.github/workflows/mega-linter.yml`
  558. <details>
  559. <summary>This file should have this code</summary>
  560. ```yml
  561. ---
  562. # MegaLinter GitHub Action configuration file
  563. # More info at https://megalinter.io
  564. name: MegaLinter
  565. on:
  566. # Trigger mega-linter at every push. Action will also be visible from Pull Requests to main
  567. push: # Comment this line to trigger action only on pull-requests (not recommended if you don't pay for GH Actions)
  568. pull_request:
  569. branches: [master, main]
  570. env: # Comment env block if you don't want to apply fixes
  571. # Apply linter fixes configuration
  572. APPLY_FIXES: all # When active, APPLY_FIXES must also be defined as environment variable (in github/workflows/mega-linter.yml or other CI tool)
  573. APPLY_FIXES_EVENT: pull_request # Decide which event triggers application of fixes in a commit or a PR (pull_request, push, all)
  574. APPLY_FIXES_MODE: commit # If APPLY_FIXES is used, defines if the fixes are directly committed (commit) or posted in a PR (pull_request)
  575. concurrency:
  576. group: ${{ github.ref }}-${{ github.workflow }}
  577. cancel-in-progress: true
  578. permissions: {}
  579. jobs:
  580. megalinter:
  581. name: MegaLinter
  582. runs-on: ubuntu-latest
  583. permissions:
  584. # Give the default GITHUB_TOKEN write permission to commit and push, comment issues & post new PR
  585. # Remove the ones you do not need
  586. contents: write
  587. issues: write
  588. pull-requests: write
  589. steps:
  590. # Git Checkout
  591. - name: Checkout Code
  592. uses: actions/checkout@v6
  593. with:
  594. # SECURITY NOTE: Using a Personal Access Token (PAT) is NOT
  595. # recommended. Open-source projects have been heavily targeted by
  596. # supply-chain attacks in recent months, and a leaked PAT can give
  597. # attackers broad write access to your repository: better safe
  598. # than sorry! If you only need workflows to re-trigger after
  599. # MegaLinter applies fixes, prefer one of these safer alternatives:
  600. # - Manually re-run the workflow from the GitHub Actions tab, or
  601. # - Push another commit on the branch to trigger workflows again.
  602. # Only define `secrets.PAT` if you fully understand the trade-off.
  603. token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
  604. persist-credentials: false # Comment this line and uncomment the next one if you use APPLY_FIXES
  605. # persist-credentials: true # zizmor: ignore[artipacked]
  606. fetch-depth: 0 # If you use VALIDATE_ALL_CODEBASE = true, you can remove this line to improve performances
  607. # MegaLinter
  608. - name: MegaLinter
  609. id: ml
  610. # You can override MegaLinter flavor used to have faster performances
  611. # More info at https://megalinter.io/flavors/
  612. # MAJOR-RELEASE-IMPACTED
  613. uses: oxsecurity/megalinter@v10
  614. env:
  615. # All available variables are described in documentation
  616. # https://megalinter.io/configuration/
  617. VALIDATE_ALL_CODEBASE: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} # Validates all source when push on main, else just the git diff with main. Override with true if you always want to lint all sources
  618. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  619. # ADD YOUR CUSTOM ENV VARIABLES HERE OR DEFINE THEM IN A FILE .mega-linter.yml AT THE ROOT OF YOUR REPOSITORY
  620. # DISABLE: COPYPASTE,SPELL # Uncomment to disable copy-paste and spell checks
  621. # Upload MegaLinter artifacts
  622. - name: Archive production artifacts
  623. if: success() || failure()
  624. uses: actions/upload-artifact@v7
  625. with:
  626. name: MegaLinter reports
  627. include-hidden-files: "true"
  628. path: |
  629. megalinter-reports
  630. mega-linter.log
  631. # Create pull request if applicable (for now works only on PR from same repository, not from forks)
  632. - name: Create Pull Request with applied fixes
  633. id: cpr
  634. if: steps.ml.outputs.has_updated_sources == 1 && (env.APPLY_FIXES_EVENT == 'all' || env.APPLY_FIXES_EVENT == github.event_name) && env.APPLY_FIXES_MODE == 'pull_request' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository) && !contains(github.event.head_commit.message, 'skip fix')
  635. uses: peter-evans/create-pull-request@v8
  636. with:
  637. # SECURITY NOTE: see the warning on the checkout step above โ€”
  638. # using `secrets.PAT` is NOT recommended for security reasons.
  639. # Prefer manually re-running the workflow or pushing another
  640. # commit on the branch to trigger workflows again.
  641. token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
  642. commit-message: "[MegaLinter] Apply linters automatic fixes"
  643. title: "[MegaLinter] Apply linters automatic fixes"
  644. labels: bot
  645. - name: Create PR output
  646. if: steps.ml.outputs.has_updated_sources == 1 && (env.APPLY_FIXES_EVENT == 'all' || env.APPLY_FIXES_EVENT == github.event_name) && env.APPLY_FIXES_MODE == 'pull_request' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository) && !contains(github.event.head_commit.message, 'skip fix')
  647. env:
  648. PR_NUMBER: ${{ steps.cpr.outputs.pull-request-number }}
  649. PR_URL: ${{ steps.cpr.outputs.pull-request-url }}
  650. run: |
  651. echo "Pull Request Number - ${PR_NUMBER}"
  652. echo "Pull Request URL - ${PR_URL}"
  653. # Push new commit if applicable (for now works only on PR from same repository, not from forks)
  654. - name: Prepare commit
  655. if: steps.ml.outputs.has_updated_sources == 1 && (env.APPLY_FIXES_EVENT == 'all' || env.APPLY_FIXES_EVENT == github.event_name) && env.APPLY_FIXES_MODE == 'commit' && github.ref != 'refs/heads/main' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository) && !contains(github.event.head_commit.message, 'skip fix')
  656. run: sudo chown -Rc $UID .git/
  657. - name: Commit and push applied linter fixes
  658. if: steps.ml.outputs.has_updated_sources == 1 && (env.APPLY_FIXES_EVENT == 'all' || env.APPLY_FIXES_EVENT == github.event_name) && env.APPLY_FIXES_MODE == 'commit' && github.ref != 'refs/heads/main' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository) && !contains(github.event.head_commit.message, 'skip fix')
  659. uses: stefanzweifel/git-auto-commit-action@v7
  660. with:
  661. branch: ${{ github.event.pull_request.head.ref || github.head_ref || github.ref }}
  662. commit_message: "[MegaLinter] Apply linters fixes"
  663. commit_user_name: megalinter-bot
  664. commit_user_email: 129584137+megalinter-bot@users.noreply.github.com
  665. ```
  666. </details>
  667. <!-- install-github-section-end -->
  668. <!-- install-gitlab-section-start -->
  669. <!-- markdown-headers
  670. ---
  671. title: Install MegaLinter on Gitlab CI
  672. description: Manual instructions to setup MegaLinter as a Gitlab Pipeline job
  673. ---
  674. -->
  675. ### GitLab CI
  676. Create or update `.gitlab-ci.yml` file at the root of your repository
  677. ```yaml
  678. # MegaLinter GitLab CI job configuration file
  679. # More info at https://megalinter.io/
  680. mega-linter:
  681. stage: test
  682. # You can override MegaLinter flavor used to have faster performances
  683. # More info at https://megalinter.io/flavors/
  684. image: ghcr.io/oxsecurity/megalinter:v10
  685. script: [ "true" ] # if script: ["true"] doesn't work, you may try -> script: [ "/bin/bash /entrypoint.sh" ]
  686. variables:
  687. # All available variables are described in documentation
  688. # https://megalinter.io/configuration/
  689. DEFAULT_WORKSPACE: $CI_PROJECT_DIR
  690. # ADD YOUR CUSTOM ENV VARIABLES HERE TO OVERRIDE VALUES OF .mega-linter.yml AT THE ROOT OF YOUR REPOSITORY
  691. artifacts:
  692. when: always
  693. paths:
  694. - megalinter-reports
  695. expire_in: 1 week
  696. ```
  697. Create a Gitlab access token and define it in a variable **GITLAB_ACCESS_TOKEN_MEGALINTER** in the project CI/CD masked variables. Make sure your token (e.g. if a project token) as the appropriate [role](https://docs.gitlab.com/ee/user/permissions.html) for commenting a merge request (at least developer).
  698. ![config-gitlab-access-token](https://user-images.githubusercontent.com/17500430/151674446-1bcb1420-d9aa-4ae1-aaae-dcf51afb36ab.gif)
  699. ![Screenshot](https://github.com/oxsecurity/megalinter/blob/main/docs/assets/images/TextReporter_gitlab_1.jpg?raw=true)
  700. <!-- install-gitlab-section-end -->
  701. <!-- install-azure-section-start -->
  702. <!-- markdown-headers
  703. ---
  704. title: Install MegaLinter on Azure Pipelines
  705. description: Manual instructions to setup MegaLinter as an Azure Pipelines job
  706. ---
  707. -->
  708. ### Azure Pipelines
  709. Use the following Azure Pipelines [YAML template](https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema)
  710. You can configure a [build validation](https://learn.microsoft.com/en-us/azure/devops/repos/git/branch-policies?view=azure-devops&tabs=browser#build-validation) branch policy against a single repository or across all repositories. If you configure across all repositories then your pipeline is stored in a central repository.
  711. #### Single Repository
  712. Add the following to an `azure-pipelines.yaml` file within your code repository:
  713. ```yaml
  714. # Run MegaLinter to detect linting and security issues
  715. - job: MegaLinter
  716. pool:
  717. vmImage: ubuntu-latest
  718. steps:
  719. # Checkout repo
  720. - checkout: self
  721. # Pull MegaLinter docker image
  722. - script: docker pull ghcr.io/oxsecurity/megalinter:v10
  723. displayName: Pull MegaLinter
  724. # Run MegaLinter
  725. - script: |
  726. docker run -v $(System.DefaultWorkingDirectory):/tmp/lint \
  727. --env-file <(env | grep -e SYSTEM_ -e BUILD_ -e TF_ -e AGENT_) \
  728. -e SYSTEM_ACCESSTOKEN=$(System.AccessToken) \
  729. -e GIT_AUTHORIZATION_BEARER=$(System.AccessToken) \
  730. ghcr.io/oxsecurity/megalinter:v10
  731. displayName: Run MegaLinter
  732. # Upload MegaLinter reports
  733. - task: PublishPipelineArtifact@1
  734. condition: succeededOrFailed()
  735. displayName: Upload MegaLinter reports
  736. inputs:
  737. targetPath: "$(System.DefaultWorkingDirectory)/megalinter-reports/"
  738. artifactName: MegaLinterReport
  739. ```
  740. #### Central Repository
  741. Add the following to an `azure-pipelines.yaml` file within a separate repository, for example a 'MegaLinter' repository:
  742. ```yaml
  743. # Run MegaLinter to detect linting and security issues
  744. trigger: none
  745. pool:
  746. vmImage: ubuntu-latest
  747. variables:
  748. repoName: $[ replace(split(variables['System.PullRequest.SourceRepositoryURI'], '/')[6], '%20', ' ') ]
  749. steps:
  750. # Checkout triggering repo
  751. - checkout: git://$(System.TeamProject)/$(repoName)@$(System.PullRequest.SourceBranch)
  752. displayName: Checkout Triggering Repository
  753. # Pull MegaLinter docker image
  754. - script: docker pull ghcr.io/oxsecurity/megalinter:v10
  755. displayName: Pull MegaLinter
  756. # Run MegaLinter
  757. - script: |
  758. docker run -v $(System.DefaultWorkingDirectory):/tmp/lint \
  759. --env-file <(env | grep -e SYSTEM_ -e BUILD_ -e TF_ -e AGENT_) \
  760. -e SYSTEM_ACCESSTOKEN=$(System.AccessToken) \
  761. -e GIT_AUTHORIZATION_BEARER=$(System.AccessToken) \
  762. ghcr.io/oxsecurity/megalinter:v10
  763. displayName: Run MegaLinter
  764. # Upload MegaLinter reports
  765. - task: PublishPipelineArtifact@1
  766. condition: succeededOrFailed()
  767. displayName: MegaLinter Report
  768. inputs:
  769. targetPath: $(System.DefaultWorkingDirectory)/megalinter-reports/
  770. artifactName: MegaLinterReport
  771. ```
  772. #### Pull Request Comments
  773. To enable Pull Request comments, follow the [configuration instructions](https://github.com/oxsecurity/megalinter/tree/main/docs/reporters/AzureCommentReporter.md).
  774. Note: If your pipelines run on Azure DevOps but your source code is hosted on GitHub, and you want status reports to appear on GitHub, you must provide additional repository information to the pipeline. See this [example](https://github.com/firedigger/megalinter-azure-pipelines-with-github-repository) for guidance.
  775. #### Detailed Tutorial
  776. You can also follow this [detailed tutorial](https://github.com/DonKoning/megaLinter) by [DonKoning](https://github.com/DonKoning).
  777. #### Alternative: Azure DevOps Extension (Community)
  778. > **Note:** This is a community-maintained extension and is **not** affiliated with or maintained by the MegaLinter team.
  779. As an alternative to the manual Docker configuration above, the community-maintained [megalinter-ado](https://marketplace.visualstudio.com/items?itemName=DownAtTheBottomOfTheMoleHole.megalinter-ado) Azure DevOps extension provides a native Azure Pipelines task for running MegaLinter.
  780. Install from the [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=DownAtTheBottomOfTheMoleHole.megalinter-ado), then add the task to your pipeline:
  781. ```yaml
  782. - task: MegaLinter@1
  783. displayName: Run MegaLinter
  784. inputs:
  785. flavor: all
  786. fix: true
  787. createFixPR: true
  788. env:
  789. SYSTEM_ACCESSTOKEN: $(System.AccessToken)
  790. ```
  791. See the [extension repository](https://github.com/DownAtTheBottomOfTheMoleHole/megalinter-ado) for full configuration options.
  792. <!-- install-azure-section-end -->
  793. <!-- install-bitbucket-section-start -->
  794. <!-- markdown-headers
  795. ---
  796. title: Install MegaLinter on Bitbucket Pipelines
  797. description: Manual instructions to setup MegaLinter as a Bitbucket Pipelines job
  798. ---
  799. -->
  800. ### Bitbucket Pipelines
  801. 1. Create a `bitbucket-pipelines.yml` file at the root of your repository.
  802. 2. Copy and paste the following template or add the step to your existing pipeline.
  803. ```yaml
  804. image: atlassian/default-image:3
  805. pipelines:
  806. default:
  807. - parallel:
  808. - step:
  809. name: Run MegaLinter
  810. image: ghcr.io/oxsecurity/megalinter:v10
  811. script:
  812. - export DEFAULT_WORKSPACE=$BITBUCKET_CLONE_DIR && bash /entrypoint.sh
  813. artifacts:
  814. - megalinter-reports/**
  815. ```
  816. <!-- install-bitbucket-section-end -->
  817. <!-- install-jenkins-section-start -->
  818. <!-- markdown-headers
  819. ---
  820. title: Install MegaLinter on Jenkins
  821. description: Manual instructions to setup MegaLinter as a Jenkins job
  822. ---
  823. -->
  824. ### Jenkins
  825. Add the following stage to your Jenkinsfile.
  826. You may activate the [File.io reporter](https://megalinter.io/reporters/FileIoReporter/) or [Email reporter](https://megalinter.io/reporters/EmailReporter/) to access detailed logs and fixed sources.
  827. ```groovy
  828. // Lint with MegaLinter: https://megalinter.io/
  829. stage('MegaLinter') {
  830. agent {
  831. docker {
  832. image 'ghcr.io/oxsecurity/megalinter:v10'
  833. args "-u root -e VALIDATE_ALL_CODEBASE=true -v ${WORKSPACE}:/tmp/lint --entrypoint=''"
  834. reuseNode true
  835. }
  836. }
  837. steps {
  838. sh '/entrypoint.sh'
  839. }
  840. post {
  841. always {
  842. archiveArtifacts allowEmptyArchive: true, artifacts: 'mega-linter.log,megalinter-reports/**/*', defaultExcludes: false, followSymlinks: false
  843. }
  844. }
  845. }
  846. ```
  847. CloudBees has a helpful tutorial about how to use MegaLinter with Jenkins!
  848. <div style="text-align:center"><iframe width="560" height="315" src="https://www.youtube.com/embed/KhkNf2tQ3hM" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></div>
  849. ### PR Comment Reporting from Jenkins
  850. When MegaLinter runs from a **Jenkins Multibranch Pipeline**, it can automatically post results as comments on pull requests / merge requests hosted on GitHub, GitLab, Azure DevOps, or Bitbucket.
  851. MegaLinter auto-detects the git hosting platform by inspecting the `GIT_URL` environment variable (provided by Jenkins Git plugin). It then maps Jenkins environment variables (`CHANGE_ID`, `GIT_COMMIT`, `BUILD_URL`, etc.) to the native CI variables each comment reporter expects.
  852. #### Requirements
  853. - **Jenkins Multibranch Pipeline** with the appropriate Branch Source plugin (GitHub Branch Source, GitLab Branch Source, or Bitbucket Branch Source)
  854. - The pipeline must be triggered by a **pull request / merge request** (so `CHANGE_ID` is set by Jenkins)
  855. - An **authentication token** for the target platform, stored as a Jenkins credential
  856. #### Platform Configuration
  857. | Platform | Required Token Variable | Notes |
  858. |--------------|----------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
  859. | GitHub | `GITHUB_TOKEN` (recommended) โ€” `PAT` only if strictly required | Prefer `GITHUB_TOKEN`. Personal Access Tokens (PAT) are **not recommended** due to recent supply-chain attacks on open-source projects; a leaked PAT can give attackers broad write access to your repository. Token needs `repo` scope (or `issues:write` + `pull-requests:write` for fine-grained tokens). |
  860. | GitLab | `GITLAB_ACCESS_TOKEN_MEGALINTER` | Personal access token with `api` scope |
  861. | Azure DevOps | `SYSTEM_ACCESSTOKEN` | Personal access token with **Code (Read & Write)** permission |
  862. | Bitbucket | `BITBUCKET_REPO_ACCESS_TOKEN` | Repository access token with **Pull-requests: Write** scope |
  863. #### Jenkinsfile Example with GitHub PR Comments
  864. ```groovy
  865. // Lint with MegaLinter: https://megalinter.io/
  866. stage('MegaLinter') {
  867. agent {
  868. docker {
  869. image 'ghcr.io/oxsecurity/megalinter:v10'
  870. args "-u root -e VALIDATE_ALL_CODEBASE=true -v ${WORKSPACE}:/tmp/lint --entrypoint=''"
  871. reuseNode true
  872. }
  873. }
  874. environment {
  875. GITHUB_TOKEN = credentials('github-token')
  876. }
  877. steps {
  878. sh '/entrypoint.sh'
  879. }
  880. post {
  881. always {
  882. archiveArtifacts allowEmptyArchive: true, artifacts: 'mega-linter.log,megalinter-reports/**/*', defaultExcludes: false, followSymlinks: false
  883. }
  884. }
  885. }
  886. ```
  887. #### Self-hosted / On-premise Platforms
  888. MegaLinter detects the platform by looking for keywords in the `GIT_URL` hostname (e.g., `gitlab.mycompany.com` is detected as GitLab, `github.internal.corp.com` as GitHub).
  889. If your self-hosted instance uses a hostname without the platform name (e.g., `git.mycompany.com`), set the `JENKINS_REPO_PLATFORM` environment variable to explicitly tell MegaLinter which platform to use:
  890. ```groovy
  891. environment {
  892. JENKINS_REPO_PLATFORM = 'gitlab' // or 'github', 'azure', 'bitbucket'
  893. GITLAB_ACCESS_TOKEN_MEGALINTER = credentials('gitlab-token')
  894. }
  895. ```
  896. #### Additional Variables
  897. For most setups, MegaLinter derives all needed variables automatically. In rare cases, you may need to set additional platform-specific variables:
  898. - **GitLab**: Set `CI_PROJECT_ID` if the project path cannot be parsed from `GIT_URL`
  899. - **Azure DevOps**: Set `SYSTEM_ACCESSTOKEN` as a Jenkins credential
  900. <!-- install-jenkins-section-end -->
  901. <!-- install-concourse-section-start -->
  902. <!-- markdown-headers
  903. ---
  904. title: Install MegaLinter on Concourse
  905. description: Manual instructions to setup MegaLinter as a Concourse job
  906. ---
  907. -->
  908. ### Concourse
  909. #### Pipeline step
  910. Use the following job step in your pipeline template.
  911. Note: Make sure you have a `job.plan.get` step that retrieves the `repo` containing your repository, as shown in the example.
  912. <!-- # MAJOR-RELEASE-IMPACTED -->
  913. ```yaml
  914. ---
  915. - name: linting
  916. plan:
  917. - get: repo
  918. - task: linting
  919. config:
  920. platform: linux
  921. image_resource:
  922. type: docker-image
  923. source:
  924. repository: oxsecurity/megalinter
  925. tag: v10
  926. inputs:
  927. - name: repo
  928. run:
  929. path: bash
  930. args:
  931. - -cxe
  932. - |
  933. cd repo
  934. export DEFAULT_WORKSPACE=$(pwd)
  935. bash -ex /entrypoint.sh
  936. ## doing this because concourse doesn't work as other CI systems
  937. # params:
  938. # PARALLEL: true
  939. # DISABLE: SPELL
  940. # APPLY_FIXES: all
  941. # DISABLE_ERRORS: true
  942. # VALIDATE_ALL_CODEBASE: true
  943. ```
  944. OR
  945. #### Use it as a reusable task
  946. Create a reusable Concourse task that can be used with multiple pipelines.
  947. 1. Create task file `task-linting.yaml`
  948. <!-- # MAJOR-RELEASE-IMPACTED -->
  949. ```yaml
  950. ---
  951. platform: linux
  952. image_resource:
  953. type: docker-image
  954. source:
  955. repository: oxsecurity/megalinter
  956. tag: v10
  957. inputs:
  958. - name: repo
  959. ## uncomment this if you want reports as task output
  960. # output:
  961. # - name: reports
  962. # path: repo/megalinter-reports
  963. run:
  964. path: bash
  965. args:
  966. - -cxe
  967. - |
  968. cd repo
  969. export DEFAULT_WORKSPACE=$(pwd)
  970. bash -ex /entrypoint.sh
  971. ```
  972. 2. Use that `task-linting.yaml` task in your pipeline.
  973. Note:
  974. 1. Make sure `task-linting.yaml` is available in the `repo` input at the repository root.
  975. 2. Task `output` is **not** shown here.
  976. ```yaml
  977. resources:
  978. - name: linting
  979. plan:
  980. - get: repo
  981. - task: linting
  982. file: repo/task-linting.yaml
  983. # params:
  984. # PARALLEL: true
  985. # DISABLE: SPELL
  986. # APPLY_FIXES: all
  987. # DISABLE_ERRORS: true
  988. # VALIDATE_ALL_CODEBASE: true
  989. ```
  990. <!-- install-concourse-section-end -->
  991. <!-- install-drone-section-start -->
  992. <!-- markdown-headers
  993. ---
  994. title: Install MegaLinter on Drone CI
  995. description: Manual instructions to setup MegaLinter as a Drone CI job
  996. ---
  997. -->
  998. ### Drone CI
  999. Warning: Drone CI support is experimental and is undergoing significant modifications (see issue [#2047](https://github.com/oxsecurity/megalinter/issues/2047)).
  1000. 1. Create a `.drone.yml` file on the root directory of your repository
  1001. 2. Copy and paste the following template:
  1002. ```yaml
  1003. kind: pipeline
  1004. type: docker
  1005. name: MegaLinter
  1006. workspace:
  1007. path: /tmp/lint
  1008. steps:
  1009. - name: megalinter
  1010. image: ghcr.io/oxsecurity/megalinter:v10
  1011. environment:
  1012. DEFAULT_WORKSPACE: /tmp/lint
  1013. ```
  1014. This uses the [Drone CI Docker runner](https://docs.drone.io/pipeline/docker/overview/), so you need to install and configure it beforehand on your Drone CI server.
  1015. #### (Optional) Adjusting trigger rules
  1016. The Drone CI workflow should trigger automatically for most scenarios (push, pull request, syncโ€ฆ). However, you can optionally change this behavior by modifying the trigger. For example:
  1017. ```yaml
  1018. kind: pipeline
  1019. type: docker
  1020. name: MegaLinter
  1021. workspace:
  1022. path: /tmp/lint
  1023. steps:
  1024. - name: megalinter
  1025. image: ghcr.io/oxsecurity/megalinter:v10
  1026. environment:
  1027. DEFAULT_WORKSPACE: /tmp/lint
  1028. trigger:
  1029. event:
  1030. - push
  1031. ```
  1032. The workflow above triggers only on push, and not in other situations. For more information about configuring Drone CI trigger rules, see the [documentation](https://docs.drone.io/pipeline/triggers/).
  1033. <!-- install-drone-section-end -->
  1034. <!-- install-docker-section-start -->
  1035. <!-- markdown-headers
  1036. ---
  1037. title: Run MegaLinter as a Docker image
  1038. description: Manual instructions to run MegaLinter as a docker image
  1039. ---
  1040. -->
  1041. ### Docker container
  1042. You can also run MegaLinter with its Docker container. Execute this command:
  1043. `docker run --rm -v /var/run/docker.sock:/var/run/docker.sock:rw -v $(pwd):/tmp/lint:rw ghcr.io/oxsecurity/megalinter:v10`
  1044. No extra arguments are needed; however, MegaLinter will lint all files inside the `/tmp/lint` folder. You may need to configure your tool of choice to use `/tmp/lint` as its workspace.
  1045. This can be changed:
  1046. _Example:_
  1047. `docker run --rm -v /var/run/docker.sock:/var/run/docker.sock:rw -v $(pwd):/example/folder:rw ghcr.io/oxsecurity/megalinter:v10`
  1048. <!-- install-docker-section-end -->
  1049. <!-- install-locally-section-start -->
  1050. <!-- markdown-headers
  1051. ---
  1052. title: Run MegaLinter locally on your computer
  1053. description: Manual instructions to run MegaLinter locally on your computer
  1054. ---
  1055. -->
  1056. ### Run MegaLinter locally
  1057. [![Version](https://img.shields.io/npm/v/mega-linter-runner.svg)](https://npmjs.org/package/mega-linter-runner)
  1058. [![Downloads/week](https://img.shields.io/npm/dw/mega-linter-runner.svg)](https://npmjs.org/package/mega-linter-runner)
  1059. [![Downloads/total](https://img.shields.io/npm/dt/mega-linter-runner.svg)](https://npmjs.org/package/mega-linter-runner)
  1060. Use [mega-linter-runner](https://megalinter.io/mega-linter-runner/) to run MegaLinter locally with the same configuration defined in your [.mega-linter.yml](https://github.com/oxsecurity/megalinter/tree/main/docs/config-file.md) file.
  1061. See the [mega-linter-runner installation instructions](https://megalinter.io/mega-linter-runner/#installation).
  1062. Example:
  1063. ```shell
  1064. npx mega-linter-runner --flavor salesforce -e "'ENABLE=DOCKERFILE,MARKDOWN,YAML'" -e 'SHOW_ELAPSED_TIME=true'
  1065. ```
  1066. Note: You can also use this command line in your custom CI/CD pipelines.
  1067. <!-- install-locally-section-end -->
  1068. <!-- installation-section-end -->
  1069. <!-- configuration-section-start -->
  1070. <!-- markdown-headers
  1071. ---
  1072. title: MegaLinter configuration Guide
  1073. description: List of all configuration variables that can be used to customize the use of MegaLinter (activation, filtering, auto-update, pre-post commandsโ€ฆ)
  1074. ---
  1075. -->
  1076. ## Configuration
  1077. <!-- config-file-section-start -->
  1078. <!-- markdown-headers
  1079. ---
  1080. title: MegaLinter configuration file
  1081. description: Use config file with auto-completion to customize MegaLinter behaviour
  1082. ---
  1083. -->
  1084. ### .mega-linter.yml file
  1085. MegaLinter configuration variables are defined in a **.mega-linter.yml** file at the root of the repository or with **environment variables**.
  1086. You can see an example config file in this repo: [**.mega-linter.yml**](https://github.com/oxsecurity/megalinter/blob/main/.mega-linter.yml).
  1087. Configuration is assisted with autocompletion and validation in most commonly used IDEs, thanks to the [JSON schema](https://megalinter.io/json-schemas/configuration.html) stored on [schemastore.org](https://www.schemastore.org/).
  1088. - VS Code: You need an extension like [Red Hat YAML](https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml).
  1089. - IntelliJ IDEA family: Autocompletion is supported natively.
  1090. You can also define variables as environment variables.
  1091. - If a variable exists in both ENV and the `.mega-linter.yml` file, priority is given to the ENV variable.
  1092. ![Assisted configuration](https://github.com/oxsecurity/megalinter/raw/main/docs/assets/images/assisted-configuration.gif)
  1093. <!-- config-file-section-end -->
  1094. <!-- config-variables-section-start -->
  1095. <!-- markdown-headers
  1096. ---
  1097. title: All Megalinter configuration common variables
  1098. description: List of common variables that you can use to customize MegaLinter behaviour
  1099. ---
  1100. -->
  1101. ### Common variables
  1102. | **ENV VAR** | **Default Value** | **Notes** |
  1103. |---------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
  1104. | **ADDITIONAL_EXCLUDED_DIRECTORIES** | \[\] | List of additional excluded directory basenames. They're excluded at any nested level. |
  1105. | [**APPLY_FIXES**](https://github.com/oxsecurity/megalinter/tree/main/docs/config-apply-fixes.md) | `none` | Activates formatting and autofix [(more info)](https://github.com/oxsecurity/megalinter/tree/main/docs/config-apply-fixes.md) |
  1106. | **CLEAR_REPORT_FOLDER** | `false` | Flag to clear files from report folder (usually megalinter-reports) before starting the linting process |
  1107. | **CONFIG_PROPERTIES_TO_APPEND** | \[\] | List of configuration properties to append their values (instead of replacing them) in case of using EXTENDS. |
  1108. | **DEFAULT_BRANCH** | `HEAD` | The name of the repository's default branch, useful if you use VALIDATE_ALL_CODEBASE=false |
  1109. | **DEFAULT_WORKSPACE** | `/tmp/lint` | The location containing files to lint if you are running locally.
.claude/skills/kibana-dashboards/scripts/kibana-dashboards.js ยท Bundled script ยท 924 lines ยท 1 finding marked
  1. #!/usr/bin/env node
  2. /**
  3. * CRUD operations for Kibana Dashboards and Visualizations using the API.
  4. *
  5. * Usage:
  6. * ./kibana-dashboards.js dashboard get <id> - Get dashboard definition
  7. * ./kibana-dashboards.js dashboard create <file|-> - Create dashboard
  8. * ./kibana-dashboards.js dashboard update <id> <file|-> - Update dashboard
  9. * ./kibana-dashboards.js dashboard upsert <id> <file|-> - Create or update dashboard
  10. * ./kibana-dashboards.js dashboard delete <id> - Delete dashboard
  11. *
  12. * ./kibana-dashboards.js vis list [search] - List Visualizations
  13. * ./kibana-dashboards.js vis get <id> - Get Visualization
  14. * ./kibana-dashboards.js vis create <file|-> - Create Visualization
  15. * ./kibana-dashboards.js vis update <id> <file|-> - Update Visualization
  16. * ./kibana-dashboards.js vis upsert <id> <file|-> - Create or update Visualization
  17. * ./kibana-dashboards.js vis delete <id> - Delete Visualization
  18. *
  19. * ./kibana-dashboards.js test - Test Kibana connection
  20. */
  21. // =============================================================================
  22. // Stdin Reading
  23. // =============================================================================
  24. async function readStdin() {
  25. return new Promise((resolve, reject) => {
  26. let data = "";
  27. process.stdin.setEncoding("utf8");
  28. if (process.stdin.isTTY) {
  29. reject(new Error("No input provided via stdin. Use a file path or pipe JSON input."));
  30. return;
  31. }
  32. process.stdin.on("readable", () => {
  33. let chunk;
  34. while ((chunk = process.stdin.read()) !== null) {
  35. data += chunk;
  36. }
  37. });
  38. process.stdin.on("end", () => {
  39. resolve(data);
  40. });
  41. process.stdin.on("error", (err) => {
  42. reject(err);
  43. });
  44. });
  45. }
  46. // =============================================================================
  47. // File System Helpers
  48. // =============================================================================
  49. import { readFileSync, existsSync } from "fs";
  50. async function loadSpec(filePathOrStdin) {
  51. let content;
  52. if (filePathOrStdin === "-" || filePathOrStdin === "--stdin") {
  53. content = await readStdin();
  54. } else {
  55. if (!existsSync(filePathOrStdin)) {
  56. throw new Error(`File not found: ${filePathOrStdin}`);
  57. }
  58. content = readFileSync(filePathOrStdin, "utf-8");
  59. }
  60. return JSON.parse(content);
  61. }
  62. // =============================================================================
  63. // Kibana Client Setup
  64. // =============================================================================
  65. function getKibanaConfig() {
  66. const cloudId = process.env.KIBANA_CLOUD_ID || process.env.ELASTICSEARCH_CLOUD_ID;
  67. let url = process.env.KIBANA_URL;
  68. if (!url && cloudId) {
  69. try {
  70. const parts = cloudId.split(":");
  71. if (parts.length === 2) {
  72. const decoded = Buffer.from(parts[1], "base64").toString("utf8");
  73. const decodedParts = decoded.split("$");
  74. if (decodedParts.length >= 3 && decodedParts[2]) {
  75. const domain = decodedParts[0];
  76. const kibanaUuid = decodedParts[2];
  77. let host = domain;
  78. let port = "";
  79. if (domain.includes(":")) {
  80. const splitDomain = domain.split(":");
  81. host = splitDomain[0];
  82. port = `:${splitDomain[1]}`;
  83. } else {
  84. port = ":443";
  85. }
  86. url = `https://${kibanaUuid}.${host}${port}`;
  87. }
  88. }
  89. } catch (e) {
  90. console.error("Error parsing Cloud ID:", e.message);
  91. }
  92. }
  93. const username = process.env.KIBANA_USERNAME || process.env.ELASTICSEARCH_USERNAME;
  94. const password = process.env.KIBANA_PASSWORD || process.env.ELASTICSEARCH_PASSWORD;
  95. const apiKey = process.env.KIBANA_API_KEY || process.env.ELASTICSEARCH_API_KEY;
  96. const spaceId = process.env.KIBANA_SPACE_ID;
  97. const insecure = process.env.KIBANA_INSECURE === "true";
  98. if (!url) {
  99. console.error("Error: No Kibana connection configured.");
  100. console.error("");
  101. console.error("Set one of these environment variable combinations:");
  102. console.error(" 1. Elastic Cloud: KIBANA_CLOUD_ID + KIBANA_API_KEY");
  103. console.error(" 2. URL + API Key: KIBANA_URL + KIBANA_API_KEY");
  104. console.error(" 3. Basic Auth: KIBANA_URL + KIBANA_USERNAME + KIBANA_PASSWORD");
  105. console.error("");
  106. console.error("For local development, use start-local to run Elasticsearch and Kibana via Docker:");
  107. console.error(" https://github.com/elastic/start-local");
  108. console.error("");
  109. console.error(" curl -fsSL https://elastic.co/start-local | sh");
    • Note: Pipes a downloaded script directly into a shell (curl | sh / wget | bash)
    • Line 129 on GitHub
  110. console.error("");
  111. console.error("Then configure the environment:");
  112. console.error(" source elastic-start-local/.env");
  113. console.error(' export KIBANA_URL="$KB_LOCAL_URL"');
  114. console.error(' export KIBANA_USERNAME="elastic"');
  115. console.error(' export KIBANA_PASSWORD="$ES_LOCAL_PASSWORD"');
  116. process.exit(1);
  117. }
  118. return { url, username, password, apiKey, spaceId, insecure };
  119. }
  120. function getHeaders(config) {
  121. const headers = {
  122. "Content-Type": "application/json",
  123. "kbn-xsrf": "true",
  124. "User-Agent": "elastic-agentic",
  125. };
  126. if (config.apiKey) {
  127. headers["Authorization"] = `ApiKey ${config.apiKey}`;
  128. } else if (config.username && config.password) {
  129. const auth = Buffer.from(`${config.username}:${config.password}`).toString("base64");
  130. headers["Authorization"] = `Basic ${auth}`;
  131. }
  132. return headers;
  133. }
  134. function getBasePath(config) {
  135. let basePath = config.url.replace(/\/$/, "");
  136. if (config.spaceId && config.spaceId !== "default") {
  137. basePath += `/s/${config.spaceId}`;
  138. }
  139. return basePath;
  140. }
  141. async function kibanaFetch(path, options = {}) {
  142. const config = getKibanaConfig();
  143. const basePath = getBasePath(config);
  144. const url = `${basePath}${path}`;
  145. const fetchOptions = {
  146. ...options,
  147. headers: {
  148. ...getHeaders(config),
  149. ...options.headers,
  150. },
  151. };
  152. // Handle insecure TLS
  153. if (config.insecure && typeof process !== "undefined") {
  154. process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
  155. }
  156. try {
  157. const response = await fetch(url, fetchOptions);
  158. const contentType = response.headers.get("content-type");
  159. let data;
  160. if (contentType && contentType.includes("application/json")) {
  161. data = await response.json();
  162. } else {
  163. data = await response.text();
  164. }
  165. if (!response.ok) {
  166. return {
  167. success: false,
  168. status: response.status,
  169. error: data.message || data.error || `HTTP ${response.status}`,
  170. details: data,
  171. };
  172. }
  173. return { success: true, data };
  174. } catch (error) {
  175. return {
  176. success: false,
  177. error: error.message,
  178. details: error,
  179. };
  180. }
  181. }
  182. // =============================================================================
  183. // Dashboards API
  184. // =============================================================================
  185. /**
  186. * Get a dashboard by ID
  187. * GET /api/dashboards/:id (with version header)
  188. */
  189. async function getDashboard(id) {
  190. return kibanaFetch(`/api/dashboards/${encodeURIComponent(id)}`, {
  191. headers: { "Elastic-Api-Version": "2023-10-31" },
  192. });
  193. }
  194. /**
  195. * Create a dashboard
  196. * POST /api/dashboards (with version header)
  197. * Body: { title, panels, time_range?, ... }
  198. *
  199. * Accepts both formats:
  200. * - Flat: { title, panels, ... }
  201. * - Wrapped (legacy): { id?, data: { title, panels, ... }, spaces? }
  202. * The API expects the flat format; this function unwraps if needed.
  203. * POST does not accept an id parameter. Use PUT for upserts.
  204. */
  205. async function createDashboard(definition) {
  206. const body = definition.data
  207. ? definition.data
  208. : (() => {
  209. const { id, spaces, ...rest } = definition;
  210. return rest;
  211. })();
  212. return kibanaFetch("/api/dashboards", {
  213. method: "POST",
  214. headers: { "Elastic-Api-Version": "2023-10-31" },
  215. body: JSON.stringify(body),
  216. });
  217. }
  218. /**
  219. * Update a dashboard
  220. * PUT /api/dashboards/:id (with version header)
  221. * Body: { title, panels, ... } - do NOT include id or spaces
  222. *
  223. * Accepts both formats:
  224. * - Flat: { title, panels, ... }
  225. * - Wrapped (legacy): { data: { title, panels, ... } }
  226. */
  227. async function updateDashboard(id, definition) {
  228. const body = definition.data
  229. ? definition.data
  230. : (() => {
  231. const { id: _id, spaces, ...rest } = definition;
  232. return rest;
  233. })();
  234. return kibanaFetch(`/api/dashboards/${encodeURIComponent(id)}`, {
  235. method: "PUT",
  236. headers: { "Elastic-Api-Version": "2023-10-31" },
  237. body: JSON.stringify(body),
  238. });
  239. }
  240. /**
  241. * Delete a dashboard
  242. * DELETE /api/dashboards/:id (with version header)
  243. */
  244. async function deleteDashboard(id) {
  245. return kibanaFetch(`/api/dashboards/${encodeURIComponent(id)}`, {
  246. method: "DELETE",
  247. headers: { "Elastic-Api-Version": "2023-10-31" },
  248. });
  249. }
  250. // =============================================================================
  251. // Visualizations API
  252. // =============================================================================
  253. /**
  254. * List Visualizations
  255. * GET /api/visualizations?query=&page=&per_page=
  256. */
  257. async function listVisualizations(query = "", page = 1, per_page = 100) {
  258. const params = new URLSearchParams({ page: String(page), per_page: String(per_page) });
  259. if (query) {
  260. params.set("query", query);
  261. }
  262. return kibanaFetch(`/api/visualizations?${params.toString()}`, {
  263. headers: { "Elastic-Api-Version": "2023-10-31" },
  264. });
  265. }
  266. /**
  267. * Get a Visualization by ID
  268. * GET /api/visualizations/:id
  269. */
  270. async function getVisualization(id) {
  271. return kibanaFetch(`/api/visualizations/${id}`, {
  272. headers: { "Elastic-Api-Version": "2023-10-31" },
  273. });
  274. }
  275. /**
  276. * Create a Visualization
  277. * POST /api/visualizations
  278. * Body: visualization definition (without id)
  279. */
  280. async function createVisualization(definition) {
  281. return kibanaFetch("/api/visualizations", {
  282. method: "POST",
  283. headers: { "Elastic-Api-Version": "2023-10-31" },
  284. body: JSON.stringify(definition),
  285. });
  286. }
  287. /**
  288. * Update a Visualization
  289. * PUT /api/visualizations/:id
  290. * Body: visualization definition
  291. */
  292. async function updateVisualization(id, definition) {
  293. return kibanaFetch(`/api/visualizations/${id}`, {
  294. method: "PUT",
  295. headers: { "Elastic-Api-Version": "2023-10-31" },
  296. body: JSON.stringify(definition),
  297. });
  298. }
  299. /**
  300. * Delete a Visualization
  301. * DELETE /api/visualizations/:id
  302. */
  303. async function deleteVisualization(id) {
  304. return kibanaFetch(`/api/visualizations/${id}`, {
  305. method: "DELETE",
  306. headers: { "Elastic-Api-Version": "2023-10-31" },
  307. });
  308. }
  309. // =============================================================================
  310. // Test Connection
  311. // =============================================================================
  312. function parseVersion(versionString) {
  313. if (!versionString) return { major: 0, minor: 0, patch: 0, snapshot: false, raw: "unknown" };
  314. const clean = versionString.replace(/-SNAPSHOT.*$/, "");
  315. const [major, minor, patch] = clean.split(".").map(Number);
  316. return { major, minor, patch: patch || 0, snapshot: versionString.includes("-SNAPSHOT"), raw: versionString };
  317. }
  318. async function testConnection() {
  319. const result = await kibanaFetch("/api/status");
  320. if (result.success) {
  321. const status = result.data;
  322. const versionString = status.version?.number || "unknown";
  323. const buildFlavor = status.version?.build_flavor || "default";
  324. // Serverless Kibana can be identified by build_flavor or a non-semver version string
  325. const isSemver = /^\d+\.\d+\.\d+/.test(versionString);
  326. const isServerless = buildFlavor === "serverless" || (!isSemver && versionString !== "unknown");
  327. const parsed = isSemver ? parseVersion(versionString) : parseVersion("8.11.0");
  328. return {
  329. success: true,
  330. version: isServerless && !isSemver ? `${versionString} (Serverless)` : versionString,
  331. parsed,
  332. buildFlavor: isServerless ? "serverless" : buildFlavor,
  333. isServerless,
  334. status: status.status?.overall?.level || "unknown",
  335. name: status.name || "unknown",
  336. };
  337. }
  338. return result;
  339. }
  340. // =============================================================================
  341. // Output Formatting
  342. // =============================================================================
  343. function formatDashboard(item) {
  344. const lines = [];
  345. lines.push("=== Dashboard ===");
  346. lines.push(`ID: ${item.id}`);
  347. if (item.spaces && item.spaces.length > 0) {
  348. lines.push(`Spaces: ${item.spaces.join(", ")}`);
  349. }
  350. if (item.meta) {
  351. lines.push(`Created: ${item.meta.created_at || "unknown"}`);
  352. lines.push(`Updated: ${item.meta.updated_at || "unknown"}`);
  353. lines.push(`Managed: ${item.meta.managed || false}`);
  354. }
  355. if (item.data) {
  356. lines.push(`Title: ${item.data.title || "Untitled"}`);
  357. lines.push(`Panels: ${item.data.panels?.length || 0}`);
  358. if (item.data.time_range) {
  359. lines.push(`Time Range: ${item.data.time_range.from} to ${item.data.time_range.to}`);
  360. }
  361. }
  362. lines.push("\n--- Definition (data) ---");
  363. lines.push(JSON.stringify(item.data, null, 2));
  364. return lines.join("\n");
  365. }
  366. function formatVisList(response) {
  367. const items = response.data || [];
  368. const meta = response.meta || {};
  369. if (!items || items.length === 0) {
  370. return "No Visualizations found.";
  371. }
  372. const lines = ["ID".padEnd(40) + " | " + "Type".padEnd(15) + " | " + "Title"];
  373. lines.push("-".repeat(40) + "-+-" + "-".repeat(15) + "-+-" + "-".repeat(40));
  374. for (const item of items) {
  375. const id = item.id || "unknown";
  376. const type = item.data?.type || "unknown";
  377. const title = item.data?.title || "Untitled";
  378. lines.push(`${id.substring(0, 40).padEnd(40)} | ${type.padEnd(15)} | ${title}`);
  379. }
  380. lines.push("");
  381. lines.push(
  382. `Page ${meta.page || 1} | Per Page: ${meta.per_page || items.length} | Total: ${meta.total || items.length}`,
  383. );
  384. return lines.join("\n");
  385. }
  386. function formatVisualization(item) {
  387. const lines = [];
  388. lines.push("=== Visualization ===");
  389. lines.push(`ID: ${item.id}`);
  390. if (item.meta) {
  391. lines.push(`Created: ${item.meta.created_at || "unknown"}`);
  392. lines.push(`Updated: ${item.meta.updated_at || "unknown"}`);
  393. lines.push(`Managed: ${item.meta.managed || false}`);
  394. }
  395. lines.push("\n--- Definition (data) ---");
  396. lines.push(JSON.stringify(item.data, null, 2));
  397. return lines.join("\n");
  398. }
  399. // =============================================================================
  400. // Main CLI
  401. // =============================================================================
  402. async function main() {
  403. const args = process.argv.slice(2);
  404. if (args.length === 0 || args[0] === "help" || args[0] === "--help" || args[0] === "-h") {
  405. printUsage();
  406. process.exit(args.length === 0 ? 1 : 0);
  407. }
  408. const [resource, action, ...params] = args;
  409. try {
  410. switch (resource) {
  411. case "test":
  412. await handleTest();
  413. break;
  414. case "dashboard":
  415. case "dashboards":
  416. case "dash":
  417. await handleDashboard(action, params);
  418. break;
  419. case "vis":
  420. await handleVis(action, params);
  421. break;
  422. default:
  423. console.error(`Unknown resource: ${resource}`);
  424. printUsage();
  425. process.exit(1);
  426. }
  427. } catch (error) {
  428. console.error("Error:", error.message);
  429. process.exit(1);
  430. }
  431. }
  432. async function handleTest() {
  433. console.log("=== Testing Kibana Connection ===\n");
  434. const result = await testConnection();
  435. if (result.success) {
  436. const { parsed, isServerless, buildFlavor } = result;
  437. const { major, minor } = parsed;
  438. console.log("โœ“ Connected successfully!");
  439. console.log(` Name: ${result.name}`);
  440. console.log(` Version: ${result.version}`);
  441. console.log(` Build flavor: ${buildFlavor}`);
  442. if (parsed.snapshot) console.log(` Snapshot: yes (treating as ${major}.${minor})`);
  443. if (isServerless) console.log(" NOTE: Serverless โ€” features available regardless of reported version");
  444. console.log(` Status: ${result.status}`);
  445. // Check if Dashboards API is available
  446. console.log("\n=== Dashboards API Check ===");
  447. // Try to get a non-existent dashboard - 404 means API is available
  448. const dashResult = await getDashboard("__test_nonexistent__");
  449. if (dashResult.success || dashResult.status === 404) {
  450. console.log("โœ“ Dashboards API is available");
  451. } else if (dashResult.status === 400) {
  452. console.log("โš  Dashboards API may not be available in this version");
  453. } else {
  454. console.log("โœ— Dashboards API check failed:", dashResult.error);
  455. }
  456. // Check if Visualizations API is available
  457. console.log("\n=== Visualizations API Check ===");
  458. const visResult = await listVisualizations("", 1, 1);
  459. if (visResult.success) {
  460. console.log("โœ“ Visualizations API is available");
  461. } else {
  462. console.log("โœ— Visualizations API check failed:", visResult.error);
  463. }
  464. } else {
  465. console.error("โœ— Connection failed:", result.error);
  466. if (result.details) {
  467. console.error("Details:", JSON.stringify(result.details, null, 2));
  468. }
  469. process.exit(1);
  470. }
  471. }
  472. async function handleDashboard(action, params) {
  473. switch (action) {
  474. case "get": {
  475. const id = params[0];
  476. if (!id) {
  477. console.error("Error: Dashboard ID required");
  478. console.error("Usage: ./kibana-dashboards.js dashboard get <id>");
  479. process.exit(1);
  480. }
  481. const result = await getDashboard(id);
  482. if (result.success) {
  483. console.log(formatDashboard(result.data));
  484. } else {
  485. console.error("Error:", result.error);
  486. process.exit(1);
  487. }
  488. break;
  489. }
  490. case "create": {
  491. const file = params[0];
  492. if (!file) {
  493. console.error("Error: Definition file/stdin required");
  494. console.error("Usage: ./kibana-dashboards.js dashboard create <file.json>");
  495. console.error(
  496. ' echo \'{"title":"My Dashboard","panels":[]}\' | ./kibana-dashboards.js dashboard create -',
  497. );
  498. process.exit(1);
  499. }
  500. const definition = await loadSpec(file);
  501. const result = await createDashboard(definition);
  502. if (result.success) {
  503. console.log("โœ“ Dashboard created successfully!");
  504. console.log(` ID: ${result.data.id}`);
  505. console.log(` Title: ${result.data.data?.title || "Untitled"}`);
  506. console.log(` Panels: ${result.data.data?.panels?.length || 0}`);
  507. if (result.data.spaces) {
  508. console.log(` Spaces: ${result.data.spaces.join(", ")}`);
  509. }
  510. } else {
  511. console.error("Error:", result.error);
  512. if (result.details) {
  513. console.error("Details:", JSON.stringify(result.details, null, 2));
  514. }
  515. process.exit(1);
  516. }
  517. break;
  518. }
  519. case "update": {
  520. const id = params[0];
  521. const file = params[1];
  522. if (!id || !file) {
  523. console.error("Error: Dashboard ID and definition file/stdin required");
  524. console.error("Usage: ./kibana-dashboards.js dashboard update <id> <file.json>");
  525. console.error(
  526. ' echo \'{"title":"Updated","panels":[...]}\' | ./kibana-dashboards.js dashboard update <id> -',
  527. );
  528. process.exit(1);
  529. }
  530. const definition = await loadSpec(file);
  531. const result = await updateDashboard(id, definition);
  532. if (result.success) {
  533. console.log("โœ“ Dashboard updated successfully!");
  534. console.log(` ID: ${result.data.id}`);
  535. console.log(` Title: ${result.data.data?.title || "Untitled"}`);
  536. } else {
  537. console.error("Error:", result.error);
  538. if (result.details) {
  539. console.error("Details:", JSON.stringify(result.details, null, 2));
  540. }
  541. process.exit(1);
  542. }
  543. break;
  544. }
  545. case "upsert": {
  546. const id = params[0];
  547. const file = params[1];
  548. if (!id || !file) {
  549. console.error("Error: Dashboard ID and definition file/stdin required");
  550. console.error("Usage: ./kibana-dashboards.js dashboard upsert <id> <file.json>");
  551. process.exit(1);
  552. }
  553. const definition = await loadSpec(file);
  554. const result = await updateDashboard(id, definition);
  555. if (result.success) {
  556. console.log("โœ“ Dashboard upserted successfully!");
  557. console.log(` ID: ${result.data.id}`);
  558. console.log(` Title: ${result.data.data?.title || "Untitled"}`);
  559. } else {
  560. console.error("Error:", result.error);
  561. if (result.details) {
  562. console.error("Details:", JSON.stringify(result.details, null, 2));
  563. }
  564. process.exit(1);
  565. }
  566. break;
  567. }
  568. case "delete":
  569. case "rm": {
  570. const id = params[0];
  571. if (!id) {
  572. console.error("Error: Dashboard ID required");
  573. console.error("Usage: ./kibana-dashboards.js dashboard delete <id>");
  574. process.exit(1);
  575. }
  576. const result = await deleteDashboard(id);
  577. if (result.success) {
  578. console.log("โœ“ Dashboard deleted successfully!");
  579. } else {
  580. console.error("Error:", result.error);
  581. process.exit(1);
  582. }
  583. break;
  584. }
  585. default:
  586. console.error(`Unknown dashboard action: ${action}`);
  587. console.error("Available actions: get, create, update, upsert, delete");
  588. process.exit(1);
  589. }
  590. }
  591. async function handleVis(action, params) {
  592. switch (action) {
  593. case "list":
  594. case "ls": {
  595. const query = params[0] || "";
  596. const result = await listVisualizations(query);
  597. if (result.success) {
  598. console.log("=== Visualizations ===\n");
  599. console.log(formatVisList(result.data));
  600. } else {
  601. console.error("Error:", result.error);
  602. process.exit(1);
  603. }
  604. break;
  605. }
  606. case "get": {
  607. const id = params[0];
  608. if (!id) {
  609. console.error("Error: Visualization ID required");
  610. console.error("Usage: ./kibana-dashboards.js vis get <id>");
  611. process.exit(1);
  612. }
  613. const result = await getVisualization(id);
  614. if (result.success) {
  615. console.log(formatVisualization(result.data));
  616. } else {
  617. console.error("Error:", result.error);
  618. process.exit(1);
  619. }
  620. break;
  621. }
  622. case "create": {
  623. const file = params[0];
  624. if (!file) {
  625. console.error("Error: Definition file/stdin required");
  626. console.error("Usage: ./kibana-dashboards.js vis create <file.json>");
  627. console.error(' echo \'{"type":"metric",...}\' | ./kibana-dashboards.js vis create -');
  628. process.exit(1);
  629. }
  630. const definition = await loadSpec(file);
  631. const result = await createVisualization(definition);
  632. if (result.success) {
  633. console.log("โœ“ Visualization created successfully!");
  634. console.log(` ID: ${result.data.id}`);
  635. console.log(` Type: ${result.data.data?.type || "unknown"}`);
  636. } else {
  637. console.error("Error:", result.error);
  638. if (result.details) {
  639. console.error("Details:", JSON.stringify(result.details, null, 2));
  640. }
  641. process.exit(1);
  642. }
  643. break;
  644. }
  645. case "update": {
  646. const id = params[0];
  647. const file = params[1];
  648. if (!id || !file) {
  649. console.error("Error: Visualization ID and definition file/stdin required");
  650. console.error("Usage: ./kibana-dashboards.js vis update <id> <file.json>");
  651. console.error(' echo \'{"type":"metric",...}\' | ./kibana-dashboards.js vis update <id> -');
  652. process.exit(1);
  653. }
  654. const definition = await loadSpec(file);
  655. const result = await updateVisualization(id, definition);
  656. if (result.success) {
  657. console.log("โœ“ Visualization updated successfully!");
  658. console.log(` ID: ${result.data.id}`);
  659. } else {
  660. console.error("Error:", result.error);
  661. if (result.details) {
  662. console.error("Details:", JSON.stringify(result.details, null, 2));
  663. }
  664. process.exit(1);
  665. }
  666. break;
  667. }
  668. case "upsert": {
  669. const id = params[0];
  670. const file = params[1];
  671. if (!id || !file) {
  672. console.error("Error: Visualization ID and definition file/stdin required");
  673. console.error("Usage: ./kibana-dashboards.js vis upsert <id> <file.json>");
  674. process.exit(1);
  675. }
  676. const definition = await loadSpec(file);
  677. const result = await updateVisualization(id, definition);
  678. if (result.success) {
  679. console.log("โœ“ Visualization upserted successfully!");
  680. console.log(` ID: ${result.data.id}`);
  681. } else {
  682. console.error("Error:", result.error);
  683. if (result.details) {
  684. console.error("Details:", JSON.stringify(result.details, null, 2));
  685. }
  686. process.exit(1);
  687. }
  688. break;
  689. }
  690. case "delete":
  691. case "rm": {
  692. const id = params[0];
  693. if (!id) {
  694. console.error("Error: Visualization ID required");
  695. console.error("Usage: ./kibana-dashboards.js vis delete <id>");
  696. process.exit(1);
  697. }
  698. const result = await deleteVisualization(id);
  699. if (result.success) {
  700. console.log("โœ“ Visualization deleted successfully!");
  701. } else {
  702. console.error("Error:", result.error);
  703. process.exit(1);
  704. }
  705. break;
  706. }
  707. default:
  708. console.error(`Unknown vis action: ${action}`);
  709. console.error("Available actions: list, get, create, update, upsert, delete");
  710. process.exit(1);
  711. }
  712. }
  713. function printUsage() {
  714. console.log(`
  715. Kibana as Code - Dashboards & Visualizations API
  716. Usage:
  717. ./kibana-dashboards.js <resource> <action> [options]
  718. Resources:
  719. dashboard Manage dashboards via API
  720. vis Manage visualizations via API
  721. test Test Kibana connection and API availability
  722. Dashboard Actions:
  723. get <id> Get dashboard definition
  724. create <file|-> Create from JSON file (use - for stdin)
  725. update <id> <file|-> Update from JSON file (use - for stdin)
  726. upsert <id> <file|-> Create or update (use - for stdin)
  727. delete <id> Delete dashboard
  728. Visualization Actions:
  729. list [search] List Visualizations (optional search)
  730. get <id> Get visualization definition
  731. create <file|-> Create from JSON file (use - for stdin)
  732. update <id> <file|-> Update from JSON file (use - for stdin)
  733. upsert <id> <file|-> Create or update (use - for stdin)
  734. delete <id> Delete visualization
  735. Environment Variables:
  736. KIBANA_CLOUD_ID Elastic Cloud deployment ID (if KIBANA_URL is not set)
  737. KIBANA_URL Kibana URL (required if KIBANA_CLOUD_ID is not set)
  738. KIBANA_USERNAME Username for basic auth
  739. KIBANA_PASSWORD Password for basic auth
  740. KIBANA_API_KEY API key for authentication
  741. KIBANA_SPACE_ID Kibana space ID (optional)
  742. KIBANA_INSECURE Set to "true" to skip TLS verification
  743. Dashboard Panel Types:
  744. vis Visualization panel
  745. markdown Markdown panel
  746. links Links panel
  747. map Maps panel
  748. discover_session Saved search panel
  749. (and more embeddable types)
  750. Chart Types:
  751. metric, xy, gauge, heatmap, tag_cloud,
  752. region_map, data_table, pie, treemap, mosaic, waffle
  753. Examples:
  754. # Test connection and API availability
  755. ./kibana-dashboards.js test
  756. # Get a dashboard definition
  757. ./kibana-dashboards.js dashboard get my-dashboard-id
  758. # Create a dashboard from file
  759. ./kibana-dashboards.js dashboard create ./my-dashboard.json
  760. # Create a dashboard from stdin
  761. echo '{"title":"Test","panels":[]}' | \\
  762. ./kibana-dashboards.js dashboard create -
  763. # Update a dashboard (do not include id/spaces in body)
  764. echo '{"title":"Updated Title","panels":[]}' | \\
  765. ./kibana-dashboards.js dashboard update my-dashboard-id -
  766. # Delete a dashboard
  767. ./kibana-dashboards.js dashboard delete my-dashboard-id
  768. # List all Visualizations
  769. ./kibana-dashboards.js vis list
  770. # Create metric visualization from stdin
  771. echo '{"type":"metric","data_source":{"type":"esql","query":"FROM logs | STATS count=COUNT()"},"metrics":[{"type":"primary","column":"count"}]}' | \\
  772. ./kibana-dashboards.js vis create -
  773. # Copy dashboard: get from source, create on destination
  774. ./kibana-dashboards.js dashboard get source-id > dashboard.json
  775. # Edit dashboard.json as needed, then create
  776. ./kibana-dashboards.js dashboard create dashboard.json
  777. `);
  778. }
  779. main().catch((error) => {
  780. console.error("Fatal error:", error.message);
  781. process.exit(1);
  782. });

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If itโ€™s helped, pass it on.