omnilint-server

command module
v0.0.0-...-fabee13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2014 License: BSD-2-Clause Imports: 14 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL