Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't prune require forms if they are needed for a given import to work #367

Merged
merged 2 commits into from
Feb 9, 2022

Conversation

vemv
Copy link
Member

@vemv vemv commented Feb 8, 2022

Fixes #194

@@ -116,18 +118,69 @@
(-> pattern re-pattern (re-find ns-name)))
(libspec-allowlist/libspec-allowlist)))))

(defn- prune-libspec [symbols-in-file current-ns libspec]
(if (libspec-should-never-be-pruned? libspec)
(defn imports->namespaces [imports]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All public functions should have a docstring (and ideally an :added metadata as well).

symbol)))
imports))

(defn libspec->namespaces [libspec]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

Copy link
Member

@bbatsov bbatsov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall the changes look good to me.

@vemv vemv merged commit 56ac8e2 into master Feb 9, 2022
@vemv vemv deleted the 194 branch February 9, 2022 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cljr-clean-ns when importing a deftype
2 participants