SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 4.7.3

Threshold is medium

Effort is default

Summary

Classes Bugs Errors Missing Classes
243 28 0 6

Files

Class Bugs
de.funfried.netbeans.plugins.external.formatter.eclipse.mechanic.WorkspaceMechanicConfigParser 3
de.funfried.netbeans.plugins.external.formatter.eclipse.xml.ConfigReader 2
de.funfried.netbeans.plugins.external.formatter.eclipse.xml.EclipseFormatterUtils 3
de.funfried.netbeans.plugins.external.formatter.html.jsoup.JsoupHtmlFormatterService 1
de.funfried.netbeans.plugins.external.formatter.java.eclipse.EclipseJavaFormatterService 1
de.funfried.netbeans.plugins.external.formatter.java.eclipse.ui.EclipseJavaFormatterOptionsPanel 5
de.funfried.netbeans.plugins.external.formatter.java.palantir.PalantirJavaFormatterService 1
de.funfried.netbeans.plugins.external.formatter.java.spring.SpringJavaFormatterService 1
de.funfried.netbeans.plugins.external.formatter.javascript.eclipse.EclipseJavascriptFormatterService 1
de.funfried.netbeans.plugins.external.formatter.javascript.eclipse.ui.EclipseJavascriptFormatterOptionsPanel 4
de.funfried.netbeans.plugins.external.formatter.json.jackson.JacksonJsonFormatterService 1
de.funfried.netbeans.plugins.external.formatter.sql.dbeaver.DBeaverFormatterService 1
de.funfried.netbeans.plugins.external.formatter.sql.sqlformatter.SQLFormatterService 1
de.funfried.netbeans.plugins.external.formatter.ui.options.ExternalFormatterPanel 1
de.funfried.netbeans.plugins.external.formatter.xml.jsoup.JsoupXmlFormatterService 1
de.funfried.netbeans.plugins.external.formatter.xml.revelc.RevelcXmlFormatterService 1

de.funfried.netbeans.plugins.external.formatter.eclipse.mechanic.WorkspaceMechanicConfigParser

Bug Category Details Line Priority
Possible null pointer dereference in de.funfried.netbeans.plugins.external.formatter.eclipse.mechanic.WorkspaceMechanicConfigParser.createPropertiesFromFile(File) due to return value of called method STYLE NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE 106 Medium
This API (java/io/File.<init>(Ljava/lang/String;)V) reads a file whose location might be specified by user input SECURITY PATH_TRAVERSAL_IN 92 Medium
This web server request could be used by an attacker to expose internal services and filesystem. SECURITY URLCONNECTION_SSRF_FD 84 Medium

de.funfried.netbeans.plugins.external.formatter.eclipse.xml.ConfigReader

Bug Category Details Line Priority
This API (java/io/File.<init>(Ljava/lang/String;)V) reads a file whose location might be specified by user input SECURITY PATH_TRAVERSAL_IN 83 High
This web server request could be used by an attacker to expose internal services and filesystem. SECURITY URLCONNECTION_SSRF_FD 79 High

de.funfried.netbeans.plugins.external.formatter.eclipse.xml.EclipseFormatterUtils

