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

Move 'base64' and 'slug' shared kernels to 'shared' top-level package #11016

Merged
merged 7 commits into from
Sep 29, 2024

Conversation

murdos
Copy link
Contributor

@murdos murdos commented Sep 29, 2024

Also fixes a few misqualified contexts: maven, gradle and ts-loader

renanfranca
renanfranca previously approved these changes Sep 29, 2024
Copy link
Contributor

@renanfranca renanfranca left a comment

Choose a reason for hiding this comment

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

Thank you for your work, @murdos !

Comment on lines -3 to +10
import static tech.jhipster.lite.module.domain.JHipsterModule.*;
import static tech.jhipster.lite.module.domain.JHipsterModule.artifactId;
import static tech.jhipster.lite.module.domain.JHipsterModule.from;
import static tech.jhipster.lite.module.domain.JHipsterModule.groupId;
import static tech.jhipster.lite.module.domain.JHipsterModule.javaDependency;
import static tech.jhipster.lite.module.domain.JHipsterModule.mavenPlugin;
import static tech.jhipster.lite.module.domain.JHipsterModule.moduleBuilder;
import static tech.jhipster.lite.module.domain.JHipsterModule.pluginExecution;
import static tech.jhipster.lite.module.domain.JHipsterModule.to;
Copy link
Contributor

Choose a reason for hiding this comment

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

@murdos : The expand import settings are defined in IntelliJ IDEA, or are they handled by Prettier?

Copy link
Contributor

@renanfranca renanfranca Sep 29, 2024

Choose a reason for hiding this comment

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

For example, in this commit, it was changed to * instead of staying expanded. I wish there were a way to make this setting the same for everyone.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry, I had to expand them, otherwise Intellij was not able correctly update imports for feature and module slugs :/

There's a way to uniform imports: we can add a checkstyle rule that forbid * imports.

Copy link
Contributor

Choose a reason for hiding this comment

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

It's cool! Do you use the same configuration as mine?
signal-2024-09-29-19-06-12-410.png

I like this configuration. It expands when there are fewer and put * when there are too many. What do you think about only adding these instructions at CONTRIBUTION.md?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Honestly, I don't like * at all.
It's often a source of conflicts when multiple developers touch the same file on different branches, and it's not explicit.
I usually forbid them on my projects.

Copy link
Contributor

@renanfranca renanfranca Sep 29, 2024

Choose a reason for hiding this comment

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

I can follow your lead as every IDE collapses the import sections. Let's do the checkstyle configuration l😄😉

@murdos murdos merged commit 2ce098e into jhipster:main Sep 29, 2024
34 checks passed
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.

2 participants