qaskx.template/rediops/default/definitions/server/qaskx-lint.yaml

121 lines
2.4 KiB
YAML

rules:
- rule_identifier: QKX_CHK_LINT
rule_type: vcs
severity_type: warning
values:
- http://qaskx.one/lint-rule-set/default.yaml
handler: sku61.com/qaskx/execute.QLintRuleSet
- rule_identifier: MAT_GIT_NAME
rule_type: vcs
severity_type: warning
cmd: git
arguments:
- remote
- get-url
- --all
- origin
values:
- ^qaskx.tool.*$
handler: sku61.com/qaskx/execute.QLintGitName
- rule_identifier: MAT_GIT_ORGN
rule_type: vcs
severity_type: error
cmd: git
arguments:
- remote
- get-url
- --all
- origin
values:
- ^.*qaskx.*$
handler: sku61.com/qaskx/execute.QLintGitOrg
- rule_identifier: MIN_GIT_BRAN
rule_type: vcs
severity_type: warning
cmd: git
arguments:
- branch
values:
- "1"
handler: sku61.com/qaskx/execute.QLintMinGitBranch
- rule_identifier: MAX_GIT_BRAN
rule_type: vcs
severity_type: warning
cmd: git
arguments:
- branch
values:
- "99"
handler: sku61.com/qaskx/execute.QLintMaxGitBranch
- rule_identifier: NBR_GIT_BRAN
rule_type: vcs
severity_type: warning
cmd: git
arguments:
- branch
values:
- "003"
- "099"
handler: sku61.com/qaskx/execute.QLintNumberGitBranch
- rule_identifier: MIS_GIT_BRAN
rule_type: vcs
severity_type: information
cmd: git
arguments:
- branch
values:
- main
- stg
- dev
handler: sku61.com/qaskx/execute.QLintMissingGitBranch
- rule_identifier: MIS_API_SDEF
rule_type: vcs
severity_type: error
values:
- "1"
handler: sku61.com/qaskx/execute.QLintHasAPI
- rule_identifier: MIS_API_DEPD
rule_type: vcs
severity_type: error
values:
- "Vault"
handler: sku61.com/qaskx/execute.QLintMissingDependencyAPI
- rule_identifier: MIS_API_DEPD
rule_type: vcs
severity_type: warning
values:
- "Logging"
- "Content"
handler: sku61.com/qaskx/execute.QLintMissingDependencyAPI
- rule_identifier: MIS_SRC_FILE
rule_type: vcs
severity_type: warning
values:
- ^.*/metadata.*$
handler: sku61.com/qaskx/execute.QLintMissingFile
- rule_identifier: MIS_SRC_FILE
rule_type: vcs
severity_type: warning
values:
- .*/.*lint.go$
handler: sku61.com/qaskx/execute.QLintMissingFile
- rule_identifier: EXR_SRC_FILE
rule_type: vcs
values:
- .*lint.cs*
handler: sku61.com/qaskx/execute.QLintExtraFile
- rule_identifier: MIS_SRC_FILE
rule_type: vcs
severity_type: error
values:
- ^/tools/golang/test.data/legacy_metadata.yaml$
handler: sku61.com/qaskx/execute.QLintMissingFile