Skip to content

Add support for home directory expansion for -c/--config flag #290

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

Merged
merged 1 commit into from
Nov 14, 2018

Conversation

theckman
Copy link
Contributor

This change introduces the ability to use the tilde (~) character in your
-c/--config flag value to expand your home directory. If invoking this via the
command line with --config ~/.golangci-lint.yaml, the user's shell expands the
~ to the home directory. However, if something is invoking the program for
you (like an editor) it may not do the expansion.

Fixes #289

Signed-off-by: Tim Heckman [email protected]

Thank you for the pull request!

Please make sure you didn't directly change README.md: it should be changed only by changing README.tmpl.md and running make readme.

@CLAassistant
Copy link

CLAassistant commented Nov 14, 2018

CLA assistant check
All committers have signed the CLA.

This change introduces the ability to use the tilde (`~`) character in your
`-c/--config` flag value to expand your home directory. If invoking this via the
command line with `--config ~/.golangci-lint.yaml`, the user's shell expands the
`~` to the home directory. However, if something is invoking the program for
you (like an editor) it may not do the expansion.

Fixes golangci#289

Signed-off-by: Tim Heckman <[email protected]>
@jirfag
Copy link
Contributor

jirfag commented Nov 14, 2018

thank you!

@jirfag jirfag merged commit cb5d1da into golangci:master Nov 14, 2018
@theckman
Copy link
Contributor Author

@jirfag of course; and thank you for such a quick review/merge. 🙇

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

Successfully merging this pull request may close these issues.

golangci-lint should expand ~ to the home directory of the user
4 participants