-
Notifications
You must be signed in to change notification settings - Fork 85
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
feat: add enforce linkage checker #24
Conversation
Codecov Report
@@ Coverage Diff @@
## master #24 +/- ##
=========================================
Coverage 74.87% 74.87%
Complexity 97 97
=========================================
Files 11 11
Lines 589 589
Branches 1 1
=========================================
Hits 441 441
Misses 147 147
Partials 1 1 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fine as far as it goes but I don't see the linkage checker in this PR?
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-enforcer-plugin</artifactId> | ||
<version>3.0.0-M3</version> | ||
<executions> | ||
<execution> | ||
<id>enforce</id> | ||
<goals> | ||
<goal>enforce</goal> | ||
</goals> | ||
<configuration> | ||
<rules> | ||
<requireMavenVersion> | ||
<version>[3.0,)</version> | ||
</requireMavenVersion> | ||
<requireJavaVersion> | ||
<version>[1.7,)</version> | ||
</requireJavaVersion> | ||
<requireUpperBoundDeps/> | ||
</rules> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already include this check in the shared-config parent project
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks,for the info. so can we add one more rule over there for linkage checker?
<LinkageCheckerRule implementation="com.google.cloud.tools.dependencies.enforcer.LinkageCheckerRule">
<reportOnlyReachable>true</reportOnlyReachable>
</LinkageCheckerRule>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you want <reportOnlyReachable>true</reportOnlyReachable>
here.
This enforcer config is already present in the shared-config since at least version 0.3.0 as can be seen here |
* Add the three examples from google-cloud-examples * Update example links to be internal * fix: skip clirr for examples artifact Co-authored-by: Jeff Ching <[email protected]>
Towards #6396