{"id":22096412,"url":"https://github.com/hwvs/gptcodequalitysharp","last_synced_at":"2025-07-23T05:37:47.205Z","repository":{"id":172062774,"uuid":"648800449","full_name":"hwvs/GPTCodeQualitySharp","owner":"hwvs","description":"GPTCodeQualitySharp is a C#/.NET code quality assessment lib/tool that leverages OpenAI or compatible text-completion models to analyze and score source code based on multiple conventions. It uses multiple pass-throughs to accurately identify areas with poor code quality. The project includes a demo application and is a work-in-progress.","archived":false,"fork":false,"pushed_at":"2023-07-05T20:38:17.000Z","size":68,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T02:21:39.988Z","etag":null,"topics":["code-analysis-tool","csharp","csharp-library","dotnet","dotnet-framework","gpt-3","gpt-4","gpt3","gpt4","json","linter","openai","quality-assurance","utility"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hwvs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-02T21:05:50.000Z","updated_at":"2023-07-25T15:38:15.000Z","dependencies_parsed_at":"2025-01-29T07:39:37.525Z","dependency_job_id":null,"html_url":"https://github.com/hwvs/GPTCodeQualitySharp","commit_stats":null,"previous_names":["hwvs/gptcodequalitysharp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hwvs/GPTCodeQualitySharp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hwvs%2FGPTCodeQualitySharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hwvs%2FGPTCodeQualitySharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hwvs%2FGPTCodeQualitySharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hwvs%2FGPTCodeQualitySharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hwvs","download_url":"https://codeload.github.com/hwvs/GPTCodeQualitySharp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hwvs%2FGPTCodeQualitySharp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266625239,"owners_count":23958305,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["code-analysis-tool","csharp","csharp-library","dotnet","dotnet-framework","gpt-3","gpt-4","gpt3","gpt4","json","linter","openai","quality-assurance","utility"],"created_at":"2024-12-01T04:10:46.165Z","updated_at":"2025-07-23T05:37:47.198Z","avatar_url":"https://github.com/hwvs.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GPTCodeQualitySharp (*-alpha_WiP_version*)\n\n[![.NET](https://github.com/hwvs/GPTCodeQualitySharp/actions/workflows/dotnet.yml/badge.svg)](https://github.com/hwvs/GPTCodeQualitySharp/actions/workflows/dotnet.yml)\n\n__GPTCodeQualitySharp__ is a __*language-agnostic code quality assessment tool*__ that utilizes OpenAI GPT (**default=`GPT-3.5-Turbo`**, *TODO: GPT4*) or compatible text-completion models to analyze and score source code based on multiple conventions, via a large prompt.\n\nThis project aims to help developers pin-point areas with poor code quality and improve their projects.\n\nCode is split into workable (truncated) chunks, and analyzed chunk-by-chunk - multiple pass-throughs using different chunk sizes (non-factors of each other) can allow the differential, or average, to be used to identify the precise areas, which avoids prompting for exact lines to flag.\n\n⚠️ __It is a work-in-progress__ and will be refactored for better performance and usability. All Classes are subject to future changes.\n\n*(This is only on GitHub to get it out to the public faster, it's not final)*\n\n## Credits\n#### **Original Author**: [Hunter Watson](https://github.com/hwvs)\n#### **Original Repo**: https://github.com/hwvs/GPTCodeQualitySharp\n#### **Code License**: Mozilla Public License 2.0\n## Contributions / Improvements\n#### 🏆 If you make any positive changes, please [submit a pull request](https://github.com/hwvs/GPTCodeQualitySharp/pulls)!\n\n---\n\n## 💡 Tested Languages (Target-Language Analyzed)\n- C#/.NET (CSharp) **`High Accuracy`**\n- PHP **`High Accuracy`**\n- Ruby **`High Accuracy`**\n- PowerShell **`High Accuracy`**\n- JavaScript **`Moderate Accuracy`**\n- VB.NET **`Moderate Accuracy`**\n- HTML/CSS **`Low Accuracy`**\n  \n*(Disclaimer: Accuracy is fairly subjective, and is compared to my own human opinion. Good code was tested from popular and well-engineered GitHub repositories. Bad code came from random searches for bad code, some of my own code, and by modifying some of the good code to add code-smells such as long chains of useless if-statements. )*\n\n## Screenshot of Demo App\n![Screenshot](https://i.imgur.com/NeIDKUI.png)\n\n## Features\n\n- Analyzes source code files and scores them based on multiple conventions\n- Stores API calls in an SQLite database to prevent duplicate calls\n- Uses multiple pass-throughs of the code to accurately pinpoint poor areas\n- Includes a demo application to showcase the API\n\n## (TODO) Future Improvements:\n\n- Improve the scoring algorithm for better accuracy\n- Refactor the codebase, using itself to see how it performs and to fine-tune the prompt\n- Add more prompts\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhwvs%2Fgptcodequalitysharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhwvs%2Fgptcodequalitysharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhwvs%2Fgptcodequalitysharp/lists"}