当前位置:网站首页>Handle series - install spotbugs and use them quickly
Handle series - install spotbugs and use them quickly
2022-06-29 07:49:00 【Best audience!】
Handlebar series
install SpotBugs
Preface
In the use of FindBugs When , Found applicable Idea Of FindBugs Already in 2016 Maintenance was stopped in , No longer compatible IDEA2020,
So we have this issue , Contains how to install spotBugs, And how to use spotBugs.
Tips : The following is the main body of this article
One 、SpotBugs What is it? ?
website :SpotBugs Is a use of static analysis to find Java Wrong tool in code ,SpotBugs need JRE( or JDK)1.8.0 Or later to run . however , It can be analyzed from 1.0 To 1.9 Any of the Java Version compiled program .
Static analysis : Check Java Bytecode (.class file ) Is there a mistake .
Two 、SpotBugs The download
1. Online installation ( The three step )



Click on install install
2. Website download
Landing official website ( The official website will automatically match the corresponding version , The premise is to start idea)
https://plugins.jetbrains.com/plugin/14014-spotbugs/versions
Baidu cloud downloads to local
link :https://pan.baidu.com/s/1QRqFWJISn1ZIjShzxaxeKg
Extraction code :9xwt
use Install Plugin from Disk Install local package , And then restart .
3、 ... and 、 Use SpotBugs
Common configuration SpotBugS



spotbugs It mainly includes 10 Categories: bug
1.Bad practice(90 More than ) Bad practice , Violate common sense or necessary code conventions , Like rewriting equals But I didn't rewrite it hashcode.
2.Correctness (150 More than ) The code here may cause errors at run time , Not in line with expectations , For example, null pointer error .
3.Experimental(9 Kind of )spotbugs Not applicable here , Probably the matching pattern doesn't apply here .
4.Internationalization(2 Kind of ) The original is :code flaws having to do with internationalization and locale, No similar error has been encountered .
5.Malicious code vulnerability(17 Kind of ) Code has the risk of being attacked by malicious code . For example, return a variable type reference and save it in the object field .
6.Multithreaded correctness(46 Kind of ) Thread safety , For example, code that may cause deadlock .
7.Bogus random noise(4 Kind of ) It is not an actual error in the software .
8.Performance(37 Kind of ) Bad code , For example, in iterations “+” Connection string .
9.Security(11 Kind of ) Unsafe external input is used , A vulnerability that could lead to remote control .
10.Dodgy(87 Kind of ) Code that causes its own confusion 
Use
1 Select the corresponding package or class 
2 View results , And analyze the results 
summary
Rational use of tools , It can help us greatly simplify the difficulty of work ,SpotBugs The use of can make our code more standardized .
If you feel helpful, you can Point like collection to support , If you can Focus on It can't be better in a moment ヾ(≧▽≦*)o
边栏推荐
- 498. 对角线遍历(模拟)
- Unexpected exception ... code: Badrequest when downloading Xilinx 2018.2
- TREE ALV 展开Node或者点击Toolbar按钮时DUMP(CL_ALV_TREE_BASE==============CP|SET_ITEMS_FOR_COLUMN)
- Postman pre request
- 358. K 距离间隔重排字符串 排序
- What you should know about databases
- cv2.cvtColor
- tf.compat.v1.assign
- Perceiving healthy life, enabling boundless connection -- contributing to openharmony 3.1 ecological construction
- [translation] E-Cloud. Large scale CDN using kubeedge
猜你喜欢

【深度之眼吴恩达机器学习作业班第四期】Regularization正则化总结

How to talk about salary correctly in software test interview?

cv2.cvtColor

【深度之眼吴恩达第四期作业班】多元线性回归Linear Regression with multiple variables总结

Blue Bridge Cup - minimum frame

打包时提示: Property ‘sqlSessionFactory‘ or ‘sqlSessionTemplate‘
![[FreeRTOS] interrupt mechanism](/img/ab/9b1d07048b4631d7cc95db99ed529a.png)
[FreeRTOS] interrupt mechanism

ShapeShifter: Robust Physical Adversarial Attack on Faster R-CNN Object Detector

ShapeShifter: Robust Physical Adversarial Attack on Faster R-CNN Object Detector

Swin Transformer理论讲解
随机推荐
【深度之眼吴恩达机器学习作业班第四期】Logistic Regression 逻辑回归总结
Explanation of swing transformer theory
postman预处理/前置条件Pre-request
What is a Test Architect
查看tensorflow是否支持GPU,以及测试程序
打包时提示: Property ‘sqlSessionFactory‘ or ‘sqlSessionTemplate‘
蓝桥杯——最小框架
matlab simulink 电网扫频仿真和分析
关于开发web场景下如何解决手机访问web跨域问题
matlab 多普勒效应产生振动信号和处理
1032 Sharing
帆船动力学仿真分析
358. K distance interval rearrange string sorting
101. 对称二叉树(递归与迭代方法)
pycharm的虚拟环境如何共享到jupyter-lab
Using cdockablepane to realize floating window in MFC
498. 对角线遍历(模拟)
[translation] how Bink drives the digital loyalty transactions of some of the largest banks in the UK
Schnuka: what is visual positioning system? How visual positioning system works
Cv:: mat and Base64 conversion (including picture compression and decompression)