-
Notifications
You must be signed in to change notification settings - Fork 2
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
Implement linters.one-resource-per-ns
#112
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great. Impressive to see the impact on key 👍
(is (= (sut/analyze "test/integration/formatting_stack/linters/one_resource_per_ns.clj") | ||
()))) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about (is (empty? (sut/analyze ...)))
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dunno. Asserting values is more specific than asserting computations (not good to author tests that pass on many inputs - seems sloppy); and also seeing the actual output of given function seems pretty useful.
test/integration/formatting_stack/linters/one_resource_per_ns.clj
Outdated
Show resolved
Hide resolved
3c45222
to
6f1f783
Compare
Brief
Fixes #78 (at least partially; I extracted an extended use case to #113)
QA plan
Author checklist
Reviewer checklist