https://github.com/binkylabs/openai-analyzers
Analyzers for the dotnet OpenAI SDK to help you implement better practices with AI
https://github.com/binkylabs/openai-analyzers
analyzers dotnet openai security tooling
Last synced: 3 months ago
JSON representation
Analyzers for the dotnet OpenAI SDK to help you implement better practices with AI
- Host: GitHub
- URL: https://github.com/binkylabs/openai-analyzers
- Owner: BinkyLabs
- License: mit
- Created: 2025-11-19T13:50:53.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-11-19T20:55:02.000Z (8 months ago)
- Last Synced: 2025-11-19T21:08:04.921Z (8 months ago)
- Topics: analyzers, dotnet, openai, security, tooling
- Language: C#
- Homepage:
- Size: 94.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# OpenAI Analyzers
[](https://github.com/BinkyLabs/openai-analyzers/actions/workflows/dotnet.yml)
[](https://www.nuget.org/packages/BinkyLabs.OpenAI.Analyzers/)
A collection of Roslyn analyzers for detecting security and best practice issues when using the OpenAI .NET SDK.
## Analyzers
| Code | Title | Severity | Status |
| ---- | ----- | -------- | ------ |
| [BOA001](./rules/BOA001.md) | Avoid inputs in **SystemChatMessage** | ⚠️ | ✔️ |
| [BOA002](./rules/BOA002.md) | A **SystemChatMessage** should be last | ⚠️ | ✔️ |
## Installation
### Via the command line
```shell
dotnet add package BinkyLabs.OpenAI.Analyzers --prerelease
```
### In CSProj file
```xml
```
## Building
```bash
dotnet build
```
## Testing
```bash
dotnet test
```
## Contributing
See [CONTRIBUTING.md](CONTRIBUTING.md) for contribution guidelines.
## License
See [LICENSE](LICENSE) for license information.