-
Notifications
You must be signed in to change notification settings - Fork 133
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
Allow custom rules #139
Allow custom rules #139
Conversation
Create unifier/prep'ed rules inside check-expr and check-reader. This makes passing custom rules simpler
:reporter (name-to-reporter (:reporter options) | ||
cli-reporter) | ||
:rules (or rules all-rules)) | ||
(catch Exception e |
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.
Can you make indentation match the previous usage here?
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.
I am not sure what you mean by that. A code block would help.
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.
The previous catch block was indented inline with the start of (check-file
. So:
(try (check-file ...)
(catch Exception e ...))
@danielcompton I think all the things have been fixed according to your comments. Would it be possible to get this change merged ? |
Hey sorry I haven't had the chance to sit down and look at this properly yet, my weekend was full. I hope to get to this in the next week or so. Sorry for the delay. |
Hey Daniel, Take your time. |
I've merged this. Thanks! |
Hi @danielcompton! This one still isn't merged and it looks like an accident. Are there any plans to finally merge this one together with the #141 (a #140-related PR with the documentation update)? |
I'm not convinced this is a good idea. |
Counterpoint: using kibit on a specialized or closed-source codebase (at a job, in a personal project, etc) will have opportunities for helpful custom rules that 1) aren't generally useful and/or 2) can't even be shared due to privacy/copyright concerns. For example, I want to migrate my codebase from using two custom functions to a single unified custom function. There's no need for kibit in general to have a |
Valid point! |
Closing this PR in light of kibit entering maintenance status. (See this comment for further details.) |
makes passing custom rules simpler