Skip to content

Commit 8f0119c

Browse files
committed
added dependabot
1 parent 9178778 commit 8f0119c

File tree

6 files changed

+45
-86
lines changed

6 files changed

+45
-86
lines changed

.github/workflows/dependatbot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "nuget" # For .NET projects
4+
directory: "/Sharpen.Analyzer/" # Location of your project file (e.g., .csproj or .sln)
5+
schedule:
6+
interval: "daily" # Check for updates daily
7+
open-pull-requests-limit: 10 # Limit the number of open PRs
8+
target-branch: "main" # Branch to target for updates
9+
reviewers: # Optional: Assign reviewers
10+
- "Jean-Fischer"
11+
assignees: # Optional: Assign assignees
12+
- "Jean-Fischer"

Readme.md

Lines changed: 33 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,35 @@
22

33
Roslyn analyzers + code fixes to help modernize C# codebases.
44

5-
## Repository layout
5+
## Install
66

7-
- `Sharpen.Analyzer/`: the Roslyn analyzer solution and projects.
8-
- `Sharpen.Analyzer/Sharpen.Analyzer.sln`: solution containing:
9-
- `Sharpen.Analyzer` (main analyzer project)
10-
- `Sharpen.Analyzer.Tests` (unit tests for analyzers/code fixes)
11-
- `Sharpen.Analyzer.Sample` (manual reproduction playground)
12-
- `openspec/`: OpenSpec workflow folder used to manage artifact-driven changes.
7+
Add the NuGet package to the project(s) you want to analyze:
8+
9+
```bash
10+
dotnet add package Sharpen.Analyzer
11+
```
12+
13+
## Use
14+
15+
Once the package is referenced, diagnostics are produced by Roslyn-based IDEs/editors and during `dotnet build` / `dotnet test`.
16+
17+
### Enable / configure rules
18+
19+
Rules can be configured using `.editorconfig` (severity, enable/disable, etc.).
20+
21+
Example:
22+
23+
```ini
24+
# .editorconfig
25+
26+
# SHARPEN004: Await Task.Delay instead of calling Thread.Sleep
27+
# (example severity; adjust to your needs)
28+
dotnet_diagnostic.SHARPEN004.severity = warning
29+
```
30+
31+
## Rules
32+
33+
See the **Supported rules/features** section below (source of truth).
1334

1435
## Supported rules/features
1536

@@ -120,4 +141,8 @@ Rules are grouped by the C# language version they target (when applicable).
120141

121142
## Development
122143

123-
Open `Sharpen.Analyzer/Sharpen.Analyzer.sln` and run the test project (`Sharpen.Analyzer.Tests`).
144+
Open [Sharpen.Analyzer/Sharpen.Analyzer.sln](Sharpen.Analyzer/Sharpen.Analyzer.sln:1) and run the test project (`Sharpen.Analyzer.Tests`).
145+
146+
## Contributing
147+
148+
See [todo.md](todo.md:1) for the current backlog and notes.

Sharpen.Analyzer/Sharpen.Analyzer/Sharpen.Analyzer/AnalyzerReleases.Shipped.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

Sharpen.Analyzer/Sharpen.Analyzer/Sharpen.Analyzer/AnalyzerReleases.Unshipped.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

Sharpen.Analyzer/Sharpen.Analyzer/Sharpen.Analyzer/Readme.md

Lines changed: 0 additions & 61 deletions
This file was deleted.

Sharpen.Analyzer/Sharpen.Analyzer/Sharpen.Analyzer/Sharpen.Analyzer.csproj

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@
4747
PackagePath="analyzers/dotnet/cs"
4848
Visible="false" />
4949

50-
<!-- Do not include markdown files in the NuGet package. -->
51-
<None Update="AnalyzerReleases.Shipped.md" Pack="false" />
52-
<None Update="AnalyzerReleases.Unshipped.md" Pack="false" />
5350
<None Update="Readme.md" Pack="true" />
5451
</ItemGroup>
5552

0 commit comments

Comments
 (0)