/[eiffelstudio]/branches/eth/eve/Src/framework/code_analysis/localization/ca_names.e
ViewVC logotype

Contents of /branches/eth/eve/Src/framework/code_analysis/localization/ca_names.e

Parent Directory Parent Directory | Revision Log Revision Log


Revision 93427 - (show annotations)
Tue Nov 19 10:39:06 2013 UTC (6 years ago) by zurfluhs
File size: 2559 byte(s)
Code Analyzer: added rule 'unneeded object test local'.
1 note
2 description: "Summary description for {CA_NAMES}."
3 author: ""
4 date: "$Date$"
5 revision: "$Revision$"
6
7 frozen class
8 CA_NAMES
9
10 inherit {NONE}
11 SHARED_LOCALE
12
13 feature -- Rules
14
15 self_assignment_title: STRING_32
16 do Result := locale.translation ("Self-assignment") end
17
18 self_assignment_description: STRING_32
19 do Result := locale.translation ("Assigning a variable to itself is a meaningless statement%
20 % due to a typing error. Most probably, one of the two%
21 % variable names was misspelled. One example among many%
22 % others: the programmer wanted to assign a local variable%
23 % to a class attribute and used one of the variable names twice.") end
24
25 unused_argument_title: STRING_32
26 do Result := locale.translation ("Unused argument") end
27
28 unused_argument_description: STRING_32
29 do Result := locale.translation ("A feature should only have arguments which are actually %
30 %needed and used in the computation.") end
31
32 npath_title: STRING_32
33 do Result := locale.translation ("NPATH too high") end
34
35 npath_description: STRING_32
36 do Result := locale.translation ("The NPATH measure is too high.") end
37
38 npath_threshold_option: STRING_32
39 do Result := locale.translation ("Minimum NPATH threshold") end
40
41 empty_if_title: STRING_32
42 do Result := locale.translation ("Empty if statement") end
43
44 empty_if_description: STRING_32
45 do Result := locale.translation ("An empty if statement is useless and should be removed.") end
46
47 variable_not_read_title: STRING_32
48 do Result := locale.translation ("Variable not read after assignment") end
49
50 feature_never_called_title: STRING_32
51 do Result := locale.translation ("Feature never called") end
52
53 cq_separation_title: STRING_32
54 do Result := locale.translation ("No command-query separation (possible function side effect)") end
55
56 unneeded_object_test_title: STRING_32
57 do Result := locale.translation ("Unneeded object test local") end
58
59 unneeded_object_test_description: STRING_32
60 do Result := locale.translation ("For local variables, feature arguments, %
61 %and object test locals it is unnecessary to let the attached keyword %
62 %create a new and safe local reference.") end
63
64 feature -- GUI
65
66 tool_errors: STRING_32
67 do Result := locale.translation ("Errors") end
68
69 tool_warnings: STRING_32
70 do Result := locale.translation ("Warnings") end
71
72 tool_suggestions: STRING_32
73 do Result := locale.translation ("Suggestions") end
74
75 tool_hints: STRING_32
76 do Result := locale.translation ("Hints") end
77
78 end

Properties

Name Value
svn:eol-style native
svn:keywords Author Date ID Revision

  ViewVC Help
Powered by ViewVC 1.1.23