Closed HakamFostok closed 8 months ago
The problem with these types of changes is that it touches every line in the file and makes blame harder. Mikayla will need to decide whether it's worth it.
Generally I prefer to avoid formatting-only changes as they negatively impact git blame
. I'd certainly recommend using file-scoped namespaces in new files.
I'd also like to change some other whitespace to using more mainstream C# style instead of Mono style and it would make sense to combine that with the file scoped namespace changes to minimize impact on blame. However I will need to think about that some more, and would probably want to manually review all changes to make sure autoformatting didn't adversely affect any readability.
Using a .git-blame-ignore-revs
file may be a solution to this, but that will need more investigation. Although it works on GitHub it doesn't work in all git tools, e.g. it's not enabled by default on the git cli.
thank you for the comment, I can see your point, that could be done later. For now, I am going to close this issue, as it will be tackled later
Thank you again 🙏
The C# namespaces are using the old style namespace, but I think they could be converted to the new file-scoped namespace.
That could increase the readability of the code.
I have experimented with that for only one project in the below PR, if this suggestion is approved, I could apply the new file-scoped names to all other projects and submit the PR.