jokeyrhyme / omnilint-server

Send your code to this server to have it checked for errors, warnings, etc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

omnilint-server

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.

Language Support

PHP

  • set Content-Type HTTP header to application/x-php

Code is scanned with:

Options (Query String Arguments)

  • phpcs.standard: defaults to "PSR2"

HTTP routes

POST *

  • 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

Development

  • this project uses godep to manage package dependencies

Building the Docker image

  • install gox and set it up for 64-bit Linux
gox -osarch="linux/amd64"
docker build -t IMAGE .
rm omnilint-server_linux_amd64

Running the Docker image

docker run -t -i -p 3000:3000 IMAGE
  • use -e to set environment variables as required

Environment Variables

  • PORT and HOST to control interface binding (default is localhost:3000)

  • NEWRELIC_LICENSE and NEWRELIC_NAME for integration with New Relic

  • CORS_ORIGINS (with comma-separated origins) to enable CORS HTTP headers

About

Send your code to this server to have it checked for errors, warnings, etc

License:BSD 2-Clause "Simplified" License


Languages

Language:Go 89.1%Language:Shell 10.9%