Add refer-map support for custom indentation rules#393
Merged
weavejester merged 1 commit intoweavejester:masterfrom Feb 26, 2026
Merged
Add refer-map support for custom indentation rules#393weavejester merged 1 commit intoweavejester:masterfrom
weavejester merged 1 commit intoweavejester:masterfrom
Conversation
a1c4063 to
a4102e5
Compare
weavejester
reviewed
Feb 12, 2026
weavejester
requested changes
Feb 24, 2026
Owner
weavejester
left a comment
There was a problem hiding this comment.
Apologies for the delay in reviewing this. Overall great work - I just have some small suggestions about naming functions.
Owner
|
Great work! I think this PR is ready to be squashed down and merged. |
f4ff63b to
61f87bd
Compare
61f87bd to
646b593
Compare
bd8d2d3 to
c7f07ff
Compare
Support indentation rules for vars introduced via :refer in namespace declarations. When a var is referred into the namespace, cljfmt now looks up its original module and applies any configured indentation rules for that fully-qualified name. Fixes weavejester#368
c7f07ff to
102cd86
Compare
Contributor
Author
|
thanks! squashed |
Owner
|
Merged! I'll cut a release soon with this added. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change introduces a
:refer-mapoption that allows users to define mappings of referred symbol names to their fully qualified namespace names. This is particularly useful for applying indentation rules to unqualified symbols that need to match against qualified indent rules, enhancing the flexibility of the formatting tool.Fixes #368