Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-62944

make taskScanner ignore its own setup

XMLWordPrintable

      When using

      recordIssues tool: taskScanner(
          excludePattern: '*moc_*, sources/.clang-tidy',
          highTags: 'FIXME',
          ignoreCase: true,
          includePattern: 'sources/**/*.h, sources/**/*.cpp, sources/*',
          lowTags: 'REVIEW',
          normalTags: 'TODO'
      ) 

      we deliberately include our Jenkinsfile to match open tasks there. Unfortunately, task scanner now reports 3 open tasks from its own definition for highTags, lowTags, normalTags.

      It would be good if there was a way to

      • EITHER ignore it's own definition (task-plugin extra code I guess)
      • OR add regexp markers for start- and end-ignore lines, so that we can comment our definition out
        // task-scanner-ignore-begin
        recordIssues tool: taskScanner(
            excludePattern: '*moc_*, sources/.clang-tidy',
            highTags: 'FIXME',
            ignoreCase: true,
            includePattern: 'sources/**/*.h, sources/**/*.cpp, sources/*',
            lowTags: 'REVIEW',
            normalTags: 'TODO',
            ignoreBegin: 'task-scanner-ignore-begin',
            ignoreEnd: 'task-scanner-ignore-end'
        )
        // task-scanner-ignore-end
        

            ssproessig Soeren Sproessig
            ssproessig Soeren Sproessig
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: