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

Search the config file .nitpick.toml in default directories like $HOME and $HOME/.config #417

Open
andreoliwa opened this issue Dec 17, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@andreoliwa
Copy link
Owner

Problem

I want to have a default .nitpick.toml configuration somewhere in my home directory, so I have a starting template for new projects.
Suggestion by @ 1kyu in #392 (comment)

Possible solution

  • Search $HOME/.nitpick.toml
  • Search $HOME/.config/.nitpick.toml
  • Search other default directories when in macOS?
  • What to do if multiple config files are found? Merge them or use the one higher in the tree?
@webknjaz
Copy link

webknjaz commented Sep 5, 2022

What to do if multiple config files are found? Merge them or use the one higher in the tree?

If they are merged, it'd be very hard to debug why on some people's machines the behavior is different, though. I've seen this problem in other tools, where for a mysterious reason CI behaves differently from the dev machines. It's exceptionally frustrating to troubleshoot such cases.

@andreoliwa
Copy link
Owner Author

If they are merged, it'd be very hard to debug why on some people's machines the behavior is different, though.

I agree.

I actually wanted to use another library to do everything related to style files, to only provide Nitpick with a single TOML file, merged and ready to use.
I created an issue for this: #469

@andreoliwa andreoliwa moved this to Upvoted / Requests in Nitpick Roadmap Sep 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Upvoted / Requests
Development

No branches or pull requests

2 participants