Details

    • Type: Language-Specification
    • Status: Active
    • Resolution: Unresolved
    • Labels:
      None
    • Impact:
      Unknown 'null' severity
    • Likelihood:
      Unknown 'null' severity
    • Default Quality Profiles:
      Override none

      Description

      Noncompliant Code Example

      if(someCondition) DoSomething();
      

      Compliant Solution

      if(someCondition) 
      {
        DoSomething();
      }
      

      Exceptions

      Anonymous functions containing a single statement are ignored. Block statements are not considered either.

      Func<object, bool> item1 = o => { return true; }; // Compliant
      Func<object, bool> item1 = o => { var r = false; return r; }; // Noncompliant
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tamas.vajk Tamas Vajk (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: