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

.dir-locals.el should be added to .gitignore and removed from repo #417

Closed
christetreault opened this issue Jul 14, 2015 · 7 comments
Closed
Labels

Comments

@christetreault
Copy link
Contributor

There is a .dir-locals.elfile in the project root. This file is evaluated by emacs every time a file is visited in the directory, and gives me the following output:

The local variables list in [prefix]/liquidhaskell/ contains values that may not be safe (*).

... stuff about prompt options ...

* eval : (setq default-directory (locate-dominating-file buffer-file-name ".dir-locals.el"))

Maybe this is useful to some people, but others may not like this file changing their default-directory. Since this is a personal choice type thing, please add this file to the .gitignore and remove it from the repository.

@ranjitjhala
Copy link
Member

Can you go ahead and do this? (Submit a pr) thanks!

@christetreault
Copy link
Contributor Author

Done

@nikivazou
Copy link
Member

Thanks!

@gridaphobe
Copy link
Contributor

Ack, sorry I missed this issue, but there was a reason for adding the .dir-locals.el to the repo. Setting the default-directory is the only way I know of to make flycheck run hlint from the project root, in order to pick up the settings in HLint.hs.

There are other things I would like to put in .dir-locals.el, like disabling tabs and trimming whitespace. These things are best specified per-project IMO as they can make for noisy commits in other projects.

@christetreault
Copy link
Contributor Author

I guess the real question is: How critical is it that all emacs users get the specialized HLint settings?

If the special rules are important (organization coding standards, performance, etc...) maybe the build system should require that HLint pass before it will build?

@spinda
Copy link
Contributor

spinda commented Jul 16, 2015

If we really wanted, we could add it to Travis's tests...

On Thu, Jul 16, 2015, 12:40 Chris Tetreault [email protected]
wrote:

I guess the real question is: How critical is it that all emacs users get
the specialized HLint settings?

If the special rules are important (organization coding standards,
performance, etc...) maybe the build system should require that HLint pass
before it will build?


Reply to this email directly or view it on GitHub
#417 (comment)
.

@gridaphobe
Copy link
Contributor

Well, ideally a vim user would provide a similar set of project settings, etc. :)

Adding HLint to travis at the moment would be a bad idea because we certainly don't follow most of the suggestions, but maybe in the future...

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

No branches or pull requests

5 participants