Detect bugs from Java code using FindBugs



Download 0,64 Mb.
bet1/6
Sana05.06.2022
Hajmi0,64 Mb.
#638201
  1   2   3   4   5   6
Bog'liq
asd 1



Akmal Muzafarov


Detect bugs from Java code using FindBugs.

Detect bugs from Java code using FindBugs.


Plan:

  1. Overview

  2. FindBugs Maven Plugin

    1. Maven Configuration

    2. Report Generation

  3. FindBugs Eclipse Plugin

    1. Installation

    2. Reports Browsing

    3. Eclipse Configuration

  4. FindBugs IntelliJ IDEA Plugin

    1. Installation

    2. Reports Browsing

    3. Configuration

  5. Report Analysis for the Spring-Rest Project

  6. Conclusion

FindBugs is an open source tool used to perform static analysis on Java code.


In this article, we're going to have a look at setting up FindBugs on a Java project and integrating it into the IDE and the Maven build.

In order to start generating static analysis reports, we first need to add the FindBugs plugin in our pom.xml:


<reporting>
<plugins>
<plugin>
<groupId>org.codehaus.mojogroupId>
<artifactId>findbugs-maven-pluginartifactId>
<version>3.0.4version>
plugin>
plugins>
reporting>
You can check out the latest version of the plugin on Maven Central.

Now that we have the Maven plugin properly configured, let's generate the project documentation using the mvn site command.


The report will be generated in the folder target/site in the project directory under the name findbugs.html.
You can also run the mvn findbugs:gui command to launch the GUI interface to browse the generated reports for the current project.
The FindBugs plugin can also be configured to fail under some circumstances – by adding the execution goal check to our configuration:
<
Download 0,64 Mb.

Do'stlaringiz bilan baham:
  1   2   3   4   5   6




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish