You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a perfectly valid namespace, but it is not clear how Standard Clojure Style should handle the comments here. After pretty-printing the ns with Standard Clojure Style, it will look like the following:
(nscom.example.my-app;; comment 1
(:refer-clojure:exclude [get some->])) ;; what to put here?
This is probably a "not possible to fix completely" scenario, and I think the best user experience might be to warn or error if we detect this case.
Presumably, if the user desires to format their codebase using Standard Clojure Style then they are ok with "losing" these comments after the formatting process, but I do not love the fact that we are "throwing away" some of their code here. There is also the #_ :standard-clj/ignore escape hatch for special cases.
In some cases, comments for individual symbols inside the
ns
form are not supported. Example:This is a perfectly valid namespace, but it is not clear how Standard Clojure Style should handle the comments here. After pretty-printing the
ns
with Standard Clojure Style, it will look like the following:This is probably a "not possible to fix completely" scenario, and I think the best user experience might be to warn or error if we detect this case.
Presumably, if the user desires to format their codebase using Standard Clojure Style then they are ok with "losing" these comments after the formatting process, but I do not love the fact that we are "throwing away" some of their code here. There is also the
#_ :standard-clj/ignore
escape hatch for special cases.Related to Issue #140
The text was updated successfully, but these errors were encountered: