Skip to content
This repository has been archived by the owner on Apr 24, 2019. It is now read-only.
/ lint Public archive

Standalone linter container for Storj projects

Notifications You must be signed in to change notification settings

storj-archived/lint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

storj/lint

This Docker container implements running linter on a Go package with modules.

Installing

To create the docker image:

docker build -t storj/lint:dev .

Running

Inside the linted repository with go.mod run:

Linux or Mac:

docker run --rm -v "${PWD}":/source -v "${GOPATH}/pkg/mod":/go/pkg/mod storj/lint:dev

Windows:

docker run --rm -v "%CD%":/source -v "%GOPATH%/pkg/mod":/go/pkg/mod storj/lint:dev

The specified volumes are needed:

  1. The source code: -v "${PWD}":/source. To get the source code into the container.
  2. The module cache: -v "${GOPATH}/pkg/mod":/go/pkg/mod. To avoid redownloading modules every time you run it.

About

Standalone linter container for Storj projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published