Details

    • Type: Language-Specification
    • Status: Active
    • Resolution: Unresolved
    • Labels:
      None
    • Impact:
      Unknown 'null' severity
    • Likelihood:
      Unknown 'null' severity

      Description

      Noncompliant Code Example

      def noncompliant():
          def nested_function():  # Noncompliant
              print("nested_function")
          
          class NestedClass:  # Noncompliant
              def __init__(self):
                  print("NestedClass")
      

      Compliant Solution

      def compliant():
          def nested_function():
              print("nested_function")
          
          class NestedClass:
              def __init__(self):
                  print("NestedClass")
      
          nested_function()
          NestedClass()
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            nicolas.harraudeau Nicolas Harraudeau (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: