Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
184 changes: 92 additions & 92 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,95 +1,95 @@
{
"name": "code-complexity",
"displayName": "code-complexity",
"description": "A comprehensive Visual Studio Code extension that calculates and displays Cognitive Complexity metrics based on SonarSource's Cognitive Complexity specification.",
"version": "0.0.1",
"engines": {
"vscode": "^1.103.0"
},
"keywords": [
"complexity",
"cognitive complexity",
"code complexity",
"code quality",
"typescript",
"javascript",
"csharp",
"metrics"
],
"categories": [
"Other"
],
"activationEvents": [
"onLanguage:csharp"
],
"main": "./out/extension.js",
"contributes": {
"commands": [],
"configuration": {
"title": "Cognitive Complexity",
"properties": {
"cognitiveComplexity.enabled": {
"type": "boolean",
"default": true,
"description": "Enable or disable the cognitive complexity extension"
},
"cognitiveComplexity.showCodeLens": {
"type": "boolean",
"default": true,
"description": "Show cognitive complexity information as CodeLens above functions"
},
"cognitiveComplexity.warningThreshold": {
"type": "number",
"default": 10,
"minimum": 1,
"description": "Complexity threshold for showing warning status (yellow indicator)"
},
"cognitiveComplexity.errorThreshold": {
"type": "number",
"default": 15,
"minimum": 1,
"description": "Complexity threshold for showing error status (red indicator)"
},
"cognitiveComplexity.excludePatterns": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"**/node_modules/**",
"**/dist/**",
"**/build/**",
"**/out/**",
"**/*.min.js",
"**/*.spec.*",
"**/*.test.*"
],
"description": "Glob patterns for files to exclude from complexity analysis"
}
}
"name": "code-complexity",
"displayName": "Code Complexity",
"description": "A comprehensive Visual Studio Code extension that calculates and displays Cognitive Complexity metrics based on SonarSource's Cognitive Complexity specification.",
"version": "0.0.1",
"engines": {
"vscode": "^1.103.0"
},
"keywords": [
"complexity",
"cognitive complexity",
"code complexity",
"code quality",
"typescript",
"javascript",
"csharp",
"metrics"
],
"categories": [
"Other"
],
"activationEvents": [
"onLanguage:csharp"
],
"main": "./out/extension.js",
"contributes": {
"commands": [],
"configuration": {
"title": "Cognitive Complexity",
"properties": {
"cognitiveComplexity.enabled": {
"type": "boolean",
"default": true,
"description": "Enable or disable the cognitive complexity extension"
},
"cognitiveComplexity.showCodeLens": {
"type": "boolean",
"default": true,
"description": "Show cognitive complexity information as CodeLens above functions"
},
"cognitiveComplexity.warningThreshold": {
"type": "number",
"default": 10,
"minimum": 1,
"description": "Complexity threshold for showing warning status (yellow indicator)"
},
"cognitiveComplexity.errorThreshold": {
"type": "number",
"default": 15,
"minimum": 1,
"description": "Complexity threshold for showing error status (red indicator)"
},
"cognitiveComplexity.excludePatterns": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"**/node_modules/**",
"**/dist/**",
"**/build/**",
"**/out/**",
"**/*.min.js",
"**/*.spec.*",
"**/*.test.*"
],
"description": "Glob patterns for files to exclude from complexity analysis"
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src",
"test": "vscode-test"
},
"devDependencies": {
"@types/mocha": "^10.0.10",
"@types/node": "24.x",
"@types/vscode": "^1.103.0",
"@typescript-eslint/eslint-plugin": "^8.39.0",
"@typescript-eslint/parser": "^8.39.0",
"@vscode/test-cli": "^0.0.11",
"@vscode/test-electron": "^2.5.2",
"eslint": "^9.35.0",
"typescript": "^5.9.2"
},
"dependencies": {
"tree-sitter": "^0.21.1",
"tree-sitter-c-sharp": "^0.23.1"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src",
"test": "vscode-test"
},
"devDependencies": {
"@types/mocha": "^10.0.10",
"@types/node": "24.x",
"@types/vscode": "^1.103.0",
"@typescript-eslint/eslint-plugin": "^8.39.0",
"@typescript-eslint/parser": "^8.39.0",
"@vscode/test-cli": "^0.0.11",
"@vscode/test-electron": "^2.5.2",
"eslint": "^9.35.0",
"typescript": "^5.9.2"
},
"dependencies": {
"tree-sitter": "^0.21.1",
"tree-sitter-c-sharp": "^0.23.1"
}
}
Loading