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

new General Code Rule: NO_CLASSES_SHOULD_USE_JODATIME #145

Merged
merged 1 commit into from
Feb 17, 2019
Merged

new General Code Rule: NO_CLASSES_SHOULD_USE_JODATIME #145

merged 1 commit into from
Feb 17, 2019

Conversation

sullis
Copy link
Contributor

@sullis sullis commented Feb 12, 2019

No description provided.

@sullis
Copy link
Contributor Author

sullis commented Feb 12, 2019

@codecholeric 👋 there is a build error in Travis CI. It appears to be 'executeRulesjava7junit4'

Can you review this?

@sullis
Copy link
Contributor Author

sullis commented Feb 14, 2019

Ready for review

@ghost
Copy link

ghost commented Feb 15, 2019

DeepCode encountered a problem when analyzing this pull request. If you want to retry, create a comment: "Retry Deepcode".

@codecholeric
Copy link
Collaborator

Thanks for your contribution!! 😃
I've made a quick review commit, the Maven integration test still didn't run on my machine, since the scope didn't match (main code used DateTime).
Can you do me a favor and sign off your commits according to the DCO? (compare https://github.com/TNG/ArchUnit/blob/master/CONTRIBUTING.md#commits)
I think the easiest thing would be if you squash together all your commits and my commit (git rebase -i HEAD~10) and then sign off via git commit -s --amend, but feel free to do it any way you want 😉 (in the end your commits need those sign-off suffixes)

*/
@PublicAPI(usage = ACCESS)
public static final ArchRule NO_CLASSES_SHOULD_USE_JODATIME =
noClasses().should(USE_JODATIME);
Copy link
Member

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");

Copy link
Collaborator

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 😉

@thebpc
Copy link

thebpc commented Feb 15, 2019

Retry Deepcode

@ghost
Copy link

ghost commented Feb 15, 2019

DeepCode analyzed this pull request.
There are no new issues.

@ghost
Copy link

ghost commented Feb 16, 2019

DeepCode analyzed this pull request.
There are no new issues.

Signed-off-by: Sean Sullivan <github@seansullivan.com>
@sullis
Copy link
Contributor Author

sullis commented Feb 16, 2019

LGTM @codecholeric

@codecholeric codecholeric merged commit 252e363 into TNG:master Feb 17, 2019
@codecholeric
Copy link
Collaborator

Merged, thanks again for your contribution 😃

@sullis
Copy link
Contributor Author

sullis commented Feb 17, 2019

Yes! 😄 When is next release of ArchUnit?

@sullis sullis deleted the GeneralCodingRule-NO_CLASSES_SHOULD_USE_JODATIME branch February 17, 2019 16:49
@codecholeric
Copy link
Collaborator

Next release will be within the next couple of weeks I think 😉 Definitely want to put #38 in it...

@sullis
Copy link
Contributor Author

sullis commented Mar 11, 2019

@codecholeric any plans to release [archunit] this week? I am eager to start using the new JodaTime code rule.

@codecholeric
Copy link
Collaborator

I plan on doing it over the weekend. Writing another little enhancement and wanna give some time for a review on #38

codecholeric added a commit that referenced this pull request Feb 21, 2021
…LD_USE_JODATIME

new General Code Rule: NO_CLASSES_SHOULD_USE_JODATIME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants