mirror of
https://github.com/Dvorinka/Devour.git
synced 2026-06-03 20:13:03 +00:00
first commit
This commit is contained in:
@@ -0,0 +1,322 @@
|
||||
{
|
||||
"generated": "2026-02-19T13:43:23.127939093+01:00",
|
||||
"project_path": "devour_data",
|
||||
"language": "go",
|
||||
"scorecard": {
|
||||
"total_score": 708,
|
||||
"strict_score": 708,
|
||||
"target_score": 95,
|
||||
"findings_by_type": {
|
||||
"complexity": 3,
|
||||
"duplication": 11
|
||||
},
|
||||
"findings_by_tier": {
|
||||
"2": 3,
|
||||
"3": 11
|
||||
},
|
||||
"status_by_type": {
|
||||
"open": 14
|
||||
},
|
||||
"last_scan": "2026-02-19T13:36:36.230014073+01:00"
|
||||
},
|
||||
"findings": [
|
||||
{
|
||||
"id": "complexity-demo.go-35",
|
||||
"type": "complexity",
|
||||
"title": "High complexity detected",
|
||||
"description": "File has complexity score of 35 with signals: 55 function calls",
|
||||
"file": "cmd/demo.go",
|
||||
"line": 1,
|
||||
"severity": 2,
|
||||
"score": 35,
|
||||
"status": "open",
|
||||
"needs_review": false,
|
||||
"context": "This function may be difficult to maintain. Consider if it can be simplified or broken down.",
|
||||
"metadata": {
|
||||
"loc": "126",
|
||||
"signals": "55 function calls"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "complexity-quality.go-202",
|
||||
"type": "complexity",
|
||||
"title": "High complexity detected",
|
||||
"description": "File has complexity score of 202 with signals: 222 function calls",
|
||||
"file": "cmd/quality.go",
|
||||
"line": 1,
|
||||
"severity": 2,
|
||||
"score": 202,
|
||||
"status": "open",
|
||||
"needs_review": false,
|
||||
"context": "This function may be difficult to maintain. Consider if it can be simplified or broken down.",
|
||||
"metadata": {
|
||||
"loc": "685",
|
||||
"signals": "222 function calls"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "complexity-scrape.go-51",
|
||||
"type": "complexity",
|
||||
"title": "High complexity detected",
|
||||
"description": "File has complexity score of 51 with signals: 71 function calls",
|
||||
"file": "cmd/scrape.go",
|
||||
"line": 1,
|
||||
"severity": 2,
|
||||
"score": 51,
|
||||
"status": "open",
|
||||
"needs_review": false,
|
||||
"context": "This function may be difficult to maintain. Consider if it can be simplified or broken down.",
|
||||
"metadata": {
|
||||
"loc": "243",
|
||||
"signals": "71 function calls"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "duplication-cluster-0",
|
||||
"type": "duplication",
|
||||
"title": "Code duplication detected",
|
||||
"description": "Found 2 similar functions with 0.80 similarity",
|
||||
"file": "cmd/demo.go",
|
||||
"line": 26,
|
||||
"severity": 3,
|
||||
"score": 4,
|
||||
"status": "open",
|
||||
"needs_review": true,
|
||||
"context": "Similar code exists elsewhere. Consider extracting common functionality.",
|
||||
"metadata": {
|
||||
"cluster_size": "2",
|
||||
"functions": "init:26,runDemo:30",
|
||||
"similarity": "0.80"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "duplication-cluster-1",
|
||||
"type": "duplication",
|
||||
"title": "Code duplication detected",
|
||||
"description": "Found 2 similar functions with 0.80 similarity",
|
||||
"file": "cmd/get.go",
|
||||
"line": 40,
|
||||
"severity": 3,
|
||||
"score": 4,
|
||||
"status": "open",
|
||||
"needs_review": true,
|
||||
"context": "Similar code exists elsewhere. Consider extracting common functionality.",
|
||||
"metadata": {
|
||||
"cluster_size": "2",
|
||||
"functions": "init:40,runGet:47",
|
||||
"similarity": "0.80"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "duplication-cluster-2",
|
||||
"type": "duplication",
|
||||
"title": "Code duplication detected",
|
||||
"description": "Found 2 similar functions with 0.80 similarity",
|
||||
"file": "cmd/init.go",
|
||||
"line": 31,
|
||||
"severity": 3,
|
||||
"score": 4,
|
||||
"status": "open",
|
||||
"needs_review": true,
|
||||
"context": "Similar code exists elsewhere. Consider extracting common functionality.",
|
||||
"metadata": {
|
||||
"cluster_size": "2",
|
||||
"functions": "init:31,runInit:36",
|
||||
"similarity": "0.80"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "duplication-cluster-3",
|
||||
"type": "duplication",
|
||||
"title": "Code duplication detected",
|
||||
"description": "Found 2 similar functions with 0.80 similarity",
|
||||
"file": "cmd/languages.go",
|
||||
"line": 21,
|
||||
"severity": 3,
|
||||
"score": 4,
|
||||
"status": "open",
|
||||
"needs_review": true,
|
||||
"context": "Similar code exists elsewhere. Consider extracting common functionality.",
|
||||
"metadata": {
|
||||
"cluster_size": "2",
|
||||
"functions": "init:21,runLanguages:25",
|
||||
"similarity": "0.80"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "duplication-cluster-4",
|
||||
"type": "duplication",
|
||||
"title": "Code duplication detected",
|
||||
"description": "Found 2 similar functions with 0.80 similarity",
|
||||
"file": "cmd/quality.go",
|
||||
"line": 100,
|
||||
"severity": 3,
|
||||
"score": 4,
|
||||
"status": "open",
|
||||
"needs_review": true,
|
||||
"context": "Similar code exists elsewhere. Consider extracting common functionality.",
|
||||
"metadata": {
|
||||
"cluster_size": "2",
|
||||
"functions": "init:100,runQualityScan:171",
|
||||
"similarity": "0.80"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "duplication-cluster-5",
|
||||
"type": "duplication",
|
||||
"title": "Code duplication detected",
|
||||
"description": "Found 2 similar functions with 0.80 similarity",
|
||||
"file": "cmd/quality.go",
|
||||
"line": 219,
|
||||
"severity": 3,
|
||||
"score": 4,
|
||||
"status": "open",
|
||||
"needs_review": true,
|
||||
"context": "Similar code exists elsewhere. Consider extracting common functionality.",
|
||||
"metadata": {
|
||||
"cluster_size": "2",
|
||||
"functions": "runQualityStatus:219,runQualityNext:257",
|
||||
"similarity": "0.80"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "duplication-cluster-6",
|
||||
"type": "duplication",
|
||||
"title": "Code duplication detected",
|
||||
"description": "Found 2 similar functions with 0.80 similarity",
|
||||
"file": "cmd/quality.go",
|
||||
"line": 424,
|
||||
"severity": 3,
|
||||
"score": 4,
|
||||
"status": "open",
|
||||
"needs_review": true,
|
||||
"context": "Similar code exists elsewhere. Consider extracting common functionality.",
|
||||
"metadata": {
|
||||
"cluster_size": "2",
|
||||
"functions": "outputScanResult:424,formatScanResultText:458",
|
||||
"similarity": "0.80"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "duplication-cluster-7",
|
||||
"type": "duplication",
|
||||
"title": "Code duplication detected",
|
||||
"description": "Found 2 similar functions with 0.80 similarity",
|
||||
"file": "cmd/quality.go",
|
||||
"line": 602,
|
||||
"severity": 3,
|
||||
"score": 4,
|
||||
"status": "open",
|
||||
"needs_review": true,
|
||||
"context": "Similar code exists elsewhere. Consider extracting common functionality.",
|
||||
"metadata": {
|
||||
"cluster_size": "2",
|
||||
"functions": "runQualityReview:602,prepareReviewPacket:616",
|
||||
"similarity": "0.80"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "duplication-cluster-8",
|
||||
"type": "duplication",
|
||||
"title": "Code duplication detected",
|
||||
"description": "Found 2 similar functions with 0.80 similarity",
|
||||
"file": "cmd/root.go",
|
||||
"line": 29,
|
||||
"severity": 3,
|
||||
"score": 4,
|
||||
"status": "open",
|
||||
"needs_review": true,
|
||||
"context": "Similar code exists elsewhere. Consider extracting common functionality.",
|
||||
"metadata": {
|
||||
"cluster_size": "2",
|
||||
"functions": "Execute:29,init:36",
|
||||
"similarity": "0.80"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "duplication-cluster-9",
|
||||
"type": "duplication",
|
||||
"title": "Code duplication detected",
|
||||
"description": "Found 2 similar functions with 0.80 similarity",
|
||||
"file": "cmd/scrape.go",
|
||||
"line": 57,
|
||||
"severity": 3,
|
||||
"score": 4,
|
||||
"status": "open",
|
||||
"needs_review": true,
|
||||
"context": "Similar code exists elsewhere. Consider extracting common functionality.",
|
||||
"metadata": {
|
||||
"cluster_size": "2",
|
||||
"functions": "init:57,runScrape:65",
|
||||
"similarity": "0.80"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "duplication-cluster-10",
|
||||
"type": "duplication",
|
||||
"title": "Code duplication detected",
|
||||
"description": "Found 2 similar functions with 0.80 similarity",
|
||||
"file": "cmd/scrape.go",
|
||||
"line": 168,
|
||||
"severity": 3,
|
||||
"score": 4,
|
||||
"status": "open",
|
||||
"needs_review": true,
|
||||
"context": "Similar code exists elsewhere. Consider extracting common functionality.",
|
||||
"metadata": {
|
||||
"cluster_size": "2",
|
||||
"functions": "scrapeFromConfig:168,detectSourceType:172",
|
||||
"similarity": "0.80"
|
||||
}
|
||||
}
|
||||
],
|
||||
"context": {
|
||||
"total_files": 0,
|
||||
"total_loc": 0,
|
||||
"findings_by_dimension": {
|
||||
"Code Quality": 3,
|
||||
"Duplication": 11
|
||||
},
|
||||
"top_issues": [
|
||||
"complexity: High complexity detected",
|
||||
"complexity: High complexity detected",
|
||||
"complexity: High complexity detected",
|
||||
"duplication: Code duplication detected",
|
||||
"duplication: Code duplication detected"
|
||||
],
|
||||
"trends": {}
|
||||
},
|
||||
"questions": [
|
||||
{
|
||||
"id": "dupe_strategy",
|
||||
"category": "duplication",
|
||||
"question": "How should duplicated code be consolidated?",
|
||||
"options": [
|
||||
"Extract to shared utility",
|
||||
"Keep separate (different use cases)",
|
||||
"Refactor to common interface"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "complexity_strategy",
|
||||
"category": "complexity",
|
||||
"question": "What's the best approach for complex functions?",
|
||||
"options": [
|
||||
"Break into smaller functions",
|
||||
"Introduce helper types",
|
||||
"Accept current complexity"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "priority",
|
||||
"category": "planning",
|
||||
"question": "Which area should be prioritized for improvement?",
|
||||
"options": [
|
||||
"Security issues first",
|
||||
"Complexity reduction",
|
||||
"Dead code cleanup",
|
||||
"Architecture improvements"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user