-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Consider adding leading dot to config files for visibility #1566
Comments
Which config file are you you talking about here? There is the CodeSniffer.conf file that is used to store vars set using The .conf file is normally hidden away and user-specific while the phpcs.xml file is normally committed to a repo and used by multiple developers. The .conf file probably doesn't need a name change given it is hidden, and the phpcs.xml file follows the same standard as other QA tools like PHPUnit. So I'm not sure why a name change of these files would make sense. Are there other config files I'm forgetting? |
Sorry, I meant
That's true. I'll ask the same thing to PHPUnit depending on how this discussion goes 👍
Basically, to follow the unspoken standard of files that don't "logically belong" to a project source code to start with a dot. Examples are |
I can allow the phpcs.xml file to be prefixed with a dot, but I can't ban the current format. This would extend to list of files PHPCS looks for to:
Is that what you're after? |
Yes, it was my purpose. My guess is that people will slowly use the ones with initial dots, and eventually the other ones will be almost unused. |
That's a pretty small change, so I've committed support for the dot prefix and people can make up their own mind as to how they want the files to be named. Thanks for the suggestion. |
I was just having a play around with this and am wondering whether the order in which the files are searched for is intuitive enough. @gsherwood As the non-
|
Seems like a fair enough change. I'd be happy to merge a PR for it. |
@gsherwood Thanks for your response. PR #1693 should take care of it ;-) |
@skyrpex Just wondering - did you ever open the issue for PHPUnit ? And if so, link please ? (I searched but couldn't find it) |
I'm sorry, I totally forgot it. There it is 😆 |
@skyrpex Excellent! Thanks ;-) |
Pretty much what the title says. It's pretty common to use hidden files (aka leading dot filenames) for configuration files (see eslint and editorconfig).
Edit: I mean
phpcs.xml
and its siblings.I'm wondering if you're open to MR for this change. I can contribute.
The text was updated successfully, but these errors were encountered: