-
Notifications
You must be signed in to change notification settings - Fork 149
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
EZP-26801: User specific files should not appear in .gitignore #148
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok.
But.. maybe you can make sure to add a internal comment here referring to how people can add these to global their git settings? They'll end up looking in here for it, so natural place to point out where they need to go.
996e0be
to
e9d8c3f
Compare
@andrerom good idea, added (both in pull request description and commit message). |
Can we the message to user as a comment in the |
I like it, added. |
What's the difference of files being specified here or in global Yes, I know I can add it back myself, but I'm talking about sensible defaults here. |
I guess the Symfony good practice (since the goal here is to have a nicer medal on sensio insight) is about not adding user specific information that have nothing to do with the code itself. If you are using PHP Storm for example (following your example), you are probably using it for more than one project, so having a global config sounds quite smart. If you want to document it for developers, you should tell them to do it while installing their IDE.
|
I'm gonna agree with what SensioLabsInsight suggests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Appeoved with example.
# files should be excluded globally (for every Git repository). | ||
# | ||
# More details about excluding specific file on your local environment can be found | ||
# in the official GitHub article: https://help.github.com/articles/ignoring-files/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add an example for how to exclude at least idea and netbeans files so it's more clear, and so most of us can avoid having to check the link and deduct it ourselves ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated... I won't say anything :)
The goal is to have sensible defaults which make sure that files that should not be in repo don't end up in repo, without me having to going from person to person and telling them to add the config to global
Maybe, but in large teams you cannot expect and make sure that each and every member of the team, especially those inexperienced and remote ones, have it setup correctly.
That's overreaching. With PhpStorm you basically covered 99% of them, so I don't think there is need to. |
Hi @emodric
That's why I added link to the official GitHub article where you can find more details on how to exclude files for different use cases. In your example this will be https://help.github.com/articles/ignoring-files/#explicit-repository-excludes |
That's just a dirty and backwards hack. Instead of having specific things in It doesn't feel wrong to you to add an 18 line comment (which no one will read) explaining something to users, just for the sake of a platinum medal, instead of having 2 lines in |
@emodric your point have been made, but maybe you should use some of that heat to discussion to symfony community so they adjust their rules instead. |
It's not heat, it's a discussion ;) My point is only that we don't have to blindly follow Symfony community rules. |
@andrerom can we merge it? |
Disagreement with user should be resolved first, one option is reaching out to symfony and getting them to remove this from their recommendations.
It is not my intention to block this PR, I was just expressing an alternate opinion to be considered. I'm sure those who want |
@andrerom disagreement with user seems to be resolved. This PR was created as a suggestion to use "best practises" recommended by Insight. If there is not approval for merge then I will just close it. |
* [Platform.sh]: Added ElasticSearch support * fixup! [Platform.sh]: Added ElasticSearch support
https://jira.ez.no/browse/EZP-26801
We want platinum medal in SensioLabsInsight! ;-)