php MegaLinter Flavor
Description
Optimized for PHP based projects
Usage
- GitHub Action: megalinter/megalinter/flavors/php@v5
- Docker image: megalinter/megalinter-php:v5
- mega-linter-runner:
mega-linter-runner --flavor php
Embedded linters
Languages
Language | Linter | Configuration key | Format/Fix | |
---|---|---|---|---|
BASH | bash-exec | BASH_EXEC | ||
shellcheck | BASH_SHELLCHECK | |||
shfmt | BASH_SHFMT | |||
GROOVY | npm-groovy-lint | GROOVY_NPM_GROOVY_LINT | ||
KOTLIN | ktlint | KOTLIN_KTLINT | ||
PHP | php | PHP_BUILTIN | ||
phpcs | PHP_PHPCS | |||
phpstan | PHP_PHPSTAN | |||
psalm | PHP_PSALM | |||
SQL | sql-lint | SQL_SQL_LINT | ||
sqlfluff | SQL_SQLFLUFF |
Formats
Tooling formats
Other
Code quality checker | Linter | Configuration key | Format/Fix | |
---|---|---|---|---|
COPYPASTE | jscpd | COPYPASTE_JSCPD | ||
CREDENTIALS | secretlint | CREDENTIALS_SECRETLINT | ||
GIT | git_diff | GIT_GIT_DIFF | ||
SPELL | misspell | SPELL_MISSPELL | ||
cspell | SPELL_CSPELL |