[Mono-bugs] [Bug 605688] New: ReviewLinqMethodRule is never call on .Net 3.5

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu May 13 13:32:02 EDT 2010



           Summary: ReviewLinqMethodRule is never call on .Net 3.5
    Classification: Mono
           Product: Mono: Tools
           Version: unspecified
          Platform: Other
        OS/Version: Windows 7
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Gendarme
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: avandecreme at sopragroup.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

Created an attachment (id=362126)
 --> (http://bugzilla.novell.com/attachment.cgi?id=362126)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; fr; rv:
Gecko/20100401 Firefox/3.6.3

No detection by this rule even if there is bad code

Reproducible: Always

Steps to Reproduce:
1. Write bad linq code (for exemple myEnumerable.Count() == 0) :p
2. Compile in .Net 3.5
3. Run the rule on the generated assembly
Actual Results:  
No defect found

Expected Results:  

The provided patch fix the performance improvement which avoid to analyze
assemblies compiled in .Net 2.
The test was : TargetRuntime > Net_2_0 but .Net 3.5 actually run under runtime
The test now is : TargetRuntime >= Net_2_0 and the assembly must reference

There is maybe a better test to do. And it is probably a good idea to put it in

The patch also add some improvements and associated test cases.

Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list