Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ProjectConf: support files/directories/etc... based run #60

Closed
haya14busa opened this issue Dec 15, 2016 · 1 comment
Closed

ProjectConf: support files/directories/etc... based run #60

haya14busa opened this issue Dec 15, 2016 · 1 comment

Comments

@haya14busa
Copy link
Member

cont #47

With #47, reviewdog behavior can be configured by reviewdog.yml.
However, we cannot specify changed files, directories, or whatever with reviewdog.yml.

Example without reviewdog.yml:

$ vint $(git diff --name-only master | grep '.vim') | reviewdog -diff="git diff master" -efm="%f:%l:%c: %m"
autoload/vital/__vital__/Data/String.vim:9:11: Prefer single quoted strings (see Google VimScript Style Guide (Strings))
@haya14busa
Copy link
Member Author

Supporting to pass changed files as an environment variable is simple and useful.

FILES="file1\nfile2\nfile3"
cmd: <lint cmd> $(echo $FILES | grep '.go')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant