mirror of
https://github.com/EiffelSoftware/eiffel-org.git
synced 2025-12-07 07:12:25 +01:00
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:
@@ -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.
|
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=
|
=Details=
|
||||||
*Scope: Instruction
|
{|
|
||||||
*Enabled: Yes
|
|-
|
||||||
*Severity: Warning
|
| '''Scope'''
|
||||||
*Applicability: All
|
| Instruction
|
||||||
*Score: 70
|
|-
|
||||||
|
| '''Enabled'''
|
||||||
|
| Yes
|
||||||
|
|-
|
||||||
|
| '''Severity'''
|
||||||
|
| Warning
|
||||||
|
|-
|
||||||
|
| '''Applicability'''
|
||||||
|
| All
|
||||||
|
|-
|
||||||
|
| '''Score'''
|
||||||
|
| 70
|
||||||
|
|}
|
||||||
|
|
||||||
=Example=
|
=Example=
|
||||||
<e>a := a</e>
|
<e>a := a
|
||||||
|
</e>
|
||||||
|
|
||||||
=Suggested Fix=
|
=Suggested Fix=
|
||||||
Replace source or target with proper expression.
|
Replace source or target with proper expression.
|
||||||
|
|||||||
Reference in New Issue
Block a user