Send your code to this server to have it checked for errors, warnings, etc.
This is my first half-serious use of Google's Go, so please tell me where the code can improve, etc.
- set
Content-Type
HTTP header toapplication/x-php
Code is scanned with:
- the basic parser:
php -l
- PHP_CodeSniffer:
phpcs
phpcs.standard
: defaults to "PSR2"
- any path, path doesn't matter
- expects
Content-Type
HTTP header to be set - expects the code to be scanned to occupy the entire HTTP request body
- this project uses godep to manage package dependencies
- install gox and set it up for 64-bit Linux
gox -osarch="linux/amd64"
docker build -t IMAGE .
rm omnilint-server_linux_amd64
docker run -t -i -p 3000:3000 IMAGE
- use
-e
to set environment variables as required
-
PORT
andHOST
to control interface binding (default islocalhost:3000
) -
NEWRELIC_LICENSE
andNEWRELIC_NAME
for integration with New Relic -
CORS_ORIGINS
(with comma-separated origins) to enable CORS HTTP headers