-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Expand file tree
/
Copy pathFLinesOfCode.qhelp
More file actions
40 lines (33 loc) · 1.01 KB
/
FLinesOfCode.qhelp
File metadata and controls
40 lines (33 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<!DOCTYPE qhelp PUBLIC
"-//Semmle//qhelp//EN"
"qhelp.dtd">
<qhelp>
<overview>
<include src="FLinesOfCodeOverview.inc.qhelp" />
</overview>
<recommendation>
<p>
The solution depends on the reason for the high number of lines:
</p>
<ul>
<li>
If the file's main class is too large, you should refactor it into smaller classes,
for example by using the 'Extract Class' refactoring from [Fowler].
</li>
<li>
If the file's main class contains many nested classes, you should move the nested classes to their
own files (in a subsidiary package, where appropriate).
</li>
<li>
If the file contains multiple non-public classes in addition to its main
class, you should move them into separate files. This is particularly important if they are
logically unrelated to the file's main class.
</li>
<li>
If the file has been automatically generated by a tool, no changes are required because the file
will not be maintained by a programmer.
</li>
</ul>
</recommendation>
<include src="FLinesOfCodeReferences.inc.qhelp" />
</qhelp>