Skip to content

Commit

Permalink
Merge pull request #78 from cnescatlab/QG-CAYC
Browse files Browse the repository at this point in the history
Synchronize quality gates with sonarqube image
  • Loading branch information
louisjdmartin authored Feb 19, 2024
2 parents 0e3d8e3 + 365c05c commit 93cb017
Show file tree
Hide file tree
Showing 5 changed files with 447 additions and 1 deletion.
143 changes: 143 additions & 0 deletions conf/quality_gates/CNES_CAYC_FromScratch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
{
"id": "AY1FHSNgqvoSmFLK7ySt",
"name": "CNES CAYCode FromScratch",
"conditions": [
{
"id": "AY1FHSNiqvoSmFLK7ySu",
"metric": "new_maintainability_rating",
"op": "GT",
"error": "1"
},
{
"id": "AY1FHSNjqvoSmFLK7ySv",
"metric": "new_reliability_rating",
"op": "GT",
"error": "1"
},
{
"id": "AY1FHSNjqvoSmFLK7ySw",
"metric": "new_security_hotspots_reviewed",
"op": "LT",
"error": "100"
},
{
"id": "AY1FHSNjqvoSmFLK7ySx",
"metric": "new_security_rating",
"op": "GT",
"error": "1"
},
{
"id": "AY1FHSNkqvoSmFLK7ySy",
"metric": "new_duplicated_lines_density",
"op": "GT",
"error": "5"
},
{
"id": "AY1FHSNkqvoSmFLK7ySz",
"metric": "new_coverage",
"op": "LT",
"error": "0"
},
{
"id": "AY1FHSNlqvoSmFLK7yS0",
"metric": "new_blocker_violations",
"op": "GT",
"error": "0"
},
{
"id": "AY1FHSNlqvoSmFLK7yS1",
"metric": "new_critical_violations",
"op": "GT",
"error": "0"
},
{
"id": "AY1FHSNmqvoSmFLK7yS2",
"metric": "new_major_violations",
"op": "GT",
"error": "0"
},
{
"id": "AY1FHSNmqvoSmFLK7yS3",
"metric": "blocker_violations",
"op": "GT",
"error": "0"
},
{
"id": "AY1FHSNnqvoSmFLK7yS4",
"metric": "major_violations",
"op": "GT",
"error": "0"
},
{
"id": "AY1FHSNnqvoSmFLK7yS5",
"metric": "critical_violations",
"op": "GT",
"error": "0"
},
{
"id": "AY1FHSNoqvoSmFLK7yS6",
"metric": "sqale_debt_ratio",
"op": "GT",
"error": "5"
},
{
"id": "AY1FHSNoqvoSmFLK7yS7",
"metric": "comment_lines_density",
"op": "LT",
"error": "20"
},
{
"id": "AY1FHSNpqvoSmFLK7yS8",
"metric": "duplicated_lines_density",
"op": "GT",
"error": "10"
},
{
"id": "AY1FHSNpqvoSmFLK7yS9",
"metric": "test_errors",
"op": "GT",
"error": "0"
},
{
"id": "AY1FHSNqqvoSmFLK7yS-",
"metric": "test_failures",
"op": "GT",
"error": "0"
},
{
"id": "AY1FHSNqqvoSmFLK7yS_",
"metric": "security_review_rating",
"op": "GT",
"error": "1"
},
{
"id": "AY1FHSNrqvoSmFLK7yTA",
"metric": "security_hotspots_reviewed",
"op": "LT",
"error": "100"
},
{
"id": "AY1FHSNrqvoSmFLK7yTB",
"metric": "reliability_rating",
"op": "GT",
"error": "1"
},
{
"id": "AY1FHSNsqvoSmFLK7yTC",
"metric": "sqale_rating",
"op": "GT",
"error": "1"
}
],
"isBuiltIn": false,
"actions": {
"rename": true,
"setAsDefault": true,
"copy": true,
"associateProjects": true,
"delete": true,
"manageConditions": true,
"delegate": true
},
"caycStatus": "over-compliant"
}
155 changes: 155 additions & 0 deletions conf/quality_gates/CNES_CAYC_FromScratch_coverage.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
{
"id": "AY1E7SwrqvoSmFLK7yRC",
"name": "CNES CAYCode From Scratch with coverage",
"conditions": [
{
"id": "AY1E7SwtqvoSmFLK7yRD",
"metric": "new_maintainability_rating",
"op": "GT",
"error": "1"
},
{
"id": "AY1E7SwxqvoSmFLK7yRE",
"metric": "new_reliability_rating",
"op": "GT",
"error": "1"
},
{
"id": "AY1E7SwyqvoSmFLK7yRF",
"metric": "new_security_hotspots_reviewed",
"op": "LT",
"error": "100"
},
{
"id": "AY1E7SwzqvoSmFLK7yRG",
"metric": "new_security_rating",
"op": "GT",
"error": "1"
},
{
"id": "AY1E7Sw1qvoSmFLK7yRH",
"metric": "new_duplicated_lines_density",
"op": "GT",
"error": "5"
},
{
"id": "AY1E7_QSqvoSmFLK7yRJ",
"metric": "new_coverage",
"op": "LT",
"error": "0"
},
{
"id": "AY1E8r9hqvoSmFLK7yRS",
"metric": "new_blocker_violations",
"op": "GT",
"error": "0"
},
{
"id": "AY1E8t-jqvoSmFLK7yRT",
"metric": "new_critical_violations",
"op": "GT",
"error": "0"
},
{
"id": "AY1E9BLhqvoSmFLK7yRU",
"metric": "new_major_violations",
"op": "GT",
"error": "0"
},
{
"id": "AY1FBy32qvoSmFLK7yR-",
"metric": "blocker_violations",
"op": "GT",
"error": "0"
},
{
"id": "AY1FB3KDqvoSmFLK7yR_",
"metric": "major_violations",
"op": "GT",
"error": "0"
},
{
"id": "AY1FB8AfqvoSmFLK7ySA",
"metric": "critical_violations",
"op": "GT",
"error": "0"
},
{
"id": "AY1FCGjgqvoSmFLK7ySB",
"metric": "sqale_debt_ratio",
"op": "GT",
"error": "5"
},
{
"id": "AY1FCSgOqvoSmFLK7ySC",
"metric": "comment_lines_density",
"op": "LT",
"error": "20"
},
{
"id": "AY1FCYNIqvoSmFLK7ySD",
"metric": "duplicated_lines_density",
"op": "GT",
"error": "10"
},
{
"id": "AY1FCkC6qvoSmFLK7ySE",
"metric": "test_errors",
"op": "GT",
"error": "0"
},
{
"id": "AY1FCmNPqvoSmFLK7ySF",
"metric": "test_failures",
"op": "GT",
"error": "0"
},
{
"id": "AY1FDUiBqvoSmFLK7ySM",
"metric": "security_review_rating",
"op": "GT",
"error": "1"
},
{
"id": "AY1FDXyyqvoSmFLK7ySN",
"metric": "security_hotspots_reviewed",
"op": "LT",
"error": "100"
},
{
"id": "AY1FDhHDqvoSmFLK7ySO",
"metric": "reliability_rating",
"op": "GT",
"error": "1"
},
{
"id": "AY1FDoMHqvoSmFLK7ySP",
"metric": "sqale_rating",
"op": "GT",
"error": "1"
},
{
"id": "AY1FHZgFqvoSmFLK7yTD",
"metric": "new_line_coverage",
"op": "LT",
"error": "100"
},
{
"id": "AY1FHdh5qvoSmFLK7yTH",
"metric": "line_coverage",
"op": "LT",
"error": "100"
}
],
"isBuiltIn": false,
"actions": {
"rename": true,
"setAsDefault": true,
"copy": true,
"associateProjects": true,
"delete": true,
"manageConditions": true,
"delegate": true
},
"caycStatus": "over-compliant"
}
71 changes: 71 additions & 0 deletions conf/quality_gates/CNES_CAYC_Herited.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
"id": "AY1FBoE-qvoSmFLK7yRu",
"name": "CNES CAYCode HeritedCode",
"conditions": [
{
"id": "AY1FBoFAqvoSmFLK7yRv",
"metric": "new_maintainability_rating",
"op": "GT",
"error": "1"
},
{
"id": "AY1FBoFBqvoSmFLK7yRw",
"metric": "new_reliability_rating",
"op": "GT",
"error": "1"
},
{
"id": "AY1FBoFCqvoSmFLK7yRx",
"metric": "new_security_hotspots_reviewed",
"op": "LT",
"error": "100"
},
{
"id": "AY1FBoFCqvoSmFLK7yRy",
"metric": "new_security_rating",
"op": "GT",
"error": "1"
},
{
"id": "AY1FBoFCqvoSmFLK7yRz",
"metric": "new_duplicated_lines_density",
"op": "GT",
"error": "5"
},
{
"id": "AY1FBoFDqvoSmFLK7yR0",
"metric": "new_coverage",
"op": "LT",
"error": "0"
},
{
"id": "AY1FBoFDqvoSmFLK7yR1",
"metric": "new_blocker_violations",
"op": "GT",
"error": "0"
},
{
"id": "AY1FBoFEqvoSmFLK7yR2",
"metric": "new_critical_violations",
"op": "GT",
"error": "0"
},
{
"id": "AY1FBoFEqvoSmFLK7yR3",
"metric": "new_major_violations",
"op": "GT",
"error": "0"
}
],
"isBuiltIn": false,
"actions": {
"rename": true,
"setAsDefault": true,
"copy": true,
"associateProjects": true,
"delete": true,
"manageConditions": true,
"delegate": true
},
"caycStatus": "over-compliant"
}
Loading

0 comments on commit 93cb017

Please sign in to comment.