This is a migrated thread and some comments may be shown as answers.

JustCode don't mark code as bad

1 Answer 31 Views
Code Analysis
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Michał
Top achievements
Rank 1
Michał asked on 16 May 2011, 09:59 PM
JustCode don't mark this as bad code:
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
    if (value == null)
    {
        if (targetType is Nullable<int>) // this is bad code
        {
            return null;
        }
        return -1;
    }
    return value;
}

1 Answer, 1 is accepted

Sort by
0
Accepted
Dennis :: Dr. Code
Telerik team
answered on 24 May 2011, 02:28 PM
Hi MichaƂ,

Thanks for reporting. This is a bad-code-green analysis bug. I've logged that for fixing. Also gave you some Telerik points. 

Greetings,
Dennis :: Dr. Code
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Code Analysis
Asked by
Michał
Top achievements
Rank 1
Answers by
Dennis :: Dr. Code
Telerik team
Share this question
or