PHP Code Code Analysis Tool commands moved to https://github.com/justcoded/git-extras repository.
This dockerized tool provides you Makefile commands to check and fix PHP code.
It's built on top of https://github.com/easy-coding-standard/easy-coding-standard library
and uses some other supported packages to cover as many rules as possible.
- Download code.mk
- Include
code.mk
in yourMakefile
include code.mk
- Use :)
This tool uses code.
namespace for all the commands it provides.
Use make help
if available in your project to see for available commands.
You can see details in code.mk
file to be aware of all available commands.
make code.check
make code.check path=src/app/Http
make code.check.dirty
make code.check.diff
make code.check.diff branch=main
make code.fix
make code.fix path=src/app/Http
make code.fix.dirty
make code.fix.diff
make code.fix.diff branch=main
- Publish the config
make code.config.publish
- Modify
ecs.php
file to fit your needs.
You can download a fresh code.mk
file using the following command:
make code.self-update