Comments (2)
Of course, sure.
The path to protolint depends on your GOPATH and PATH envs.
I demonstrated it under /tmp like below.
/ ❯❯❯ cd /tmp
/tmp ❯❯❯ go version
go version go1.12.5 darwin/amd64
/tmp ❯❯❯ GOPATH=/tmp go get -u -v github.com/yoheimuta/protolint/cmd/protolint
github.com/yoheimuta/protolint (download)
github.com/hashicorp/go-plugin (download)
github.com/hashicorp/go-hclog (download)
...
github.com/yoheimuta/protolint/internal/cmd
github.com/yoheimuta/protolint/cmd/protolint
/tmp ❯❯❯ ./bin/protolint -h
Usage of lint:
-config_dir_path string
path/to/protolint.yaml
-fix
mode that the command line can automatically fix some of the problems
-plugin value
plugins to provide custom lint rule set. Note that it's necessary to specify it as path format'
-reporter value
formatter to output results in the specific format. Available reporters are "plain"(default) and "junit".
-v verbose output that includes parsing process details
FYI: If it won't work for you, you can also grab the binary from the release page.
from protolint.
Got it!
I fixed by setting GOPATH using:
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
Thank you!
from protolint.
Related Issues (20)
- Stray double semi-colon cause erratic results
- protolint npm package isn't available HOT 3
- Error thrown when installing protolint through yarn HOT 1
- Can't read Unix domain socket as a file
- FILE_NAMES_LOWER_SNAKE_CASE fails to convert kebab case to snake case HOT 2
- RPC_NAMES_UPPER_CAMEL_CASE disable is ignored HOT 1
- Some rules do not support auto-disable HOT 5
- Allow exclusion list of field names for `FIELDS_HAVE_COMMENT` HOT 1
- ENUM_FIELD_NAMES_ZERO_VALUE_END_WITH failing even with `allow_alias = true` HOT 1
- CVEs in the latest version HOT 2
- Create folder for reporting output file
- Using config_path plugin parameter does not work
- panic in `protolint --fix`
- Json Report Enhancements HOT 3
- Configure rule severity via protolint config HOT 1
- Configuring severity does not work for MaxLineLengthRule HOT 1
- Rule for first value of enum should have numeric value zero? HOT 3
- Bug: Missing 'new' in https://github.com/yoheimuta/protolint/blob/master/bdist/js/install.mjs HOT 4
- please fix license inconsistency HOT 1
- Exit with 0 when -fix is enabled and the files to lint only contain fixable issues HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from protolint.