Skip to content

repolinter

GitHub stars GitHub release (latest SemVer) GitHub last commit GitHub commit activity GitHub contributors

Community plugin: Plugins are maintained by their community authors, not by the MegaLinter team. Using a plugin means trusting its author. This plugin is maintained by Wesley Dean: report its problems on its repository, not to MegaLinter.

Plugin to run TODO Group's repolinter to look for repository best practices (deprecated)

⚠️ Required items are missing in this plugin (native mode, SARIF output): see MegaLinter checks.

repolinter documentation

repolinter - GitHub

Configuration in MegaLinter

Variable Description Default value
REPOSITORY_REPOLINTER_ARGUMENTS User custom arguments to add in linter CLI call
Ex: -s --foo "bar"
REPOSITORY_REPOLINTER_COMMAND_REMOVE_ARGUMENTS User custom arguments to remove from command line before calling the linter
Ex: -s --foo "bar"
REPOSITORY_REPOLINTER_FILTER_REGEX_INCLUDE Custom regex including filter
Ex: (src\|lib)
⚠️ Not available with REPOSITORY_REPOLINTER_CLI_LINT_MODE = project
Exclude no file
REPOSITORY_REPOLINTER_FILTER_REGEX_EXCLUDE Custom regex excluding filter
Ex: (test\|examples)
⚠️ Not available with REPOSITORY_REPOLINTER_CLI_LINT_MODE = project
Exclude no file
REPOSITORY_REPOLINTER_CLI_LINT_MODE Override default CLI lint mode
- project: Call the linter from the root of the project
project
REPOSITORY_REPOLINTER_FORWARD_EXCLUDED_DIRECTORIES In project CLI lint mode, forward excluded directories (EXCLUDED_DIRECTORIES + ADDITIONAL_EXCLUDED_DIRECTORIES, and .gitignored directories when IGNORE_GITIGNORED_FILES is true) to the linter through its native exclusion arguments or generated ignore/config files true
REPOSITORY_REPOLINTER_PRE_COMMANDS List of bash commands to run before the linter None
REPOSITORY_REPOLINTER_POST_COMMANDS List of bash commands to run after the linter None
REPOSITORY_REPOLINTER_UNSECURED_ENV_VARIABLES List of env variables explicitly not filtered before calling REPOSITORY_REPOLINTER and its pre/post commands None
REPOSITORY_REPOLINTER_CONFIG_FILE repolinter configuration file name
Use LINTER_DEFAULT to let the linter find it
repolinter.json
REPOSITORY_REPOLINTER_RULES_PATH Path where to find linter configuration file Workspace folder
REPOSITORY_REPOLINTER_DISABLE_ERRORS Run linter but consider errors as warnings false
REPOSITORY_REPOLINTER_DISABLE_ERRORS_IF_LESS_THAN Maximum number of errors allowed 0
REPOSITORY_REPOLINTER_TIMEOUT_SECONDS Maximum duration in seconds of the linter run, after which the linter process and its child processes are killed and reported as an error (exit code 124). Overrides LINTER_TIMEOUT_SECONDS. 0 disables the timeout 300
REPOSITORY_REPOLINTER_CLI_EXECUTABLE Override CLI executable ['repolinter']

Use this plugin

Add the descriptor URL of the plugin to PLUGINS in .mega-linter.yml. MegaLinter installs the plugin when it starts, whatever the flavor:

PLUGINS:
  - https://raw.githubusercontent.com/wesley-dean/mega-linter-plugin-repolinter/main/mega-linter-plugin-repolinter/repolinter.megalinter-descriptor.yml

Behind the scenes

How are identified applicable files

  • If this linter is active, all files will always be linted

How the linting is performed

repolinter is called once on the whole project directory (project CLI lint mode)

  • filtering can not be done using MegaLinter configuration variables,it must be done using repolinter configuration or ignore file (if existing)
  • VALIDATE_ALL_CODEBASE: false doesn't make repolinter analyze only updated files

Example calls

repolinter lint --dryRun --format=console .
repolinter lint --dryRun --format=console --rulesetFile=rules.json .

Installation in Docker

MegaLinter runs these commands when it loads the plugin (only RUN instructions):

RUN npm install --global repolinter@0.12.0

Installation without Docker (native mode)

Native mode does not run plugins yet: this section shows what the plugin declares for native mode.

Not available: see the MegaLinter checks of the plugin.

MegaLinter checks

These results last changed on 2026-11-28, and MegaLinter checks the plugins every day. The checks only look at the descriptor of the plugin: they do not review the plugin, nor the tool it runs.

Check Result
Descriptor ⚠️ Incomplete
Native mode ❌ Not supported
SARIF output ❌
Native lock ⚠️ No lock shipped by the plugin author

Required

Missing required items:

  • native_install declared and valid for the 5 native platforms (REPOSITORY_REPOLINTER): Native mode (MegaLinter without Docker) can not install the linter. Declare native_install, listing each of linux/amd64, linux/arm64, darwin/amd64, darwin/arm64 and windows/amd64 in platforms or in unsupported (with a reason)
  • SARIF output (REPOSITORY_REPOLINTER): The findings are missing from SARIF reports (GitHub code scanning, SARIF viewers, coding agents). Set can_output_sarif: true with cli_sarif_args when the tool outputs SARIF, otherwise sarif_text_regex (one finding per line of text) or sarif_unified_diff: true (formatters printing a diff)

Missing recommended items:

  • Native lock shipped next to the descriptor (<name>.megalinter-native-lock.json), for verified native installs
  • Configuration documentation URL (linter_rules_configuration_url) (REPOSITORY_REPOLINTER)
  • Inline disable documentation URL (linter_rules_inline_disable_url) (REPOSITORY_REPOLINTER)
  • Ignore file documentation URL (linter_rules_ignore_config_url) (REPOSITORY_REPOLINTER)
  • SPDX license (linter_spdx_license) (REPOSITORY_REPOLINTER)
  • Speed (linter_speed, 1 to 5) (REPOSITORY_REPOLINTER)
  • Icon (linter_icon_png_url) (REPOSITORY_REPOLINTER)
  • IDE extensions (ide) (REPOSITORY_REPOLINTER)
  • Test fixtures (test_folder) (REPOSITORY_REPOLINTER)

Plugin authors

The requirements and how to fix them are described in Create your own plugin.

Comments