History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RSRP-36084
Type: Bug Bug
Status: Open Open
Priority: Normal Normal
Assignee: Eugene Pasynkov
Reporter: Peter B
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ReSharper

Chop compound condition in "if" statement

Created: 21 Feb 07 17:26   Updated: 13 Mar 07 16:41
Component/s: Code Cleanup
Fix Version/s: None
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: 1. File ResharperCodingFormat.cs (0.7 kb)
2. XML File ResharperSettings.xml (20 kb)


Build: 2.5


 Description  « Hide
In the following code there are two strange linebreaks in the "if" conditions. The "right margin" is set to 120 characters and the "Force Chop compound condition in "if" statement" is set to true in the ReSharper settings.

I would expect the first "if" to add a linebreak before the second condition and the second "if" to not insert a line break at all.

if (isTest == false && isTest != true &&
isTest2 != false) // MISSING LINEBREAK
{
isTest = true;
}

if (sQueryFields[nIndexQueryFields] ==
sAllFields[nIndexCell]) // STRANGE LINEBREAK
{
bFieldIsInQuery = true;
}

The code file and the ReSharper settings file are attached.

Regards,
Peter



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.