nitpick
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 W. Augusto Andreoli: report its problems on its repository, not to MegaLinter.
Command-line tool and flake8 plugin to enforce the same settings across multiple language-independent projects
- Documentation: https://github.com/andreoliwa/nitpick#run-as-a-megalinter-plugin
- Descriptor: https://raw.githubusercontent.com/andreoliwa/nitpick/master/mega-linter-plugin-nitpick/nitpick.megalinter-descriptor.yml
- Maintainer: W. Augusto Andreoli
⚠️ Required items are missing in this plugin (native mode, SARIF output): see MegaLinter checks.
nitpick documentation
- Visit Official Web Site
Configuration in MegaLinter
- Enable nitpick by adding
NITPICKin ENABLE_LINTERS variable - Disable nitpick by adding
NITPICKin DISABLE_LINTERS variable
- Enable autofixes by adding
NITPICKin APPLY_FIXES variable
| Variable | Description | Default value |
|---|---|---|
| NITPICK_ARGUMENTS | User custom arguments to add in linter CLI call Ex: -s --foo "bar" |
|
| NITPICK_COMMAND_REMOVE_ARGUMENTS | User custom arguments to remove from command line before calling the linter Ex: -s --foo "bar" |
|
| NITPICK_FILTER_REGEX_INCLUDE | Custom regex including filter Ex: (src\|lib) |
Exclude no file |
| NITPICK_FILTER_REGEX_EXCLUDE | Custom regex excluding filter Ex: (test\|examples) |
Exclude no file |
| NITPICK_CLI_LINT_MODE | Override default CLI lint mode - file: Calls the linter for each file |
project |
| NITPICK_FILE_EXTENSIONS | Allowed file extensions. "*" matches any extension, "" matches empty extension. Empty list excludes all filesEx: [".py", ""] |
["*"] |
| NITPICK_FILE_NAMES_REGEX | File name regex filters. Regular expression list for filtering files by their base names using regex full match. Empty list includes all files Ex: ["Dockerfile(-.+)?", "Jenkinsfile"] |
Include every file |
| NITPICK_PRE_COMMANDS | List of bash commands to run before the linter | None |
| NITPICK_POST_COMMANDS | List of bash commands to run after the linter | None |
| NITPICK_UNSECURED_ENV_VARIABLES | List of env variables explicitly not filtered before calling NITPICK and its pre/post commands | None |
| NITPICK_DISABLE_ERRORS | Run linter but consider errors as warnings | false |
| NITPICK_DISABLE_ERRORS_IF_LESS_THAN | Maximum number of errors allowed | 0 |
| NITPICK_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 |
| NITPICK_CLI_EXECUTABLE | Override CLI executable | ['nitpick'] |
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/andreoliwa/nitpick/master/mega-linter-plugin-nitpick/nitpick.megalinter-descriptor.yml
Behind the scenes
How are identified applicable files
- Activated only if one of these files is found:
.nitpick.toml, pyproject.toml - File extensions:
*
How the linting is performed
- nitpick is called one time by identified file (
fileCLI lint mode)
Example calls
nitpick check
nitpick fix
Installation in Docker
MegaLinter runs these commands when it loads the plugin (only RUN instructions):
RUN pip install nitpick==0.38.1
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_installdeclared and valid for the 5 native platforms (NITPICK): Native mode (MegaLinter without Docker) can not install the linter. Declarenative_install, listing each of linux/amd64, linux/arm64, darwin/amd64, darwin/arm64 and windows/amd64 inplatformsor inunsupported(with a reason)- SARIF output (
NITPICK): The findings are missing from SARIF reports (GitHub code scanning, SARIF viewers, coding agents). Setcan_output_sarif: truewithcli_sarif_argswhen the tool outputs SARIF, otherwisesarif_text_regex(one finding per line of text) orsarif_unified_diff: true(formatters printing a diff)
Recommended
Missing recommended items:
- Native lock shipped next to the descriptor (
<name>.megalinter-native-lock.json), for verified native installs - Rules documentation URL (
linter_rules_url) (NITPICK) - Configuration documentation URL (
linter_rules_configuration_url) (NITPICK) - Inline disable documentation URL (
linter_rules_inline_disable_url) (NITPICK) - Ignore file documentation URL (
linter_rules_ignore_config_url) (NITPICK) - SPDX license (
linter_spdx_license) (NITPICK) - Speed (
linter_speed, 1 to 5) (NITPICK) - Icon (
linter_icon_png_url) (NITPICK) - IDE extensions (
ide) (NITPICK) - Supported lint modes (
supported_cli_lint_modes) (NITPICK) - Default configuration file (
config_file_name) (NITPICK) - Test fixtures (
test_folder) (NITPICK)
Plugin authors
The requirements and how to fix them are described in Create your own plugin.