Skip to content

Commit 2a84233

Browse files
authored
Merge branch 'main' into my-feature-branch
2 parents c289314 + cfac77e commit 2a84233

File tree

902 files changed

+105216
-29247
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

902 files changed

+105216
-29247
lines changed
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
## DO NOT MODIFY THIS FILE MANUALLY. This is part of auto-baselining from 1ES Pipeline Templates. Go to [https://aka.ms/1espt-autobaselining] for more details.
2+
3+
pipelines:
4+
1275:
5+
retail:
6+
source:
7+
credscan:
8+
lastModifiedDate: 2024-03-18
9+
eslint:
10+
lastModifiedDate: 2024-03-18
11+
armory:
12+
lastModifiedDate: 2024-03-18
13+
psscriptanalyzer:
14+
lastModifiedDate: 2024-04-19
15+
binary:
16+
credscan:
17+
lastModifiedDate: 2024-03-18
18+
binskim:
19+
lastModifiedDate: 2025-01-10
20+
spotbugs:
21+
lastModifiedDate: 2024-04-19
22+
1264:
23+
retail:
24+
source:
25+
credscan:
26+
lastModifiedDate: 2024-03-19
27+
eslint:
28+
lastModifiedDate: 2024-03-19
29+
psscriptanalyzer:
30+
lastModifiedDate: 2024-03-19
31+
armory:
32+
lastModifiedDate: 2024-03-19
33+
policheck:
34+
lastModifiedDate: 2024-06-27
35+
binary:
36+
credscan:
37+
lastModifiedDate: 2024-03-19
38+
binskim:
39+
lastModifiedDate: 2025-01-10
40+
spotbugs:
41+
lastModifiedDate: 2024-03-19
42+
1271:
43+
retail:
44+
source:
45+
credscan:
46+
lastModifiedDate: 2024-03-27
47+
eslint:
48+
lastModifiedDate: 2024-03-27
49+
psscriptanalyzer:
50+
lastModifiedDate: 2024-03-27
51+
armory:
52+
lastModifiedDate: 2024-03-27
53+
1424:
54+
retail:
55+
source:
56+
credscan:
57+
lastModifiedDate: 2025-02-05
58+
eslint:
59+
lastModifiedDate: 2025-02-05
60+
psscriptanalyzer:
61+
lastModifiedDate: 2025-02-05
62+
armory:
63+
lastModifiedDate: 2025-02-05
64+
binary:
65+
credscan:
66+
lastModifiedDate: 2025-02-05
67+
binskim:
68+
lastModifiedDate: 2025-02-05
69+
spotbugs:
70+
lastModifiedDate: 2025-02-05

.config/branch-merge.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"merge-flow-configurations": {
3+
// Merge any prerelease only changes to main.
4+
"prerelease": {
5+
"MergeToBranch": "main",
6+
"ExtraSwitches": "-QuietComments"
7+
},
8+
// Merge any release only changes to main.
9+
"release": {
10+
"MergeToBranch": "main",
11+
"ExtraSwitches": "-QuietComments"
12+
}
13+
}
14+
}

.config/guardian/.gdnbaselines

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"properties": {
3+
"helpUri": "https://eng.ms/docs/microsoft-security/security/azure-security/cloudai-security-fundamentals-engineering/security-integration/guardian-wiki/microsoft-guardian/general/baselines"
4+
},
5+
"version": "1.0.0",
6+
"baselines": {
7+
"default": {
8+
"name": "default",
9+
"createdDate": "2024-09-09 19:35:36Z",
10+
"lastUpdatedDate": "2024-09-09 19:35:36Z"
11+
}
12+
},
13+
"results": {
14+
"26445e3e484940d2d58c2ffc32ab3895fca4b1589d66e2f2dee2fa01f2c479fb": {
15+
"signature": "26445e3e484940d2d58c2ffc32ab3895fca4b1589d66e2f2dee2fa01f2c479fb",
16+
"alternativeSignatures": [],
17+
"target": "test/omnisharp/omnisharpUnitTests/testAssets/private.pem",
18+
"line": 1,
19+
"memberOf": [
20+
"default"
21+
],
22+
"tool": "credscan",
23+
"ruleId": "CSCAN-GENERAL0020",
24+
"createdDate": "2025-02-05 00:31:10Z",
25+
"expirationDate": "2025-07-25 00:50:30Z",
26+
"justification": "This error is baselined with an expiration date of 180 days from 2025-02-05 00:50:30Z"
27+
}
28+
}
29+
}

