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

Lowercase namespace #1208

Closed
M-Zuber opened this issue Mar 22, 2016 · 15 comments
Closed

Lowercase namespace #1208

M-Zuber opened this issue Mar 22, 2016 · 15 comments
Labels
Status: Stale Used by stalebot to clean house Type: Feature New feature or request

Comments

@M-Zuber
Copy link
Contributor

M-Zuber commented Mar 22, 2016

At some point a folder called fixtures was introduced.
This lead to a number of classes having the namespaceOctokit.Tests.Integration.fixtures

Will make a PR to fix once #1144 is merged (as it introduces some more files to that namespace)

(Affected Files - potentially more)

@haacked
Copy link
Contributor

haacked commented Mar 22, 2016

I would love to remove all namespaces from unit and integration tests. They really don't serve a purpose for our tests. Namespaces are useful for libraries that you reference in order to disambiguate class names. But you never reference a set of unit tests for your own code. At least, we don't need to support that if you do for some wild reason. 😛

@M-Zuber
Copy link
Contributor Author

M-Zuber commented Mar 22, 2016

Would you be open to one fat PR that rips out all namespace parts lower than what matches the project?
Or shall I split it up?

@haacked
Copy link
Contributor

haacked commented Mar 22, 2016

Split it up. I worry that one big fat PR will cause problems for everybody else. :)

@shiftkey
Copy link
Member

Just a heads up - removing the namespaces is likely to cause a whole bunch of indenting changes to the test suite. It's a minor nuisance but things like git blame will then be full of lies...

@M-Zuber
Copy link
Contributor Author

M-Zuber commented Mar 27, 2016

What do you mean by indenting changes?
Based on my next comment I think I understand what you where saying, @shiftkey

@M-Zuber
Copy link
Contributor Author

M-Zuber commented Mar 27, 2016

An example of what things look like now is
image
@haacked do you want to just drop the .Clients or drop the namespace altogether (like ⬇️ )?
image

@shiftkey
Copy link
Member

@M-Zuber that's exactly the issue, and why I kinda put it aside when I started finding these 😢

@M-Zuber
Copy link
Contributor Author

M-Zuber commented Mar 29, 2016

IMO I would do the first option. having a namespace that matches the project name does not create noise (at least to me) - and that is what is included in the default.

Is there a setting that prevents VS from tacking on namespace parts to match the file system?

@shiftkey
Copy link
Member

Is there a setting that prevents VS from tacking on namespace parts to match the file system?

Unfortunately it seems to be R# only

@M-Zuber
Copy link
Contributor Author

M-Zuber commented Apr 18, 2016

I am voting for leaving a namespace that matches the project name, but dropping any further levels.

Files that currently have no namespace can stay that way.
I would also include adding a test to Conventions to the PR.

@shiftkey @haacked @ryangribble any feedback please?

@ryangribble
Copy link
Contributor

ryangribble commented Apr 19, 2016

It's very unfortunate because not even thinking about files where extra namespace levels were added due to folder path, we seem to have a real mix of unit and integration tests where some files have a namespace and others have none. My OCD wants things to be consistent, particularly now it's been brought to attention (:trollface:) , but yeah im not sure if the code/indentation churn is worth it...

I would also include adding a test to Conventions to the PR.

Pretty tough to do when there is inconsistency in the files. Or are you saying the convention test would "pass" if there is no namespace OR a namespace matching project, and would only fail when a namespace was present that didn't match the project?

@M-Zuber
Copy link
Contributor Author

M-Zuber commented Apr 19, 2016

Yeah I meant the the test should only fail if there is a namespace and it doesn't match the project

@M-Zuber
Copy link
Contributor Author

M-Zuber commented May 5, 2016

So how do we reach a consensus on this, so I can either code or close?

@shiftkey shiftkey self-assigned this May 5, 2016
@shiftkey
Copy link
Member

shiftkey commented May 5, 2016

@M-Zuber assigning myself to look at this tomorrow

@shiftkey shiftkey removed their assignment Jun 14, 2021
@nickfloyd nickfloyd added Type: Feature New feature or request and removed improvement labels Oct 27, 2022
@github-actions
Copy link

github-actions bot commented Aug 3, 2023

👋 Hey Friends, this issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Please add the Status: Pinned label if you feel that this issue needs to remain open/active. Thank you for your contributions and help in keeping things tidy!

@github-actions github-actions bot added the Status: Stale Used by stalebot to clean house label Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Stale Used by stalebot to clean house Type: Feature New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants