question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enable Spotbugs check on All Track 2 SDK Samples and test code files.

See original GitHub issue

Spotbugs check does not run on Track 2 Samples and Test code files currently. Enable it in sdk/parents/azure-client-sdk-parent/pom.xml, set this flag to true. : ClickHere Fix the spotgubs issues in all the track 2 SDKs samples and test code files.

  • azure-search-documents (#14755)

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
alzimmermsftcommented, Jun 10, 2020

To make this more of a rolling change specific to each library you should add this configuration into its pom.xml.

<build>
  <plugins>
    <plugin>
      <groupId>com.github.spotbugs</groupId>
      <artifactId>spotbugs-maven-plugin</artifactId>
      <version>3.1.12.2</version> <!-- {x-version-update;com.github.spotbugs:spotbugs-maven-plugin;external_dependency} -->
      <configuration>
        <includeTests>true</includeTests>
       </configuration>
    </plugin>
  </plugins>
</build>

If your POM already includes a plugins section for build you only need to add in the plugin configuration. This will merge with what is linked in @g2vinay’s comment but change it to include tests.

@vcolin7 @hemanttanwar @conniey @samvaity @sima-zhu @mssfang

0reactions
ki1729commented, Apr 8, 2022

Unassigning myself form the issue, ServiceBus has spotbugs enabled, and no open issues reported from spotbugs

Read more comments on GitHub >

github_iconTop Results From Across the Web

spotbugs:check - SpotBugs Maven Plugin
Requires a Maven project to be executed. Requires dependency resolution of artifacts in scope: test . The goal is thread-safe and supports ...
Read more >
Using the SpotBugs Maven Plugin - Read the Docs
This chapter describes how to integrate SpotBugs into a Maven project. ... We suggest you to check the Find Security Bugs a SpotBugs...
Read more >
Apache Tomcat 9 (9.0.70) - Changelog
Expand the spotbugs Ant task to also cover test code. ... the resource files for the Apache Tomcat installer for Windows so that...
Read more >
Program Analysis Tools
2 Style and Anomaly Checking. 2.1 Lint. 2.2 Static Analysis by Compilers. 2.3 CheckStyle. 2.4 FindBugs. 2.5 SpotBugs.
Read more >
Handling uniqueness with Lambda SnapStart
Lambda provides a scanning tool to help you check for code that assumes uniqueness. The SnapStart scanning tool is an open-source SpotBugs plugin...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found