Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 77ca0cf

Browse files
authored
Merge pull request #438 from felicity-semmle/cpp/SD-2777-delete-poor-qhelp
C++: Delete qhelp files with little useful content (SD-2777)
2 parents 025054e + 2847d5e commit 77ca0cf

19 files changed

Lines changed: 79 additions & 227 deletions

cpp/ql/src/Architecture/General Class-Level Information/ClassHierarchies.qhelp

Lines changed: 0 additions & 24 deletions
This file was deleted.

cpp/ql/src/Architecture/General Class-Level Information/ClassHierarchies.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @name Class hierarchies
3-
* @description Shows classes and their base classes.
3+
* @description Shows an inheritance hierarchy for classes and their base classes.
44
* @kind graph
55
* @id cpp/architecture/class-hierarchies
66
* @graph.layout organic

cpp/ql/src/Architecture/General Class-Level Information/HubClasses.qhelp

Lines changed: 0 additions & 25 deletions
This file was deleted.

cpp/ql/src/Architecture/General Class-Level Information/HubClasses.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @name Hub classes
3-
* @description Shows coupling between classes; red, large boxes are hub types that depend on many other classes
3+
* @description Shows coupling between classes. Large, red, boxes are hub types that depend on many other classes
44
* and are depended on by many other classes.
55
* @kind treemap
66
* @id cpp/architecture/hub-classes

cpp/ql/src/Architecture/General Class-Level Information/InheritanceDepthDistribution.qhelp

Lines changed: 15 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -5,44 +5,30 @@
55

66

77
<overview>
8-
<p>This query shows the distribution of inheritance depth across all types, i.e. classes. Library types are ignored.</p>
8+
<p>This query shows the distribution of inheritance depth across all types, that is, classes. Library types are ignored.</p>
99

1010
<p>The result of this query is a line graph showing, for each number <i>n</i>, how many types have an inheritance depth of <i>n</i>, where
1111
the inheritance depth of a type is the length of a longest path in the inheritance hierarchy from top class to the type.</p>
12-
13-
<p>When hovering the mouse pointer over a specific depth value, the number of types having this inheritance depth is displayed.</p>
14-
1512
</overview>
16-
<section title="How to Address the Query Results">
13+
14+
<recommendation>
1715
<p>The depth of a type is an indication of how deeply nested a type is in a given design.
1816
Very deep types can be an indication of over-engineering, whereas a system with predominantly shallow types
1917
may not be exploiting object-orientation to the full.</p>
18+
</recommendation>
2019

21-
22-
23-
24-
25-
</section>
2620
<references>
2721
<li>
28-
Shyam R. Chidamber and Chris F. Kemerer.
29-
<a href="http://www.pitt.edu/~ckemerer/CK%20research%20papers/MetricForOOD_ChidamberKemerer94.pdf">A Metrics Suite for Object Oriented Design
30-
</a>.
22+
Shyam R. Chidamber and Chris F. Kemerer,
23+
<i><a href="http://www.pitt.edu/~ckemerer/CK%20research%20papers/MetricForOOD_ChidamberKemerer94.pdf">A Metrics Suite for Object Oriented Design
24+
</a></i>.
3125
IEEE Transactions on Software Engineering,
32-
20(6), pages 476-493, June 1994.
33-
26+
20(6), pages 476-493, June 1994.</li>
3427

35-
36-
<a href="http://www.dmst.aueb.gr/dds/index.en.html">Diomides D. Spinnelis</a>.
37-
<a href="http://www.spinellis.gr/codequality/">Code Quality: The Open Source Perspective</a>.
38-
Addison-Wesley 2007.
39-
40-
41-
42-
<a href="http://www.dmst.aueb.gr/dds/index.en.html">Diomides D. Spinnelis</a>.
43-
<a href="http://www.spinellis.gr/sw/ckjm/">ckjm - Chidamber and Kemerer Java Metrics</a>.
44-
(implementation of CK metrics), 2006.
45-
46-
47-
48-
</li></references></qhelp>
28+
<li>
29+
Lutz Prechelt, Barbara Unger, Michael Philippsen, and Walter Tich, <i><a href="http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.159.2229&amp;rep=rep1&amp;type=pdf">A Controlled Experiment on Inheritance Depth as a Cost Factor for Code Maintenance
30+
</a></i>.
31+
Journal of Systems and Software, 65 (2):115-126, 2003.
32+
</li>
33+
</references>
34+
</qhelp>

cpp/ql/src/Architecture/General Class-Level Information/InheritanceDepthDistribution.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @name Inheritance depth distribution
3-
* @description Shows distribution of inheritance depth across all classes.
3+
* @description Shows the distribution of inheritance depth across all classes.
44
* @kind chart
55
* @id cpp/architecture/inheritance-depth-distribution
66
* @chart.type line

cpp/ql/src/Architecture/General Namespace-Level Information/CyclicNamespaces.qhelp

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,15 @@
77
<overview>
88
<p>This query shows namespaces that cyclically depend
99
on one another.</p>
10-
11-
<p />
12-
1310
</overview>
14-
<section title="How to Address the Query Results">
15-
<p>If there are cyclic dependencies between packages, they cannot be developed and tested independently. It is thus preferable to
16-
eliminate such cycles from the program.</p>
17-
18-
19-
2011

12+
<recommendation>
13+
<p>If there are cyclic dependencies between packages, they cannot be developed and tested independently.
14+
It is better to eliminate such cycles from the program.</p>
15+
</recommendation>
2116

22-
</section>
2317
<references>
2418
<li>Robert Martin's <a href="https://drive.google.com/file/d/0BwhCYaYDn8EgOGM2ZGFhNmYtNmE4ZS00OGY5LWFkZTYtMjE0ZGNjODQ0MjEx/view">Acyclic Dependencies Principle</a>.
25-
</li></references></qhelp>
19+
</li>
20+
</references>
21+
</qhelp>

cpp/ql/src/Architecture/General Namespace-Level Information/GlobalNamespaceClasses.qhelp

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,15 @@
55

66

77
<overview>
8-
<p>This query finds classes that belong to no namespace</p>
9-
8+
<p>This query finds classes that belong to no namespace.</p>
109
</overview>
11-
<section title="How to Address the Query Results">
12-
<p>If there are too many classes that belong to no namespace, consider creating namespaces to get a better project structure.</p>
13-
14-
1510

11+
<recommendation>
12+
<p>If there are many classes that belong to no namespace, consider defining namespaces to create a better project structure.</p>
13+
</recommendation>
1614

17-
18-
</section>
1915
<references>
20-
16+
<li>C++ reference: <a href="https://en.cppreference.com/w/cpp/language/namespace">Namespaces</a>
17+
</li>
2118
</references>
2219
</qhelp>

cpp/ql/src/Architecture/General Namespace-Level Information/GlobalNamespaceClasses.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @name Global namespace classes
3-
* @description Finds classes that belong to no namespace
3+
* @description Finds classes that belong to no namespace.
44
* @kind table
55
* @id cpp/architecture/global-namespace-classes
66
*/

cpp/ql/src/Architecture/General Namespace-Level Information/NamespaceDependencies.qhelp

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)