Skip to content

Commit

Permalink
Merge branch 'main' into features/FirstClassSpan
Browse files Browse the repository at this point in the history
  • Loading branch information
jjonescz committed Oct 3, 2024
2 parents 9ddc1e7 + 0d41e66 commit dcb3058
Show file tree
Hide file tree
Showing 3,479 changed files with 105,739 additions and 51,689 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
15 changes: 14 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,19 @@ dotnet_public_api_analyzer.require_api_files = true
# Workaround for https://github.com/dotnet/roslyn/issues/70570
dotnet_diagnostic.IDE0055.severity = warning

# These xUnit analyzers were disabled temporarily to let us move to the
# new xUnit and get past several component governance issues. The
# following issue tracks enabling them
#
# https://github.com/dotnet/roslyn/issues/75093
dotnet_diagnostic.xUnit1012.severity = none
dotnet_diagnostic.xUnit1030.severity = none
dotnet_diagnostic.xUnit1031.severity = none
dotnet_diagnostic.xUnit2005.severity = none
dotnet_diagnostic.xUnit2020.severity = none
dotnet_diagnostic.xUnit2023.severity = none
dotnet_diagnostic.xUnit2029.severity = none

# CSharp code style settings:
[*.cs]
# Newline settings
Expand Down Expand Up @@ -300,4 +313,4 @@ dotnet_diagnostic.RS0057.severity = error
dotnet_diagnostic.RS0058.severity = error
dotnet_diagnostic.RS0059.severity = error
dotnet_diagnostic.RS0060.severity = error
dotnet_diagnostic.RS0061.severity = error
dotnet_diagnostic.RS0061.severity = error
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ about: Report a bug in Roslyn
2.
3.

