https://github.com/octopusdeploy/roslynanalyzers
| Public | Roslyn analysers used for Octopus Projects
https://github.com/octopusdeploy/roslynanalyzers
public
Last synced: 11 months ago
JSON representation
| Public | Roslyn analysers used for Octopus Projects
- Host: GitHub
- URL: https://github.com/octopusdeploy/roslynanalyzers
- Owner: OctopusDeploy
- License: other
- Created: 2021-01-19T23:13:31.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2023-12-06T04:01:12.000Z (about 2 years ago)
- Last Synced: 2025-01-22T10:15:55.018Z (about 1 year ago)
- Topics: public
- Language: C#
- Size: 138 KB
- Stars: 2
- Watchers: 10
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Roslyn analyzers
## Purpose
This repository stores roslyn analyzers we use at Octopus Deploy which are shared across multiple projects.
For analyzers that are specific to the Octopus Server codebase, please do not add them here. Rather, refer to OctopusDeploy/source/Octopus.Server.RoslynAnalyzers
## Doco
Each analyzer provides it's own documentation that can be found here:
- [Unwanted Method Calls Analyzer](source/UnwantedMethodCallsAnalyzer/Readme.md)
## Creating your own Analyzer
1. Follow the instructions in [this blog post](https://devblogs.microsoft.com/dotnet/how-to-write-a-roslyn-analyzer/) to setup your Visual Studio.
- [Roslyn analyzers documentation](https://github.com/dotnet/roslyn/tree/master/docs/analyzers)
- [Example analyzers](https://github.com/dotnet/roslyn-sdk/tree/master/samples/CSharp)
2. Test your nuget package analyzer against a project locally
3. Create a build pipeline to publish your analyzer nuget package
4. Update this readme to point to your analyzers root readme file
5. Let others know it exists!