Skip to content

Commit c7c948a

Browse files
Merge pull request #224 from github/update-v1-b2dfa6e6
Merge main into v1
2 parents f6894d6 + b2dfa6e commit c7c948a

File tree

5,607 files changed

+494231
-64423
lines changed

Some content is hidden

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

5,607 files changed

+494231
-64423
lines changed

.eslintignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
**/webpack.config.js
2+
lib/**
3+
runner/dist/**
4+
src/testdata/**
5+
tests/**

.eslintrc.json

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
2+
{
3+
"parser": "@typescript-eslint/parser",
4+
"parserOptions": {
5+
"project": "./tsconfig.json"
6+
},
7+
"plugins": ["@typescript-eslint", "filenames", "github", "import", "no-async-foreach"],
8+
"extends": [
9+
"eslint:recommended",
10+
"plugin:@typescript-eslint/recommended",
11+
"plugin:@typescript-eslint/recommended-requiring-type-checking",
12+
"plugin:github/recommended",
13+
"plugin:github/typescript"
14+
],
15+
"rules": {
16+
"filenames/match-regex": ["error", "^[a-z0-9-]+(\\.test)?$"],
17+
"import/extensions": "error",
18+
"import/no-amd": "error",
19+
"import/no-commonjs": "error",
20+
"import/no-dynamic-require": "error",
21+
"import/no-extraneous-dependencies": ["error", {"devDependencies": false}],
22+
"import/no-namespace": "off",
23+
"import/no-unresolved": "error",
24+
"import/no-webpack-loader-syntax": "error",
25+
"no-async-foreach/no-async-foreach": "error",
26+
"no-console": "off",
27+
"no-sequences": "error",
28+
"one-var": ["error", "never"],
29+
"sort-imports": ["error", { "allowSeparatedGroups": true }]
30+
},
31+
"overrides": [{
32+
// "temporarily downgraded during transition to eslint
33+
"files": "**",
34+
"rules": {
35+
"@typescript-eslint/ban-types": "off",
36+
"@typescript-eslint/explicit-module-boundary-types": "off",
37+
"@typescript-eslint/no-explicit-any": "off",
38+
"@typescript-eslint/no-unsafe-assignment": "off",
39+
"@typescript-eslint/no-unsafe-call": "off",
40+
"@typescript-eslint/no-unsafe-member-access": "off",
41+
"@typescript-eslint/no-unsafe-return": "off",
42+
"@typescript-eslint/no-unused-vars": "off",
43+
"@typescript-eslint/no-var-requires": "off",
44+
"@typescript-eslint/prefer-regexp-exec": "off",
45+
"@typescript-eslint/require-await": "off",
46+
"@typescript-eslint/restrict-template-expressions": "off",
47+
"eslint-comments/no-use": "off",
48+
"func-style": "off",
49+
"github/array-foreach": "off",
50+
"github/no-then": "off",
51+
"import/no-extraneous-dependencies": "off",
52+
"no-shadow": "off",
53+
"no-sparse-arrays": "off",
54+
"no-throw-literal": "off",
55+
"no-useless-escape": "off",
56+
"sort-imports": "off"
57+
}
58+
}]
59+
}

.github/workflows/codeql.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: "CodeQL action"
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches: [main, v1]
6+
pull_request:
47

58
jobs:
69
build:

.github/workflows/integration-testing.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: "Integration Testing"
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches: [main, v1]
6+
pull_request:
47

58
jobs:
69
multi-language-repo_test-autodetect-languages:
@@ -150,7 +153,7 @@ jobs:
150153
- uses: ./../action/analyze
151154
env:
152155
TEST_MODE: true
153-
156+
154157
runner-analyze-javascript-ubuntu:
155158
runs-on: ubuntu-latest
156159

@@ -176,7 +179,7 @@ jobs:
176179
runner/dist/codeql-runner-linux analyze --repository $GITHUB_REPOSITORY --commit $GITHUB_SHA --ref $GITHUB_REF --github-url $GITHUB_SERVER_URL --github-auth ${{ github.token }}
177180
env:
178181
TEST_MODE: true
179-
182+
180183
runner-analyze-javascript-windows:
181184
runs-on: windows-latest
182185

@@ -198,7 +201,7 @@ jobs:
198201
runner/dist/codeql-runner-win.exe analyze --repository $Env:GITHUB_REPOSITORY --commit $Env:GITHUB_SHA --ref $Env:GITHUB_REF --github-url $Env:GITHUB_SERVER_URL --github-auth ${{ github.token }}
199202
env:
200203
TEST_MODE: true
201-
204+
202205
runner-analyze-javascript-macos:
203206
runs-on: macos-latest
204207

@@ -220,7 +223,7 @@ jobs:
220223
runner/dist/codeql-runner-macos analyze --repository $GITHUB_REPOSITORY --commit $GITHUB_SHA --ref $GITHUB_REF --github-url $GITHUB_SERVER_URL --github-auth ${{ github.token }}
221224
env:
222225
TEST_MODE: true
223-
226+
224227
runner-analyze-csharp-ubuntu:
225228
runs-on: ubuntu-latest
226229

@@ -254,7 +257,7 @@ jobs:
254257
../action/runner/dist/codeql-runner-linux analyze --repository $GITHUB_REPOSITORY --commit $GITHUB_SHA --ref $GITHUB_REF --github-url $GITHUB_SERVER_URL --github-auth ${{ github.token }}
255258
env:
256259
TEST_MODE: true
257-
260+
258261
runner-analyze-csharp-windows:
259262
runs-on: windows-latest
260263

@@ -325,7 +328,7 @@ jobs:
325328
env:
326329
TEST_MODE: true
327330

328-
331+
329332
runner-analyze-csharp-autobuild-ubuntu:
330333
runs-on: ubuntu-latest
331334

@@ -358,7 +361,7 @@ jobs:
358361
../action/runner/dist/codeql-runner-linux analyze --repository $GITHUB_REPOSITORY --commit $GITHUB_SHA --ref $GITHUB_REF --github-url $GITHUB_SERVER_URL --github-auth ${{ github.token }}
359362
env:
360363
TEST_MODE: true
361-
364+
362365
runner-analyze-csharp-autobuild-windows:
363366
runs-on: windows-latest
364367

.github/workflows/pr-checks.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
11
name: "PR checks"
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches: [main, v1]
6+
pull_request:
47

58
jobs:
6-
tslint:
9+
lint-js:
710
runs-on: ubuntu-latest
811

912
steps:
10-
- uses: actions/checkout@v1
11-
- name: tslint
13+
- uses: actions/checkout@v2
14+
- name: Run Lint
1215
run: npm run-script lint
1316

1417
check-js:
1518
runs-on: ubuntu-latest
1619

1720
steps:
18-
- uses: actions/checkout@v1
21+
- uses: actions/checkout@v2
1922
- name: Check generated JavaScript
2023
run: |
2124
# Sanity check that repo is clean to start with
@@ -41,7 +44,7 @@ jobs:
4144
runs-on: ubuntu-latest
4245

4346
steps:
44-
- uses: actions/checkout@v1
47+
- uses: actions/checkout@v2
4548
- name: Check node modules up to date
4649
run: |
4750
# Sanity check that repo is clean to start with
@@ -50,7 +53,6 @@ jobs:
5053
>&2 echo "Failed: Repo should be clean before testing!"
5154
exit 1
5255
fi
53-
5456
# Reinstall modules and then clean to remove absolute paths
5557
# Use 'npm ci' instead of 'npm install' as this is intended to be reproducible
5658
npm ci
@@ -71,6 +73,6 @@ jobs:
7173
runs-on: ${{ matrix.os }}
7274

7375
steps:
74-
- uses: actions/checkout@v1
76+
- uses: actions/checkout@v2
7577
- name: npm run-script test
7678
run: npm run-script test

0 commit comments

Comments
 (0)