A minimal repro, with source-code provided, is ideal. Using [sharplab](https://sharplab.io/) is preferred for compiler/language issues whenever possible.
A minimal repro, with source-code provided, is ideal. Most compiler/language issues can be distilled into a snippet that can be pasted into [sharplab](https://sharplab.io/).

**Diagnostic Id**:

Expand Down
91 changes: 68 additions & 23 deletions .github/policies/resourceManagement.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ where:
configuration:
resourceManagementConfiguration:
scheduledSearches:

- description: Close "Need More Info" Issues
frequencies:
- hourly:
Expand All @@ -23,8 +24,12 @@ configuration:
- closeIssue
- addReply:
reply: "Closing this issue as we've seen no reply to the request for more information. If you are able to get the requested information, please add it to the issue and we will retriage it. "

eventResponderTasks:
- if:

- description: Auto-approve auto-merge PRs
triggerOnOwnActions: false
if:
- payloadType: Pull_Request
- isPullRequest
- labelAdded:
Expand All @@ -38,9 +43,10 @@ configuration:
then:
- approvePullRequest:
comment: Auto-approval
description: Auto-approve auto-merge PRs

- description: Auto-approve maestro PRs
triggerOnOwnActions: false
- if:
if:
- payloadType: Pull_Request
- isPullRequest
- isActivitySender:
Expand All @@ -55,9 +61,10 @@ configuration:
then:
- approvePullRequest:
comment: Auto-approve
description: Auto-approve maestro PRs
triggerOnOwnActions: false
- if:

- description: Milestone tracking
triggerOnOwnActions: true
if:
- payloadType: Pull_Request
- isPullRequest
- or:
Expand All @@ -72,9 +79,10 @@ configuration:
then:
- addMilestone:
milestone: Next
description: Milestone tracking
triggerOnOwnActions: true
- if:

- description: Auto-approve OneLoc PRs
triggerOnOwnActions: false
if:
- payloadType: Pull_Request
- isPullRequest
- isActivitySender:
Expand All @@ -88,9 +96,10 @@ configuration:
then:
- addLabel:
label: auto-merge
description: Auto-approve OneLoc PRs

- description: Remove "Need More Info" on comment
triggerOnOwnActions: false
- if:
if:
- payloadType: Issue_Comment
- isIssue
- isOpen
Expand All @@ -101,9 +110,10 @@ configuration:
label: untriaged
- removeLabel:
label: Need More Info
description: Remove "Need More Info" on comment

- description: Label Community Pull Requests
triggerOnOwnActions: false
- if:
if:
- payloadType: Pull_Request
- isPullRequest
- isAction:
Expand Down Expand Up @@ -142,13 +152,45 @@ configuration:
then:
- addLabel:
label: Community
description: Label Community Pull Requests

- description: Adds "VSCode" tag on PRs which may affect C# extension.
triggerOnOwnActions: false
if:
- payloadType: Pull_Request
- isPullRequest
- filesMatchPattern:
pattern: 'src/(Analyzers|CodeStyle|Features|LanguageServer|Workspaces)/.*\.(cs|vb)$'
matchAny: true
- and:
- not:
isActivitySender:
user: dotnet-bot
issueAuthor: False
- not:
isActivitySender:
user: github-actions
issueAuthor: False
- or:
- isAction:
action: Opened
- isAction:
action: Synchronize
- and:
- not:
hasLabel:
label: VSCode
then:
- addLabel:
label: VSCode

- description: Add "Needs UX Triage" on PRs
triggerOnOwnActions: false
- if:
if:
- payloadType: Pull_Request
- isPullRequest
- filesMatchPattern:
pattern: '[xX][aA][mM][lL]$'
pattern: '.*\.[xX][aA][mM][lL]$'
matchAny: true
- and:
- not:
hasLabel:
Expand Down Expand Up @@ -187,12 +229,15 @@ configuration:
then:
- addLabel:
label: Needs UX Triage
description: Add "Needs UX Triage" on PRs

- description: Adds "Needs API Review" on PRs that touch public APIs
triggerOnOwnActions: false
- if:
if:
- payloadType: Pull_Request
- isPullRequest
- filesMatchPattern:
pattern: .*/PublicAPI\.(Shipped|Unshipped)\.txt
pattern: '.*/PublicAPI\.(Shipped|Unshipped)\.txt'
matchAny: true
- not:
isActivitySender:
user: dotnet-bot
Expand All @@ -214,9 +259,10 @@ configuration:
label: Needs API Review
- addReply:
reply: This PR modifies public API files. Please follow the instructions at https://github.com/dotnet/roslyn/blob/main/docs/contributing/API%20Review%20Process.md for ensuring all public APIs are reviewed before merging.
description: Adds "Needs API Review" on PRs that touch public APIs

- description: Close automatically generated PR tagger issues
triggerOnOwnActions: false
- if:
if:
- payloadType: Issues
- isIssue
- hasLabel:
Expand All @@ -226,7 +272,6 @@ configuration:
isRegex: False
then:
- closeIssue
description: Close automatically generated PR tagger issues
triggerOnOwnActions: false

onFailure:
onSuccess:
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
.packages/
.nuget/
.complog/
/MSBuild_Logs/

# Enable "build/" folder in the NuGet Packages folder since NuGet packages use it for MSBuild targets
!packages/*/build/
Expand Down
10 changes: 9 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,13 @@
"azure-pipelines.customSchemaFile": ".vscode/dnceng-schema.json",
"dotnet.defaultSolution": "Roslyn.sln",
"dotnet.completion.showCompletionItemsFromUnimportedNamespaces": true,
"dotnet.testWindow.disableAutoDiscovery": true
"dotnet.testWindow.disableAutoDiscovery": true,
"dotnet.testWindow.disableBuildOnRefresh": true,
"cSpell.words": [
"Nerdbank",
"NETCOREAPP",
"Unregistration",
"Unregistrations",
"Xunit"
]
}
35 changes: 18 additions & 17 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,6 @@
"problemMatcher": "$msCompile",
"group": "build"
},
{
"label": "build with analyzers",
"command": "./build.sh",
"type": "shell",
"args": [
"--runAnalyzers"
],
"windows": {
"command": "${workspaceFolder}/build.cmd",
"args": [
"-runAnalyzers"
],
},
"problemMatcher": "$msCompile",
"group": "build"
},
{
"label": "build csc",
"command": "dotnet",
Expand All @@ -49,6 +33,7 @@
"msbuild",
"-p:RunAnalyzersDuringBuild=false",
"-p:GenerateFullPaths=true",
"-tl:off",
"src/Compilers/CSharp/csc/AnyCpu/csc.csproj"
],
"problemMatcher": "$msCompile",
Expand All @@ -62,6 +47,7 @@
"build",
"-p:RunAnalyzersDuringBuild=false",
"-p:GenerateFullPaths=true",
"-tl:off",
"Compilers.slnf"
],
"problemMatcher": "$msCompile",
Expand All @@ -75,6 +61,21 @@
"build",
"-p:RunAnalyzersDuringBuild=false",
"-p:GenerateFullPaths=true",
"-tl:off",
"Roslyn.sln"
],
"problemMatcher": "$msCompile",
"group": "build"
},
{
"label": "build Roslyn.sln with analyzers",
"command": "dotnet",
"type": "shell",
"args": [
"build",
"-p:RunAnalyzersDuringBuild=true",
"-p:GenerateFullPaths=true",
"-tl:off",
"Roslyn.sln"
],
"problemMatcher": "$msCompile",
Expand Down Expand Up @@ -145,7 +146,7 @@
"build",
"-c",
"Debug",
"src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/Microsoft.CodeAnalysis.LanguageServer.csproj"
"src/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/Microsoft.CodeAnalysis.LanguageServer.csproj"
],
"problemMatcher": "$msCompile",
"group": "build"
Expand Down
3 changes: 1 addition & 2 deletions Directory.Build.rsp
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# Workaround for https://github.com/dotnet/sdk/issues/41791
-p:_IsDisjointMSBuildVersion=false
# This file intentionally left blank to avoid accidental import during build.
Loading

0 comments on commit dcb3058

Please sign in to comment.