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

SONARPHP-1567 Add Maven build system to custom rules #1320

Merged
merged 2 commits into from
Nov 19, 2024
Merged

Conversation

GabinL21
Copy link
Contributor

@GabinL21 GabinL21 commented Nov 18, 2024

@GabinL21 GabinL21 self-assigned this Nov 18, 2024
Copy link
Contributor

@jonas-wielage-sonarsource jonas-wielage-sonarsource left a comment

Choose a reason for hiding this comment

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

LGTM!
I like the concise description

@@ -17,6 +17,7 @@ jobs:
- uses: actions/checkout@v4
- run: |
sed -i 's/version=.*/version=${{ github.event.inputs.version }}/' gradle.properties
cd php-custom-rules-plugin/maven && mvn versions:set -DgenerateBackupPoms=false -DnewVersion=${{ github.event.inputs.version }}
Copy link
Contributor

Choose a reason for hiding this comment

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

Please test that it's working. You can trigger the workflow from this branch.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It works! #1324
(I'm bumping the custom rules version to 3.40-SNAPSHOT too, missed that)

<pluginName>PHP Custom Rules</pluginName>
<pluginClass>org.sonar.samples.php.PHPCustomRulesPlugin</pluginClass>
<sonarLintSupported>true</sonarLintSupported>
<pluginApiMinVersion>9.9</pluginApiMinVersion>
Copy link
Contributor

Choose a reason for hiding this comment

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

Why did it change from 9.13 to 9.9 from the original pom?
https://github.com/SonarSource/sonar-php/blob/3.38.0.12239/php-custom-rules/pom.xml

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was for consistency with sonar-php-plugin, but on second thought it makes more sense to be more restrictive for the custom rules one since we don't know what APIs users will use, I'll change it back

Copy link

@GabinL21 GabinL21 merged commit f2451ea into master Nov 19, 2024
17 checks passed
@GabinL21 GabinL21 deleted the SONARPHP-1567 branch November 19, 2024 09:06
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