Uploaded image for project: 'Migration Toolkit for Applications'
  1. Migration Toolkit for Applications
  2. MTA-1305

[CLI] [KANTRA] Custom rules are always skipped

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • No

      Description of problem:

      When running an analysis with a custom rule file (YAML or XML)  the rules from that file are always skipped.

      Version-Release number of selected component (if applicable): upstream 

      How reproducible: Always 

      Steps to Reproduce:
      1. Run an analysis providing the --rules argument with a custom rule (see attached)
      2. Open the report and the output.yaml file

      Actual results:

      The report shows no issues associated to that rule and the output.yaml file shows that the rule has been skipped even when it should have generated multiple Issues.

       Expected results:

      Custom rules should not be ignored.

       Additional info:

      Attached is the same rule in XML and YAML (generated by kantra transform), the binary used for the analysis and the output.yaml file of the analysis

        1. 1.windup.xml
          2 kB
        2. 1.yaml
          0.7 kB
        3. image-2024-01-09-12-43-50-452.png
          image-2024-01-09-12-43-50-452.png
          50 kB
        4. image-2024-01-09-12-43-52-744.png
          image-2024-01-09-12-43-52-744.png
          50 kB
        5. javax-package-custom.windup.xml
          1 kB
        6. javax-package-custom.windup.yaml
          0.6 kB
        7. jee-example-app-1.0.0.ear
          917 kB
        8. output.yaml
          345 kB
        9. reportog.zip
          9.93 MB

            emcmulla@redhat.com Emily McMullan
            rh-ee-abrugaro Alejandro Brugarolas
            Alejandro Brugarolas Alejandro Brugarolas
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: