Sync missing template configs and scripts#75
Merged
Conversation
Added: .gitattributes .globalconfig BannedSymbols.txt Directory.Build.props codeql.yaml Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR syncs this repository with the repo template by adding missing repository configuration files (build/analyzers, git attributes, analyzer config) and introducing a CodeQL workflow for security scanning.
Changes:
- Add repo-wide MSBuild/analyzer configuration via
Directory.Build.props(including banned API enforcement viaBannedSymbols.txt). - Add global analyzer configuration in
.globalconfigand repository line-ending rules in.gitattributes. - Add a new GitHub Actions workflow to run CodeQL analysis on C# code.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
Directory.Build.props |
Enables .NET analyzers/code style in builds and adds analyzer package references plus BannedSymbols.txt as an additional file. |
BannedSymbols.txt |
Defines banned APIs intended to enforce async-first patterns and avoid unsafe/deprecated APIs. |
.globalconfig |
Sets global analyzer configuration defaults and Roslynator options. |
.github/workflows/codeql.yaml |
Adds a CodeQL security analysis workflow (push/PR/scheduled). |
.gitattributes |
Standardizes line endings and marks binary files appropriately. |
…rigger
BannedSymbols.txt:
- Remove () from parameterless method IDs (Task.Wait, GetResult,
Thread.Suspend/Resume, Stream.Flush, Console.Read/ReadLine/ReadKey)
so BannedApiAnalyzers actually matches them
- Replace {{PROJECT_NAME}} placeholder with Try-Pattern
.gitattributes:
- Simplify PowerShell comment (referenced nonexistent .editorconfig section)
codeql.yaml:
- Remove pull_request trigger (security-events: write fails on fork PRs)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Sync with repo-template — adds missing files:
.gitattributes .globalconfig BannedSymbols.txt Directory.Build.props codeql.yaml
🤖 Generated with Claude Code