author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Mon, 19 Oct 2015 17:04:52 +0300 | |
changeset 1769 | cadd23f8127f |
parent 1639 | ad05334bf5d4 |
child 1905 | fba288d59662 |
permissions | -rw-r--r-- |
1167 | 1 |
.. -*- coding: utf-8; -*- |
1334
9bf0d5a1f0cf
Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1322
diff
changeset
|
2 |
.. include:: HEADER.rst |
1167 | 3 |
|
4 |
================ |
|
5 |
Code analysis. |
|
6 |
================ |
|
1187 | 7 |
.. contents:: |
1167 | 8 |
|
9 |
About. |
|
10 |
====== |
|
11 |
||
12 |
* http://en.wikipedia.org/wiki/List_of_tools_for_static_code_analysis |
|
1179 | 13 |
* http://en.wikipedia.org/wiki/Static_code_analysis |
1175
eef4d07eff61
Program_verification
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1174
diff
changeset
|
14 |
* http://en.wikipedia.org/wiki/Automated_code_review |
1176 | 15 |
* http://en.wikipedia.org/wiki/Dynamic_code_analysis |
1175
eef4d07eff61
Program_verification
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1174
diff
changeset
|
16 |
* http://en.wikipedia.org/wiki/Program_analysis_%28computer_science%29 |
eef4d07eff61
Program_verification
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1174
diff
changeset
|
17 |
* http://en.wikipedia.org/wiki/Performance_analysis |
eef4d07eff61
Program_verification
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1174
diff
changeset
|
18 |
* http://en.wikipedia.org/wiki/Program_verification |
1167 | 19 |
|
1170 | 20 |
Splint. |
21 |
======= |
|
22 |
||
23 |
Secure Programming Lint, is a programming tool for statically checking C |
|
24 |
programs for security vulnerabilities and coding mistakes. Formerly called |
|
25 |
LCLint, it is a modern version of the Unix lint tool. |
|
26 |
||
27 |
http://en.wikipedia.org/wiki/Splint_%28programming_tool%29 |
|
28 |
||
1322 | 29 |
weblint. |
30 |
======== |
|
31 |
||
32 |
Syntax and minimal style checker for HTML. |
|
33 |
||
34 |
lintsh. |
|
35 |
======= |
|
36 |
||
37 |
Lintsh is a Bourne shell that optionally warns about suspicious or nonportable |
|
38 |
constructs. |
|
39 |
||
40 |
http://code.dogmap.org/lintsh/ |
|
41 |
Home page. |
|
42 |
||
1176 | 43 |
Valgrind. |
44 |
========= |
|
45 |
||
46 |
Runs programs on a virtual processor and can detect memory errors (e.g., misuse |
|
47 |
of malloc and free) and race conditions in multithread programs. |
|
48 |
||
49 |
http://en.wikipedia.org/wiki/Valgrind |
|
50 |
Wikipedia page. |
|
51 |
||
1179 | 52 |
Dmalloc. |
53 |
======== |
|
54 |
||
55 |
Dmalloc is a memory debugger C library. |
|
56 |
||
57 |
http://en.wikipedia.org/wiki/Dmalloc |
|
58 |
||
1180 | 59 |
Avalanche. |
60 |
========== |
|
61 |
||
62 |
Avalanche is a dynamic defect detection tool that generates "inputs of death" - |
|
63 |
input data reproducing critical bugs and vulnerabilities in the analysed |
|
64 |
program. |
|
65 |
||
66 |
http://code.google.com/p/avalanche/ |
|
67 |
Home page. |
|
68 |
http://en.wikipedia.org/wiki/Avalanche_%28dynamic_analysis_tool%29 |
|
69 |
Wikipedia page. |
|
70 |
||
1170 | 71 |
Sparse. |
72 |
======= |
|
73 |
||
74 |
Sparse is a tool designed to find possible coding faults in the Linux kernel. |
|
75 |
||
76 |
http://en.wikipedia.org/wiki/Sparse |
|
77 |
Wikipedia page. |
|
78 |
||
1167 | 79 |
PMD. |
80 |
==== |
|
81 |
||
82 |
PMD is a static ruleset based Java source code analyzer that identifies |
|
83 |
potential problems. |
|
84 |
||
85 |
PMD has plugins for JDeveloper, Eclipse, JEdit, JBuilder, Omnicore's CodeGuide, |
|
86 |
NetBeans/Sun Studio, IntelliJ IDEA, TextPad, Maven, Ant, Gel, JCreator, Hudson, |
|
87 |
Jenkins, Sonar and Emacs. |
|
88 |
||
89 |
http://pmd.sf.net/ |
|
90 |
Home page. |
|
91 |
http://en.wikipedia.org/wiki/PMD_%28software%29 |
|
1168 | 92 |
Wikipedia page. |
93 |
||
1171 | 94 |
Checkstyle. |
95 |
=========== |
|
96 |
||
97 |
Static code analysis tool used in software development for checking if Java |
|
98 |
source code complies with coding rules. |
|
99 |
||
100 |
http://en.wikipedia.org/wiki/Checkstyle |
|
101 |
Wikipedia page. |
|
102 |
||
103 |
FindBugs. |
|
104 |
========= |
|
105 |
||
106 |
http://en.wikipedia.org/wiki/FindBugs |
|
107 |
Wikipedia page. |
|
108 |
||
1174 | 109 |
Pychecker. |
110 |
========== |
|
111 |
||
112 |
http://en.wikipedia.org/wiki/Pychecker |
|
113 |
Wikipedia page. |
|
114 |
||
115 |
Pylint. |
|
116 |
======= |
|
117 |
||
118 |
http://en.wikipedia.org/wiki/Pylint |
|
119 |
Wikipedia page. |
|
120 |
||
1173 | 121 |
JSLint. |
122 |
======= |
|
123 |
||
124 |
JSLint is a static code analysis tool used in software development for checking |
|
125 |
if JavaScript source code complies with coding rules. |
|
126 |
||
127 |
It is provided primarily as an online tool, but there are also command-line |
|
128 |
adaptations. |
|
129 |
||
130 |
http://en.wikipedia.org/wiki/JSLint |
|
131 |
Wikipedia page. |
|
132 |
||
1172 | 133 |
Squale. |
134 |
======= |
|
135 |
||
136 |
Squale (Software Quality Enhancement) is an open-source platform that helps |
|
137 |
monitoring software quality for multi-language applications. It currently |
|
138 |
supports Java out-of-the-box, and can also analyse C/C++ and Cobol code with an |
|
139 |
adapter to McCabe tool. Squale is distributed under the terms of the LGPL v3 |
|
140 |
licence. |
|
141 |
||
142 |
http://en.wikipedia.org/wiki/Squale |
|
143 |
Wikipedia page. |
|
144 |
||
1168 | 145 |
Yasca. |
146 |
====== |
|
147 |
||
148 |
Yasca leverages external open source programs, such as FindBugs, PMD, JLint, |
|
149 |
JavaScript Lint, PHPLint, Cppcheck, ClamAV, Pixy, and RATS to scan specific file |
|
150 |
types, and also contains many custom scanners developed for Yasca. |
|
151 |
||
152 |
http://yasca.org/ |
|
153 |
Home page. |
|
154 |
http://yasca.org/ |
|
155 |
Development home page. |
|
156 |
http://en.wikipedia.org/wiki/Yasca |
|
157 |
Wikipedia page. |
|
158 |
||
1169 | 159 |
Sonar. |
160 |
====== |
|
161 |
||
162 |
Sonar uses various static code analysis tools such as Checkstyle, PMD, FindBugs, |
|
163 |
Clover to extract software metrics. |
|
164 |
||
165 |
http://en.wikipedia.org/wiki/Sonar_%28software_quality%29 |
|
1172 | 166 |
Wikipedia page. |
167 |
||
1639 | 168 |
sloccount. |
169 |
========== |
|
170 |
||
171 |
Count files or LOC in project hierarchy:: |
|
172 |
||
173 |
$ sudo apt-get install sloccount |
|
174 |
$ sloccount --addlangall $DIR/$PROJ |
|
175 |
$ rm -r $HOME/.slocdata/$PROJ |
|
176 |