From 3fa43ddaf98e292631b75e72af4bd3805f9ac6d0 Mon Sep 17 00:00:00 2001 From: jfiat Date: Wed, 4 Jun 2014 15:19:40 +0000 Subject: [PATCH] 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 --- .../ca001-self-assignment.wiki | 25 ++++++++++++++----- 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/documentation/current/eiffelstudio/eiffelstudio-reference/eiffel-inspector/eiffel-inspector-rules/ca001-self-assignment.wiki b/documentation/current/eiffelstudio/eiffelstudio-reference/eiffel-inspector/eiffel-inspector-rules/ca001-self-assignment.wiki index 2f8f9a08..1af43ead 100644 --- a/documentation/current/eiffelstudio/eiffelstudio-reference/eiffel-inspector/eiffel-inspector-rules/ca001-self-assignment.wiki +++ b/documentation/current/eiffelstudio/eiffelstudio-reference/eiffel-inspector/eiffel-inspector-rules/ca001-self-assignment.wiki @@ -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= -a := a +a := a + =Suggested Fix= Replace source or target with proper expression.