Skip to content

Commit 031a405

Browse files
authored
Enable Datadog static analysis (DataDog#5057)
* Add Datadog static analysis * Add ruleset * Move file to required location
1 parent e69a035 commit 031a405

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Based on https://app.datadoghq.com/ci/setup/static-analysis?provider=github
2+
on: [push]
3+
4+
jobs:
5+
check-quality:
6+
runs-on: ubuntu-latest
7+
name: Datadog Static Analyzer
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v3
11+
- name: Check code meets quality standards
12+
id: datadog-static-analysis
13+
uses: DataDog/datadog-static-analyzer-github-action@v1
14+
with:
15+
dd_api_key: ${{ secrets.DD_API_KEY }}
16+
dd_app_key: ${{ secrets.DD_APP_KEY }}
17+
dd_service: dd-trace-dotnet
18+
dd_site: datadoghq.com
19+
dd_env: ci
20+
cpu_count: 2
21+

static-analysis.datadog.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
rulesets:
2+
- csharp-best-practices # ensure best practices are followed
3+
- csharp-code-style # code-style enforcement for C#
4+
- csharp-inclusive # ensure that we use inclusive wording in our codebase
5+
- csharp-security # ensure your C# code is safe and secure

0 commit comments

Comments
 (0)