-
Notifications
You must be signed in to change notification settings - Fork 290
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
new General Code Rule: NO_CLASSES_SHOULD_USE_JODATIME #145
new General Code Rule: NO_CLASSES_SHOULD_USE_JODATIME #145
Conversation
@codecholeric 👋 there is a build error in Travis CI. It appears to be 'executeRulesjava7junit4' Can you review this? |
Ready for review |
DeepCode encountered a problem when analyzing this pull request. If you want to retry, create a comment: "Retry Deepcode". |
Thanks for your contribution!! 😃 |
*/ | ||
@PublicAPI(usage = ACCESS) | ||
public static final ArchRule NO_CLASSES_SHOULD_USE_JODATIME = | ||
noClasses().should(USE_JODATIME); |
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'd actually use:
noClasses().should(USE_JODATIME).because("modern Java projects use the [java.time] API instead");
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.
Yes, that actually is a good idea, I'll add that 😉
Retry Deepcode |
DeepCode analyzed this pull request. |
DeepCode analyzed this pull request. |
Signed-off-by: Sean Sullivan <github@seansullivan.com>
LGTM @codecholeric |
Merged, thanks again for your contribution 😃 |
Yes! 😄 When is next release of ArchUnit? |
Next release will be within the next couple of weeks I think 😉 Definitely want to put #38 in it... |
@codecholeric any plans to release [archunit] this week? I am eager to start using the new JodaTime code rule. |
I plan on doing it over the weekend. Writing another little enhancement and wanna give some time for a review on #38 |
…LD_USE_JODATIME new General Code Rule: NO_CLASSES_SHOULD_USE_JODATIME
No description provided.