findbugs Questions
6
Solved
I am trying to use the FindBugs plugin for Gradle with an Android build.
The build.gradle file
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.buil...
3
Solved
When executing the clean maven command, the following error occurs:
Failed to execute goal
org.codehaus.mojo:findbugs-maven-plugin:3.0.0:findbugs (findbugs) on
Unable to parse configuration of...
6
Solved
I have an inner class in my Java class.
When I run find bugs, it recommends(warns) to make it as static.
What's the point of this warning? What's the advantage of making a inner class as sta...
2
Solved
I have the following Gradle build file: https://github.com/markuswustenberg/jsense/blob/a796055f984ec309db3cc0f3e8340cbccac36e4e/jsense-protobuf/build.gradle which includes:
checkstyle {
// TODO ...
Scraperboard asked 26/2, 2014 at 9:46
2
After every sonar scan we can see the list of newly added issues in both portal and Scan logs like shown below. Iam able to get the list of newly added issues using the Rest API
http://localhost:9...
Sheerlegs asked 10/9, 2015 at 12:4
2
I am trying to use the annotations of findbugs 1.3.2.
I used the edu.umd.cs.findbugs.annotations.NonNull annotation in a simple test,
and it works fine.
However, now I have a large project, compo...
1
Solved
I'm trying to use checkstyle and findbugs by doing mvn checkstyle:checkstyle but I have this error
This error
[ERROR] Failed to execute goal on project my-project: Could not resolve dependencies ...
Gerthagerti asked 17/3, 2019 at 14:2
3
I am getting below Findbugs error for my below code. please let me know what needs to do for this?
Code:
public void myMethod(Key key, long timestampMillis) {
File file = createFile(key, timesta...
Deleterious asked 20/7, 2011 at 5:5
1
As you might know, SuppressFBWarnings annotations are retained in the class files, but aren't needed on runtime, so FindBugs doesn't become a runtime dependency of your project. Unfortunately, thos...
2
I run an Android Studio v2.1.3 and use ./gradlew build to detect errors in the Android project with the Findbags.
Recently an error started to come up:
FAILURE: Build failed with an exception.
*...
Disturbed asked 4/10, 2016 at 12:10
1
Solved
I use FindBugs for static code analysis in my Android projects. The setup is the following:
quality.gradle
plugins.apply('findbugs')
task findbugs(type: FindBugs) {
ignoreFailures = false
effo...
2
Solved
I've made several attempts at getting package annotation @ParametersAreNonnullByDefault to work for me in a maven project but with no success.
Could someone share a link to a minimal/sample maven p...
Bleeding asked 1/4, 2011 at 16:26
4
Solved
I am using Gradle FindBugs Plugin. How can I print reported bugs to console? PMD plugin has a consoleOutput property. Is there a similar property for FindBugs?
4
Solved
I'm using Windows and Eclipse 3.7 Classic with ADT plugin for Android development.
I've just installed FindBugs and it have found a bug in auto-generated R.java class.
I want to exclude this clas...
3
I am trying to get sonar to work for a project with a quality profile that includes Findbugs rules.
However when analyzing the project the sonar anttask chrashes with the following error:
Caused ...
2
I have a lot of classes with @NonNull fields using Lombok builders.
@Builder
class SomeObject {
@NonNull String mandatoryField1;
@NonNull String mandatoryField2;
Integer optionalField;
...
}
...
Derryberry asked 13/7, 2018 at 12:16
2
Solved
While running sonar from jenkins job for one of my project I am facing issue ,
" Can not execute SonarQube analysis: Can not execute Findbugs with a timeout threshold value of 1200000 milliseconds...
Dorelle asked 19/11, 2014 at 19:37
17
Solved
We are introducing static analysis tools into the build system for our Java product. We are using Maven2 so Checkstyle and PMD integration come for free. However it looks like there is a large over...
Retinol asked 8/10, 2008 at 19:52
2
I'm trying to find bugs in on of our legacy code using findBugs. In one the methods, findBugs is giving OBL_UNSATISFIED_OBLIGATION error. I have verified that all streams are properly closed. Here ...
2
Solved
Is there a way to exclude Findbugs execution on classes under /src/test/java. I tried the following but it doesn't seem to work.
classes = classes.filter {
!it.path.contains("**classes\\test\\org...
3
Solved
I am in the process of evaluating FindBugs and am trying to make use of the excludeFilter so that the tool does not process the test packages or the generated ejb stubs.
I have tried the following...
4
Solved
Does anybody know how to configure the maven findbugs plugin to output a summary of the bugs to the console (similar to the pmd plugin)?
At present findbugs:check just prints out how many bugs th...
Titos asked 11/8, 2009 at 22:49
2
Solved
I want to write such a gradle task (using the Findbugs plugin) which fails if any Findbugs violations are found but only after completing the analysis. If I do ignoreFailures=true the task won't fa...
4
Solved
I have an interactive java program that allow user to send messages to a server, which behaves kind of like a shell, accepting user's keyboard input and perform various action.
For example
myPro...
1
Solved
We have been dealing with the issue for the last couple of years. I was waiting for Gradle 3.0 to be released to see if it would be fixed but unfortunately it has not. The issue is that if you use ...
© 2022 - 2024 — McMap. All rights reserved.