Bug Category Details Line Priority
This API (java/nio/file/Paths.get(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;) reads a file whose location might be specified by user input SECURITY PATH_TRAVERSAL_IN 89 Medium
This API (java/io/FileInputStream.<init>(Ljava/lang/String;)V) reads a file whose location might be specified by user input SECURITY PATH_TRAVERSAL_IN 235 Medium
This web server request could be used by an attacker to expose internal services and filesystem. SECURITY URLCONNECTION_SSRF_FD 231 Medium

de.funfried.netbeans.plugins.external.formatter.html.jsoup.JsoupHtmlFormatterService

Bug Category Details Line Priority
de.funfried.netbeans.plugins.external.formatter.html.jsoup.JsoupHtmlFormatterService.isExpandTabToSpaces(Document, Preferences) has Boolean return type and returns explicit null BAD_PRACTICE NP_BOOLEAN_RETURN_NULL 174 High

de.funfried.netbeans.plugins.external.formatter.java.eclipse.EclipseJavaFormatterService

Bug Category Details Line Priority
de.funfried.netbeans.plugins.external.formatter.java.eclipse.EclipseJavaFormatterService.isExpandTabToSpaces(Document, Preferences) has Boolean return type and returns explicit null BAD_PRACTICE NP_BOOLEAN_RETURN_NULL 234 High

de.funfried.netbeans.plugins.external.formatter.java.eclipse.ui.EclipseJavaFormatterOptionsPanel

Bug Category Details Line Priority
This API (java/nio/file/Paths.get(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;) reads a file whose location might be specified by user input SECURITY PATH_TRAVERSAL_IN 411 High
This API (java/nio/file/Paths.get(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;) reads a file whose location might be specified by user input SECURITY PATH_TRAVERSAL_IN 487 High
This API (java/io/File.<init>(Ljava/lang/String;)V) reads a file whose location might be specified by user input SECURITY PATH_TRAVERSAL_IN 500 High
This API (java/nio/file/Paths.get(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;) reads a file whose location might be specified by user input SECURITY PATH_TRAVERSAL_IN 413 Medium
This API (java/nio/file/Paths.get(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;) reads a file whose location might be specified by user input SECURITY PATH_TRAVERSAL_IN 489 Medium

de.funfried.netbeans.plugins.external.formatter.java.palantir.PalantirJavaFormatterService

Bug Category Details Line Priority
de.funfried.netbeans.plugins.external.formatter.java.palantir.PalantirJavaFormatterService.isExpandTabToSpaces(Document, Preferences) has Boolean return type and returns explicit null BAD_PRACTICE NP_BOOLEAN_RETURN_NULL 197 High

de.funfried.netbeans.plugins.external.formatter.java.spring.SpringJavaFormatterService

Bug Category Details Line Priority
Possible null pointer dereference in de.funfried.netbeans.plugins.external.formatter.java.spring.SpringJavaFormatterService.getSpacesPerTab(Document) due to return value of called method STYLE NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE 205 Medium

de.funfried.netbeans.plugins.external.formatter.javascript.eclipse.EclipseJavascriptFormatterService

Bug Category Details Line Priority
de.funfried.netbeans.plugins.external.formatter.javascript.eclipse.EclipseJavascriptFormatterService.isExpandTabToSpaces(Document, Preferences) has Boolean return type and returns explicit null BAD_PRACTICE NP_BOOLEAN_RETURN_NULL 233 High

de.funfried.netbeans.plugins.external.formatter.javascript.eclipse.ui.EclipseJavascriptFormatterOptionsPanel

Bug Category Details Line Priority
This API (java/io/File.<init>(Ljava/lang/String;)V) reads a file whose location might be specified by user input SECURITY PATH_TRAVERSAL_IN 245 High
This API (java/nio/file/Paths.get(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;) reads a file whose location might be specified by user input SECURITY PATH_TRAVERSAL_IN 374 High
This API (java/io/File.<init>(Ljava/lang/String;)V) reads a file whose location might be specified by user input SECURITY PATH_TRAVERSAL_IN 455 High
This API (java/nio/file/Paths.get(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;) reads a file whose location might be specified by user input SECURITY PATH_TRAVERSAL_IN 376 Medium

de.funfried.netbeans.plugins.external.formatter.json.jackson.JacksonJsonFormatterService

Bug Category Details Line Priority
de.funfried.netbeans.plugins.external.formatter.json.jackson.JacksonJsonFormatterService.isExpandTabToSpaces(Document, Preferences) has Boolean return type and returns explicit null BAD_PRACTICE NP_BOOLEAN_RETURN_NULL 179 High

de.funfried.netbeans.plugins.external.formatter.sql.dbeaver.DBeaverFormatterService

Bug Category Details Line Priority
de.funfried.netbeans.plugins.external.formatter.sql.dbeaver.DBeaverFormatterService.isExpandTabToSpaces(Document, Preferences) has Boolean return type and returns explicit null BAD_PRACTICE NP_BOOLEAN_RETURN_NULL 203 High

de.funfried.netbeans.plugins.external.formatter.sql.sqlformatter.SQLFormatterService

Bug Category Details Line Priority
de.funfried.netbeans.plugins.external.formatter.sql.sqlformatter.SQLFormatterService.isExpandTabToSpaces(Document, Preferences) has Boolean return type and returns explicit null BAD_PRACTICE NP_BOOLEAN_RETURN_NULL 203 High

de.funfried.netbeans.plugins.external.formatter.ui.options.ExternalFormatterPanel

Bug Category Details Line Priority
new de.funfried.netbeans.plugins.external.formatter.ui.options.ExternalFormatterPanel(Preferences, Project) may expose internal representation by storing an externally mutable object into ExternalFormatterPanel.preferences MALICIOUS_CODE EI_EXPOSE_REP2 117 Medium

de.funfried.netbeans.plugins.external.formatter.xml.jsoup.JsoupXmlFormatterService

Bug Category Details Line Priority
de.funfried.netbeans.plugins.external.formatter.xml.jsoup.JsoupXmlFormatterService.isExpandTabToSpaces(Document, Preferences) has Boolean return type and returns explicit null BAD_PRACTICE NP_BOOLEAN_RETURN_NULL 173 High

de.funfried.netbeans.plugins.external.formatter.xml.revelc.RevelcXmlFormatterService

Bug Category Details Line Priority
de.funfried.netbeans.plugins.external.formatter.xml.revelc.RevelcXmlFormatterService.isExpandTabToSpaces(Document, Preferences) has Boolean return type and returns explicit null BAD_PRACTICE NP_BOOLEAN_RETURN_NULL 187 High