Sign inSign up

alexandertyutin/phpcs

By alexandertyutin

•Updated almost 7 years ago

Image of phpcs-security-audit (https://github.com/FloeDesignTechnologies/phpcs-security-audit)

Image
0

142

alexandertyutin/phpcs repository overview

This is just another image of phpcs-security-audit

⁠How to run

You can run this image just by this command

docker run --rm -it -v YOUR_PROJECT_DIR_HERE:/opt/mount:ro alexandertyutin/phpcs

or you can use this bash script (check the latest version here⁠)

#!/bin/bash
SCAN_DIR=${PWD}
for i in "$@"
do
        case $i in
                -ir=*)
                SCAN_DIR=${PWD}/"${i#*=}"
                shift
                ;;
        esac
done

echo ${SCAN_DIR}

docker run --rm -it -v ${SCAN_DIR}:/opt/mount:ro alexandertyutin/phpcs

The script usage syntax:

$ ./run_test.sh -ir=YOUR_PROJECT_DIR_HERE

If there will be no parameters given the script will use current running directory as working directory.

Tag summary

Content type

Image

Digest

Size

-

Last updated

almost 7 years ago

docker pull alexandertyutin/phpcs