Generating namespace forms


  • Type: Enhancement Enhancement
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:


Since tools.namespace supports extracting dependencies from a namespace form (, would it also be in scope for tools.namespace to support generating namespace forms?

That is, could we add a function that, given a list of dependent namespaces, java classes, etc., generates a namespace form in a canonical style (e.g.,

My use case is linting/reformatting a few hundred namespace declarations across large enterprise project.
I'd like to do this programmatically — since I haven't found any tools so far, I thought I'd write my own, and would like to make it open source if possible.

Thought I'd run it by y'all first in case it'd be in scope for tools.namespace and there were specific design considerations I should keep in mind before writing the code.
(And no worries if this is out of scope because it's too bike-sheddy, etc.)


There are no entries against this issue.


Vote (0)
Watch (0)


  • Created: