Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.5
    • Component/s: AST
    • Labels:
      None
    • Estimate:
      Hours

      Description

      Main affected languages: Scala, Kotlin, Apex

      Affected rules: RSPEC-1481RSPEC-117RSPEC-3776RSPEC-138RSPEC-107. Be cautious some rules using FunctionDeclarationTree (e.g. RSPEC-100) may not apply to constructors.

      As most rules applying to functions can also be applied to constructors, all constructors will have FN.

       

      • Scala
        scala.meta.Ctor -> NativeTreeImpl 100%
      public class Greeter{
          public readonly string message;
          public Greeter(string msg) { // message param never used
              this.message = "hello";
          }
      }

       

      • Kotlin
        KtNamedFunction -> FunctionDeclarationTreeImpl 88%, NativeTreeImpl 12%
      class A(val message: String) { } // message param never used
      

       

      • Apex

      MethodDecl -> FunctionDeclarationTreeImpl 92%, NativeTreeImpl 8%

      class A() {
        A(String message) { } // message param never used
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alban.auzeill Alban Auzeill
                Reporter:
                quentin.jaquier Quentin Jaquier
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: