...
The mettleci compliance test command (available within the Compliance namespace of the MettleCI Command Line Interface) provides -include-tagtags
and -exclude-tagtags
options to filter the rules which will be used by the command. MettleCI interprets these options so that set of include tags is used first to generate a set of candidate rules, then the set of exclude tags is removed to leave the rules that will be used. In the diagram above, only the rules with tags in set A and NOT in B will be used to select Compliance Rules (formally referred to as the 'relative complement of B in A').
Tags Example
Code Block |
---|
$> mettleci compliance test \ -assets /my/datastage/assets \ -report "my/compliance/report.xml" \ -junit \ -rules /my/compliance/directory \ -exclude-tags example \ -project-cache /my/project/cache \ -ignore-test-failures \ -test-suite "CI Warnings" MettleCI Command Line (build 161) (C) 2018-2022 Data Migrators Pty Ltd compliance test (v2.2-425) rules configuration discovered included rule - 'Adjacent Transformers' (PARALLEL_JOB) ... etc. |
Some notes on Tag behaviour:
...