.config/guardian/TSAConfig.gdntsa

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"codebaseName": "VSCode-CSharp-GitHub",
3+
"notificationAliases": [
4+
5+
],
6+
"codebaseAdmins": [
7+
"REDMOND\\phillipa",
8+
"REDMOND\\arkalyan"
9+
],
10+
"instanceUrl": "https://devdiv.visualstudio.com",
11+
"projectName": "DevDiv",
12+
"areaPath": "DevDiv\\NET Developer Experience\\CSharp and VB IDE\\VSCode",
13+
"iterationPath": "DevDiv",
14+
"allTools": true
15+
}

.config/snap-flow.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// ONLY THE VERSION OF THIS FILE IN THE MAIN BRANCH IS USED!
2+
{
3+
"merge-flow-configurations": {
4+
// format of this section is
5+
// "source-branch-name": {
6+
// "MergeToBranch": "target-branch-name"
7+
// },
8+
"main": {
9+
// The MergeToBranch property should be presented in the object in order the merge flow to work
10+
"MergeToBranch": "prerelease",
11+
// ExtraSwitches is an optional parameter which is accepted by the script: https://github.com/dotnet/arcade/blob/main/.github/workflows/inter-branch-merge-base.yml. Accepted values are similar to the values from the version file: https://github.com/dotnet/versions/blob/main/Maestro/subscriptions.json
12+
"ExtraSwitches": "-QuietComments"
13+
},
14+
"prerelease": {
15+
"MergeToBranch": "release",
16+
// ExtraSwitches is an optional parameter which is accepted by the script: https://github.com/dotnet/arcade/blob/main/.github/workflows/inter-branch-merge-base.yml. Accepted values are similar to the values from the version file: https://github.com/dotnet/versions/blob/main/Maestro/subscriptions.json
17+
"ExtraSwitches": "-QuietComments"
18+
}
19+
}
20+
}

.devcontainer/Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.192.0/containers/dotnet/.devcontainer/base.Dockerfile
2+
3+
FROM mcr.microsoft.com/dotnet/sdk:8.0
4+
5+
# Set up machine requirements to build the repo
6+
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
7+
&& apt-get -y install --no-install-recommends curl git gnupg \
8+
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
9+
&& apt-get install -y nodejs

.devcontainer/devcontainer.json

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2+
// https://github.com/microsoft/vscode-dev-containers/tree/v0.140.1/containers/dotnetcore
3+
{
4+
"name": "vscode-csharp",
5+
"build": {
6+
"dockerfile": "Dockerfile",
7+
// Set the context to the workspace folder to allow us to copy files from it.
8+
"context": ".."
9+
},
10+
"mounts": [
11+
"type=volume,target=${containerWorkspaceFolder}/node_modules"
12+
],
13+
"customizations": {
14+
"vscode": {
15+
"settings": {
16+
"files.associations": {
17+
"*.csproj": "msbuild",
18+
"*.fsproj": "msbuild",
19+
"*.globalconfig": "ini",
20+
"*.manifest": "xml",
21+
"*.nuspec": "xml",
22+
"*.pkgdef": "ini",
23+
"*.projitems": "msbuild",
24+
"*.props": "msbuild",
25+
"*.resx": "xml",
26+
"*.rsp": "Powershell",
27+
"*.ruleset": "xml",
28+
"*.settings": "xml",
29+
"*.shproj": "msbuild",
30+
"*.slnf": "json",
31+
"*.targets": "msbuild",
32+
"*.vbproj": "msbuild",
33+
"*.vsixmanifest": "xml",
34+
"*.vstemplate": "xml",
35+
"*.xlf": "xml",
36+
"*.yml": "azure-pipelines"
37+
},
38+
// ms-vscode.powershell settings
39+
"powershell.promptToUpdatePowerShell": false,
40+
"powershell.integratedConsole.showOnStartup": false,
41+
"powershell.startAutomatically": false,
42+
// ms-azure-devops.azure-pipelines settings
43+
"azure-pipelines.customSchemaFile": ".vscode/dnceng-schema.json",
44+
"jest.jestCommandLine": "./node_modules/.bin/jest"
45+
},
46+
"extensions": [
47+
"ms-dotnettools.csharp",
48+
"ms-dotnettools.csdevkit",
49+
"EditorConfig.EditorConfig",
50+
"ms-vscode.powershell",
51+
"tintoy.msbuild-project-tools",
52+
"ms-azure-devops.azure-pipelines",
53+
"dbaeumer.vscode-eslint",
54+
"esbenp.prettier-vscode",
55+
"orta.vscode-jest"
56+
]
57+
}
58+
},
59+
"postCreateCommand": "npm ci && npx gulp installDependencies && npm i -g gulp"
60+
}

