php MegaLinter Flavor
Description
Optimized for PHP based projects
Usage
- GitHub Action: megalinter/megalinter/flavors/php@v6-alpha
- Docker image: megalinter/megalinter-php:v6-alpha
- mega-linter-runner:
mega-linter-runner --flavor php
Embedded linters
Languages
| Language | Linter | Configuration key | Additional | |
|---|---|---|---|---|
| BASH | bash-exec | BASH_EXEC | ||
| shellcheck | BASH_SHELLCHECK | |||
| shfmt | BASH_SHFMT | |||
| GROOVY | npm-groovy-lint | GROOVY_NPM_GROOVY_LINT | ||
| KOTLIN | ktlint | KOTLIN_KTLINT | ||
| PHP | phpcs | PHP_PHPCS | ||
| phpstan | PHP_PHPSTAN | |||
| psalm | PHP_PSALM | |||
| phplint | PHP_PHPLINT | |||
| SQL | sql-lint | SQL_SQL_LINT | ||
| sqlfluff | SQL_SQLFLUFF |
Formats
Tooling formats
Other
| Code quality checker | Linter | Configuration key | Additional | |
|---|---|---|---|---|
| COPYPASTE | jscpd | COPYPASTE_JSCPD | ||
| git_diff | REPOSITORY_GIT_DIFF | |||
| gitleaks | REPOSITORY_GITLEAKS | |||
| goodcheck | REPOSITORY_GOODCHECK | |||
| secretlint | REPOSITORY_SECRETLINT | |||
| semgrep | REPOSITORY_SEMGREP | |||
| trivy | REPOSITORY_TRIVY | |||
| SPELL | misspell | SPELL_MISSPELL | ||
| cspell | SPELL_CSPELL |