6 Commits

Author SHA1 Message Date
Marco Borgeaud
e035587614 Improve validate_metadata.sh
Address shellcheck issues and visually separate outputs
2024-08-22 09:59:26 +02:00
Arseniy Zaostrovnykh
f7353489fc
Enable rules removal: do not validate deleted rules 2022-03-08 12:26:53 +00:00
Marco Antognini
65e429879f
Fix CI failure when no rules have changed
Ensure array is correctly read.
Ensure errors in subprocesses are detected and abort the script.

`shopt -s lastpipe` is used to avoid the following complex pattern:

    mapfile -t array < <(command-that-may-fail)
    pid=$!
    wait $pid || exit 1
2022-01-28 13:37:57 +00:00
Marco Antognini
b2b116a8e2
RULEAPI-682: Index multiple types and rules with no languages
* Generate description and metadata for rules with no language, so that they get indexed.
* Index rules with different types in language specializations.
* Improve validation to reject new rules with no language specialization (i.e. only a predefined set of such rules is allowed because they were imported from Jira and kept for historical purposes).
* Write smaller JSON files, reduce their size by 30%.
* Improve test coverage of CLI application.
2022-01-28 09:51:13 +01:00
Arseniy Zaostrovnykh
2784140e8b
RULEAPI-646: Speed up the "validate_asciidoc" check by validating only the changed rules 2021-06-09 11:15:47 +02:00
Arseniy Zaostrovnykh
16ca5fafaf
RULEAPI-649: Add frontend tests to CI 2021-06-08 15:21:29 +02:00