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

FDP-2318: spotless #18

Merged
merged 7 commits into from
Oct 3, 2024
Merged

FDP-2318: spotless #18

merged 7 commits into from
Oct 3, 2024

Conversation

loesimmens
Copy link
Contributor

No description provided.

echo "Running git pre-commit hook. Running Spotless Apply... "
echo "*********************************************************"

[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"
Copy link
Member

Choose a reason for hiding this comment

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

Is this actually needed?

Copy link
Contributor

@sanderv sanderv Oct 2, 2024

Choose a reason for hiding this comment

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

Yes. IntelliJ in WSL with sdkman runs a 'dumb' /bin/sh in which sdkman is not initialized (it is in bash/zsh, not in sh). Java is needed in this pre-commit hook because gradle/spotless is run

@@ -0,0 +1,35 @@
#!/bin/bash
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't we include a copyright header here as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@@ -0,0 +1,3 @@
// SPDX-FileCopyrightText: Contributors to the GXF project
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this become:

Suggested change
// SPDX-FileCopyrightText: Contributors to the GXF project
// SPDX-FileCopyrightText: Copyright Contributors to the GXF project

?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

Copy link

sonarqubecloud bot commented Oct 3, 2024

@smvdheijden smvdheijden merged commit 1008503 into main Oct 3, 2024
3 checks passed
@smvdheijden smvdheijden deleted the feature/FDP-2318-spotless branch October 3, 2024 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants