-
Notifications
You must be signed in to change notification settings - Fork 464
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2,412 changed files
with
372,323 additions
and
116,320 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"instanceUrl": "https://devdiv.visualstudio.com/", | ||
"template": "TFSDEVDIV", | ||
"projectName": "DEVDIV", | ||
"areaPath": "DevDiv\\NET Developer Experience\\Productivity", | ||
"iterationPath": "DevDiv", | ||
"notificationAliases": [ "mlinfraswat@microsoft.com" ], | ||
"repositoryName":"roslyn-analyzers", | ||
"codebaseName": "roslyn-analyzers" | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"postCreateCommand": "devinit init" | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"run": [ | ||
{ | ||
"tool": "require-dotnetcoresdk" | ||
} | ||
] | ||
} |
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
--- | ||
name: Bug report | ||
about: Report a bug, false-positive or false-negative for a CAxxxx rule. For IDExxxx, please open an issue in dotnet/roslyn repository. | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
### Analyzer | ||
|
||
**Diagnostic ID**: [CA2013](https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2013): `Do not use ReferenceEquals with value types` | ||
|
||
### Analyzer source | ||
|
||
**SDK**: [Built-in CA analyzers in .NET 5 SDK or later](https://learn.microsoft.com/dotnet/fundamentals/productivity/code-analysis) | ||
|
||
**Version**: [SDK 5.0.100](https://dotnet.microsoft.com/download/dotnet/5.0) | ||
|
||
<!-- | ||
Note: Updates to NuGet package are more frequent than SDK, which means the NuGet package has fixes that haven't yet made it into the SDK. | ||
Please check whether you can reproduce the bug you encountered in the latest NuGet package. | ||
--> | ||
|
||
_OR_ | ||
|
||
**NuGet Package**: [Microsoft.CodeAnalysis.NetAnalyzers](https://www.nuget.org/packages/Microsoft.CodeAnalysis.NetAnalyzers) | ||
|
||
**Version**: 5.0.3 (Latest) | ||
|
||
<!-- | ||
NOTE: `Microsoft.CodeAnalysis.FxCopAnalyzers` package has been deprecated in favor of 'Microsoft.CodeAnalysis.NetAnalyzers', that ships with the .NET SDK. | ||
Please refer to https://learn.microsoft.com/visualstudio/code-quality/migrate-from-fxcop-analyzers-to-net-analyzers to migrate to .NET analyzers. | ||
--> | ||
|
||
### Describe the bug | ||
|
||
<!-- A clear and concise description of what the bug is. --> | ||
|
||
### Steps To Reproduce | ||
|
||
<!-- | ||
Provide the steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
--> | ||
|
||
### Expected behavior | ||
|
||
### Actual behavior | ||
|
||
## Additional context | ||
|
||
<!-- Add any other context about the problem here. --> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
name: Rule improvement suggestion | ||
about: Suggest an improvement for a rule | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
### Analyzer | ||
|
||
**Diagnostic ID**: [CA1716](https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1716) | ||
|
||
### Describe the improvement | ||
|
||
<!-- A clear and concise description of the improvement. --> | ||
|
||
### Describe suggestions on how to achieve the rule | ||
|
||
<!-- A clear description to how to achieve the rule. --> | ||
|
||
### Additional context | ||
|
||
<!-- Add any other context or screenshots about the rule request here. --> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
name: New rule suggestion | ||
about: Suggest a new rule | ||
title: '' | ||
labels: 'new-rule' | ||
assignees: '' | ||
|
||
--- | ||
|
||
<!-- Please refer to https://github.com/dotnet/roslyn-analyzers/blob/main/GuidelinesForNewRules.md --> | ||
|
||
### Describe the problem you are trying to solve | ||
|
||
<!-- A clear and concise description of what you want to the rule to prevent. --> | ||
|
||
### Describe suggestions on how to achieve the rule | ||
|
||
<!-- A clear description to how to achieve the rule. Suggest how a code-fix could automatically fix the issue/problem --> | ||
|
||
### Additional context | ||
|
||
<!-- Add any other context or screenshots about the rule request here. --> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!-- | ||
Make sure you have read the contribution guidelines: | ||
- https://learn.microsoft.com/contribute/dotnet/dotnet-contribute-code-analysis#contribute-docs-for-caxxxx-rules | ||
- https://github.com/dotnet/roslyn-analyzers/blob/main/GuidelinesForNewRules.md | ||
If your Pull Request is doing one of the following: | ||
- Adding a new diagnostic analyzer or a code fix | ||
- Adding or updating resource strings used by analyzers and code fixes | ||
- Updating analyzer package versions in [Versions.props](../eng/Versions.props) | ||
Then, make sure to run `msbuild /t:pack /v:m` in the repository root; otherwise, the CI build will fail. | ||
- This command must be run from a Visual Studio Developer Command Prompt | ||
- Alternatively, `dotnet msbuild RoslynAnalyzers.sln -t:pack -v:m` can be used from a standard terminal window | ||
Note: Consider merging the PR base branch (`2.9.x`, `main`, or `release/*`) into your branch before you run the pack command to reduce merge conflicts. | ||
--> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Label community PRs | ||
on: | ||
pull_request_target: | ||
types: [opened] | ||
permissions: | ||
issues: write | ||
pull-requests: write | ||
jobs: | ||
add_community_label: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.repository == 'dotnet/roslyn-analyzers' && github.event.pull_request.user.login != 'dotnet-bot' && github.event.pull_request.user.login != 'dotnet-maestro[bot]' }} | ||
steps: | ||
- name: Get data | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
ORGANIZATION: dotnet | ||
REPOSITORY: roslyn-analyzers | ||
LABEL_NAME: Community | ||
PULL_REQUEST_NUMBER: ${{ github.event.pull_request.number }} | ||
run: | | ||
gh api graphql -f query=' | ||
query($org: String!, $repo: String!, $pull: Int!, $label: String!) { | ||
repository(name: $repo, owner: $org) { | ||
label(name: $label) { | ||
id | ||
} | ||
pullRequest(number: $pull) { | ||
authorAssociation | ||
} | ||
} | ||
}' -f org=$ORGANIZATION -f repo=$REPOSITORY -F pull=$PULL_REQUEST_NUMBER -f label="$LABEL_NAME" > data.json | ||
cat data.json | ||
echo 'LABEL_ID='$(jq -r '.data.repository.label.id' data.json) >> $GITHUB_ENV | ||
echo 'AUTHOR_ASSOCIATION='$(jq -r '.data.repository.pullRequest.authorAssociation' data.json) >> $GITHUB_ENV | ||
- name: Assign label | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
PULL_REQUEST_ID: ${{ github.event.pull_request.node_id }} | ||
if: ${{ env.LABEL_ID != '' && env.LABEL_ID != 'null' && env.AUTHOR_ASSOCIATION != 'MEMBER' }} | ||
run: | | ||
gh api graphql -f query=' | ||
mutation($pull: ID!, $label: ID!) { | ||
addLabelsToLabelable(input: {labelableId: $pull, labelIds: [$label]}) { | ||
clientMutationId | ||
} | ||
}' -f pull=$PULL_REQUEST_ID -f label=$LABEL_ID |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Enable auto merge | ||
on: | ||
pull_request_target: | ||
types: [opened, ready_for_review] | ||
permissions: | ||
contents: write | ||
jobs: | ||
add_milestone: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.repository == 'dotnet/roslyn-analyzers' && github.event.pull_request.user.login == 'dotnet-bot' && startsWith(github.event.pull_request.title, 'Localized file check-in') }} | ||
steps: | ||
- name: Enable pull request auto-merge | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
PULL_REQUEST_ID: ${{ github.event.pull_request.node_id }} | ||
run: | | ||
gh api graphql -f query=' | ||
mutation($pull: ID!) { | ||
enablePullRequestAutoMerge(input: {pullRequestId: $pull}) { | ||
pullRequest { | ||
id | ||
number | ||
autoMergeRequest { | ||
mergeMethod | ||
} | ||
} | ||
} | ||
}' -f pull=$PULL_REQUEST_ID |
Oops, something went wrong.