https://github.com/knetic/namespacer
Generates and modifies C# namespaces in codefiles across large codebases
https://github.com/knetic/namespacer
Last synced: 8 months ago
JSON representation
Generates and modifies C# namespaces in codefiles across large codebases
- Host: GitHub
- URL: https://github.com/knetic/namespacer
- Owner: Knetic
- License: mit
- Created: 2016-12-29T21:17:13.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-29T21:30:15.000Z (almost 9 years ago)
- Last Synced: 2025-01-07T09:42:51.822Z (9 months ago)
- Language: Go
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
namespacer
====For all C# codefiles under a given path, ensures they have a specific namespace.
Is this just a one-off tool?
====Yeah. I wouldn't probably recommend using it if you're not me. It'll work just fine, but it's not meant to be some full-fledged GNU-quality tool. It does an absurdly specific job that I needed done one morning; no more no less.
What are the caveats?
====* Uses string manipulation to determine this, rather than parsing and AST. This can lead to inconsistent results if your comments look like class/enum/struct signatures.
* Only does one namespace per file. Seriously, why would you do anything else?
* Depends upon having an explicit access modifier on your type signatures. Because seriously, why would you _not_ do that?