Skip to content

Latest commit

 

History

History
58 lines (34 loc) · 1.86 KB

README.md

File metadata and controls

58 lines (34 loc) · 1.86 KB

Visual wrapper for Super Giggle and PHPCS

GitHub top language GitHub GitHub code size in bytes GitHub last commit

Super-Giggle allows you to visualize code violations using modern code conventions. Filter results checking only the last changes, unstaged files or a full scan in the project and choose PSR12, Pear, Zend among others popular code conventions.

Super Giggle Demo

Usage

Run the following container inside your working project:

docker container run --rm -p8120:80 -v$(pwd):/host rogersei/super-giggle

Access your browser in the following address http://localhost:8120

Check as bash command

Use check-changes to analyse the modified files in the working directory:

docker container run --rm -v$(pwd):/host rogersei/super-giggle check-changes

Or, to perform a pre-commit:

docker container run --rm -v$(pwd):/host rogersei/super-giggle check-staged

Even a fullscan:

docker container run --rm -v$(pwd):/host rogersei/super-giggle --fullscan

Using another standart, other than PSR12

docker container run --rm -v$(pwd):/host rogersei/super-giggle --standard=zend
docker container run --rm -v$(pwd):/host rogersei/super-giggle --fullscan --standard=pear

Warning

Super Giggle is a PHPCS wrapper, which uses JSON format and loads a report in memory. Full scan option, in a large project, requires a huge amount of memory and may take a couple minutes to complete.