Details

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

      Description

      Noncompliant Code Example

      func compute(start int) { // Noncompliant; start is not used
      	sum := 0
      	for i := 0; i < 10; i++ {
      		sum += i
      	}
      	fmt.Println("Result:", sum)
      }
      

      Compliant Solution

      func compute() {
      	sum := 0
      	for i := 0; i < 10; i++ {
      		sum += i
      	}
      	fmt.Println("Result:", sum)
      }
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              alexandre.gigleux Alexandre Gigleux
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: