EOSC-synergy / sqaaas-web

Software Quality Assurance as a Service (SQAaaS) Web
https://sqaaas.eosc-synergy.eu
GNU General Public License v3.0
2 stars 3 forks source link

Overwritten values when a given tool is used more than once within the same criterion #135

Open orviz opened 2 years ago

orviz commented 2 years ago

In the criteria view, if the same tool is required to be use more than once, the args are overwritten. For instance, the request composed by the web for 2 hadolint tools within the same QC.Sty criterion looks like (note the values for the 'path to dockerfile' arg):

"tools": [
    {
        "name": "hadolint",
        "lang": "dockerfile",
        "docs": "https://github.com/hadolint/hadolint",
        "docker": {
            "image": "hadolint/hadolint:latest-alpine",
            "reviewed": "2021-06-21"
        },
        "args": [
            {
                "type": "positional",
                "description": "Path to Dockerfile",
                "value": "master-image/Dockerfile",
                "format": "string",
                "selectable": true,
                "repeatable": false
            },
            {
                "type": "optional",
                "description": "Ignore rules (see https://github.com/hadolint/hadolint#rules)",
                "option": "--ignore",
                "value": "",
                "format": "string",
                "selectable": true,
                "repeatable": true
            }
        ]
    },
    {
        "name": "hadolint",
        "lang": "dockerfile",
        "docs": "https://github.com/hadolint/hadolint",
        "docker": {
            "image": "hadolint/hadolint:latest-alpine",
            "reviewed": "2021-06-21"
        },
        "args": [
            {
                "type": "positional",
                "description": "Path to Dockerfile",
                "value": "master-image/Dockerfile",
                "format": "string",
                "selectable": true,
                "repeatable": false
            },
            {
                "type": "optional",
                "description": "Ignore rules (see https://github.com/hadolint/hadolint#rules)",
                "option": "--ignore",
                "value": "",
                "format": "string",
                "selectable": true,
                "repeatable": true
            }
        ]
    }
]