.devcontainer/devinit.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"run": [
3+
{
4+
"tool": "require-dotnetcoresdk"
5+
}
6+
]
7+
}

.editorconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ root = true
55

66
# 4 space indentation
77
[*]
8+
insert_final_newline = true
89
indent_style = space
910
indent_size = 4
1011
trim_trailing_whitespace = true
12+
max_line_length = 120
1113

1214
# 2 space indentation and utf-8 for *.yml, package.json, and .json files under src
1315
[{*.yml,package.json,*.json}]

.eslintrc.js

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
module.exports = {
2+
env: {
3+
node: true
4+
},
5+
extends: [
6+
"eslint:recommended",
7+
"plugin:@typescript-eslint/recommended",
8+
],
9+
parser: "@typescript-eslint/parser",
10+
parserOptions: {
11+
project: true,
12+
tsconfigRootDir: __dirname,
13+
},
14+
plugins: [
15+
"@typescript-eslint",
16+
"unicorn",
17+
"header",
18+
"prettier"
19+
],
20+
root: true,
21+
rules: {
22+
"@typescript-eslint/no-explicit-any": "off",
23+
"@typescript-eslint/no-non-null-assertion": "off",
24+
"@typescript-eslint/no-require-imports": "off",
25+
// Allow unused vars if prefixed by _
26+
"@typescript-eslint/no-unused-vars": [
27+
"warn",
28+
{
29+
"argsIgnorePattern": "^_",
30+
"varsIgnorePattern": "^_",
31+
"caughtErrorsIgnorePattern": "^_"
32+
}
33+
],
34+
"@typescript-eslint/no-namespace": "off",
35+
"@typescript-eslint/promise-function-async": "error",
36+
"@typescript-eslint/no-floating-promises": "error",
37+
"prefer-promise-reject-errors": "error",
38+
"curly": "error",
39+
"prettier/prettier": [ "error", { "endOfLine": "auto" } ],
40+
"unicorn/filename-case": [
41+
"error",
42+
{
43+
"case": "camelCase",
44+
"ignore": [
45+
"I[A-Z].*\\.ts$",
46+
"vscode-tasks\\.d\\.ts"
47+
]
48+
}
49+
],
50+
"header/header": [ 2, "block", [
51+
"---------------------------------------------------------------------------------------------",
52+
" * Copyright (c) Microsoft Corporation. All rights reserved.",
53+
" * Licensed under the MIT License. See License.txt in the project root for license information.",
54+
" *--------------------------------------------------------------------------------------------"
55+
]]
56+
},
57+
ignorePatterns: [
58+
"out/",
59+
"dist/",
60+
"wallaby.js",
61+
"webpack.config.js",
62+
".eslintrc.js",
63+
"**/*.d.ts"
64+
],
65+
};

0 commit comments

Comments
 (0)