diff --git a/.vscodeignore b/.vscodeignore index 3899967..604a1e9 100644 --- a/.vscodeignore +++ b/.vscodeignore @@ -1,6 +1,6 @@ .vscode/** .vscode-test/** -src/** +# src/** .gitignore .yarnrc vsc-extension-quickstart.md diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..f581e22 --- /dev/null +++ b/LICENSE @@ -0,0 +1,11 @@ +# Released under MIT License + +Copyright (c) 2013 Mark Otto. + +Copyright (c) 2017 Andrew Fong. + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/images/logo.png b/images/logo.png new file mode 100644 index 0000000..65950cb Binary files /dev/null and b/images/logo.png differ diff --git a/package.json b/package.json index 0599297..bf958fd 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,14 @@ { - "name": "chatgpt-code-analyzer", - "displayName": "ChatGPT Code Analyzer", + "name": "chatgpt-security-code-analyzer", + "displayName": "ChatGPT Security Code Analyzer", "description": "Use ChatGPT to find vulnerabilities in your code.", "version": "0.0.1", - "publisher": "Milind Purswani", + "publisher": "MilindPurswani", + "icon": "images/logo.png", + "repository": { + "type": "git", + "url": "https://github.com/MilindPurswani/chatgpt-code-analyzer.git" + }, "engines": { "vscode": "^1.77.0" }, diff --git a/src/extension.js b/src/extension.js index 8904b66..b39c9a0 100644 --- a/src/extension.js +++ b/src/extension.js @@ -77,7 +77,7 @@ async function analyzeDirectory(directoryPath) { async function analyzeAndApplyDiagnostics(filePath, text) { try { const result = await callChatGPT(text); - + openaiKey = 'asdasdaAAAXX233easas'; // Parse the result and create diagnostics const diagnostics = []; const regex = /Line (\d+): (.+)/g;