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

feat: add enforce linkage checker #24

Closed
wants to merge 1 commit into from

Conversation

athakor
Copy link
Contributor

@athakor athakor commented Jan 7, 2020

Towards #6396

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jan 7, 2020
@codecov
Copy link

codecov bot commented Jan 7, 2020

Codecov Report

Merging #24 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 313c83e...d36a264. Read the comment docs.

Copy link
Contributor

@elharo elharo left a 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?

Comment on lines +181 to +204
<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>
Copy link
Contributor

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

Copy link
Contributor Author

@athakor athakor Jan 8, 2020

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>

Copy link
Contributor

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.

@athakor
Copy link
Contributor Author

athakor commented Jan 17, 2020

This enforcer config is already present in the shared-config since at least version 0.3.0 as can be seen here

@athakor athakor closed this Jan 17, 2020
shubhwip pushed a commit to shubhwip/java-bigquerystorage that referenced this pull request Oct 7, 2023
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants