2024-03-28 23:10:42 +00:00
|
|
|
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.*$
|
2024-09-03 10:38:42 +00:00
|
|
|
handler: sku61.com/qaskx/execute.QLintFile
|
2024-03-28 23:10:42 +00:00
|
|
|
- rule_identifier: MIS_SRC_FILE
|
|
|
|
|
rule_type: vcs
|
|
|
|
|
severity_type: warning
|
|
|
|
|
values:
|
|
|
|
|
- .*/.*lint.go$
|
2024-09-03 10:38:42 +00:00
|
|
|
handler: sku61.com/qaskx/execute.QLintFile
|
2024-03-28 23:10:42 +00:00
|
|
|
- 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$
|
2024-09-03 10:38:42 +00:00
|
|
|
handler: sku61.com/qaskx/execute.QLintFile
|