Skip to content

initial commit#1

Open
steverigano wants to merge 10 commits intogreen-code-initiative:mainfrom
steverigano:main
Open

initial commit#1
steverigano wants to merge 10 commits intogreen-code-initiative:mainfrom
steverigano:main

Conversation

@steverigano
Copy link
Copy Markdown

Repository initialization
First rule added
TODO : adapt when we'll get an answer from the community : https://community.sonarsource.com/t/need-to-use-sonar-iacs-kubernetes-assertions/141631

@@ -0,0 +1,30 @@
package org.greencodeinitiative.creedengo.infra.checks;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

All the Java test file could be deleted, they will be replace by test files (kubernetes yaml, Dockerfile, ...)


<dependencies>
<dependency>
<groupId>org.springframework.data</groupId>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This dependencies will no longer be needed here

@@ -0,0 +1,7 @@
sonar.organization=green-code-initiative
sonar.projectKey=green-code-initiative_ecoCode-linter
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Rename project key to new project

sonar.organization=green-code-initiative
sonar.projectKey=green-code-initiative_ecoCode-linter
sonar.projectName=creedengo - Infra language
sonar.sources=sonar-plugin/src/main/java/
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This will evolve when adding real test case


@Rule(key = "GCI1024")
public class UseOfProbesCheck implements IacCheck {
private static final String MESSAGE = "Please configure the probes to ensure the application is healthy and ready.";
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Rename the message like this "Use kubernetes probes to ensure the application is healthy and ready"

@@ -0,0 +1,96 @@
/*
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Could remove all Java test

@steverigano
Copy link
Copy Markdown
Author

steverigano commented May 21, 2025 via email

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.

2 participants