MegaLinter descriptor
MegaLinter descriptor files (for MegaLinter contributors)
| Type | object |
|---|---|
| File match |
*.megalinter-descriptor.yml
|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/megalinter-descriptor/latest.json |
| Source | https://raw.githubusercontent.com/megalinter/megalinter/main/megalinter/descriptors/schemas/megalinter-descriptor.jsonschema.json |
Validate with Lintel
npx @lintel/lintel check
Descriptor definition for MegaLinter
Properties
Uppercase unique identifier for the language, tooling format or identifier
Descriptor type: language, format or tooling format
List of linter definitions associated to the descriptor
Names of the config files to be found (at least one), else descriptor will be deactivated. Search in workspace, linter rules path, and files_sub_directory
MegaLinter flavors that must not contain this descriptor
[]
Label for descriptor documentation, if different from Id. Ex: C++ for CPP
Regular expression list for filtering files by their content
[]
If file_contains_regex is set, use this property to filter extensions of the files that will be checked
[]
File extension filters. Empty list excludes all files. Can be overridden at linter level
[]
List of strings to filter the files according to their end of file name
[]
Regular expression list for filtering files by their base names using regex full match. Empty list includes all files. Can be overridden at linter level
[]
Set when a linter only lints a sub-directory
List of apk, dockerfile instructions, npm/pip/gem packages required to use the descriptor linters
{}
6 nested properties
APK packages identifiers (with or without version)
Cargo packages identifiers (with or without version)
Will be automatically integrated in generated Dockerfile
GEM packages identifiers (with or without version)
NPM packages identifiers (with or without version)
PIP packages identifiers (with or without version)
If set to true, this descriptor linters will always lint all files, undepending their name/extensions/content
If set to true, this descriptor linters will lint one by one all files collected by all other linters
If descriptor linters may be slow, put a negative processing order. If it is fast, put a positive one. If you don't know, do not set
Specifies the supported target platforms (OS, CPU architecture, CPU variant) for the install of this descriptor, and optionally overrides install instructions for a specific platform. Uses the same architecture naming conventions as Docker.
{
"platform": [
"linux/amd64"
]
}
2 nested properties
Defines special installation steps for a specific platform (OS/CPU architecture/CPU variant), replacing the descriptor's install instructions given in the install node for this target platform only.
The list of target platforms (OS/CPU architecture/CPU Variant) that this descriptor supports.
[
"linux/amd64"
]
Test folder containing good and bad files. Default: lowercase(descriptor_id)
Definitions
Command information
Command information