Author:jfiat

Date:2014-06-04T15:19:40.000000Z


git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@1372 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
jfiat
2014-06-04 15:19:40 +00:00
parent 8554a25dbb
commit 3fa43ddaf9

View File

@@ -7,14 +7,27 @@ __NOTOC__
Assigning a variable to itself is a meaningless instruction due to a typing error. Most probably, one of the two variable names was misspelled. One example among many others: the programmer wanted to assign a local variable to a class attribute and used one of the variable names twice.
=Details=
*Scope: Instruction
*Enabled: Yes
*Severity: Warning
*Applicability: All
*Score: 70
{|
|-
| '''Scope'''
| Instruction
|-
| '''Enabled'''
| Yes
|-
| '''Severity'''
| Warning
|-
| '''Applicability'''
| All
|-
| '''Score'''
| 70
|}
=Example=
<e>a := a</e>
<e>a := a
</e>
=Suggested Fix=
Replace source or target with proper expression.