Skip to content

Commit 2ff9627

Browse files
authored
Merge branch 'master' into workflow-node20
2 parents d899a78 + 79fb57b commit 2ff9627

File tree

3,070 files changed

+23539
-22179
lines changed

Some content is hidden

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

3,070 files changed

+23539
-22179
lines changed

.eslintignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
*.html
21
*.ico
32
*.json
43
*.md

.eslintrc.json

Lines changed: 53 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
"extends": ["@pega"],
44
"parserOptions": {
55
"project": "tsconfig.json",
6-
"ecmaVersion": 13,
7-
"warnOnUnsupportedTypeScriptVersion": false
6+
"ecmaVersion": 13
7+
},
8+
"globals": {
9+
"PCore": "readonly"
810
},
911
"settings": {
1012
"import/resolver": {
@@ -14,22 +16,19 @@
1416
}
1517
}
1618
},
17-
"ignorePatterns": ["node_modules", "!.storybook", ".storybook/public"],
19+
"env": {
20+
"browser": true,
21+
"node": true
22+
},
23+
"ignorePatterns": ["node_modules", "!.storybook", ".storybook/public", "**/**/*.json"],
1824
"rules": {
1925
// Prettier recommends running separately from a linter.
2026
// https://prettier.io/docs/en/integrating-with-linters.html#notes
2127
"prettier/prettier": "off",
2228

2329
// Disable rules from shared configs we're not ready for yet.
24-
"sonarjs/cognitive-complexity": "off",
25-
"sonarjs/no-identical-functions": "off",
30+
"sonarjs/cognitive-complexity": ["warn", 20],
2631
"sonarjs/no-duplicate-string": "off",
27-
"sonarjs/no-nested-template-literals": "off",
28-
29-
//
30-
// JA - Override some default lint handling here
31-
"@typescript-eslint/array-type": ["error", { "default": "generic" }],
32-
// "import/extensions": ["warn", "never"], // Turning off for now (see below)
3332

3433
//
3534
// Initial release: turning these off; phase in to "warn" or "error" over time
@@ -45,90 +44,34 @@
4544
"import/no-unresolved": "off",
4645
"import/no-useless-path-segments": "off",
4746
"import/order": "off",
48-
"import/prefer-default-export": "off",
49-
"import/no-relative-packages": "off",
5047

51-
"no-else-return": "off",
52-
"no-restricted-syntax": "off",
53-
"no-underscore-dangle": "off",
48+
"no-underscore-dangle": "off", // TODO : adhere to standard naming
49+
"no-restricted-syntax": "warn", // TODO : fix for-in loops
5450

5551
"jsx-a11y/alt-text": "off",
5652
"jsx-a11y/anchor-is-valid": "off",
5753
"jsx-a11y/click-events-have-key-events": "off",
5854
"jsx-a11y/label-has-associated-control": "off",
5955
"jsx-a11y/no-static-element-interactions": "off",
6056

61-
"sonarjs/prefer-immediate-return": "off",
62-
"sonarjs/no-redundant-boolean": "off",
63-
64-
"@typescript-eslint/dot-notation": "off", // prefer warn but needs different parserOptions
57+
"class-methods-use-this": "off", // TODO ***
6558
"@typescript-eslint/naming-convention": "off", // prefer warn but needs different parserOptions
6659
"@typescript-eslint/ban-types": "off", // also, see override below
6760

68-
//
69-
// Initial release: set to error
70-
"@typescript-eslint/no-inferrable-types": "off",
61+
"import/no-relative-packages": "off", // arnab
62+
63+
// TODO: Need to be fixed
64+
"guard-for-in": "off",
7165
"eqeqeq": "off",
7266
"no-alert": "off",
7367
"no-console": "off",
74-
"no-fallthrough": "error",
75-
"no-undef": "off",
76-
"no-unused-vars": "off",
77-
"no-var": "error",
78-
"prefer-const": "error",
79-
"yoda": "error",
80-
"no-irregular-whitespace": "error",
81-
"no-empty": "off",
82-
"no-new-object": "error",
83-
84-
"import/no-mutable-exports": "error",
85-
"sonarjs/max-switch-cases": "error",
86-
"sonarjs/no-collapsible-if": "error",
87-
"sonarjs/no-all-duplicated-branches": "error",
88-
"sonarjs/no-duplicated-branches": "error",
89-
"sonarjs/no-gratuitous-expressions": "error",
90-
"sonarjs/no-ignored-return": "error",
91-
"sonarjs/no-small-switch": "off",
92-
"sonarjs/prefer-object-literal": "error",
93-
"sonarjs/prefer-single-boolean-return": "error",
94-
"@typescript-eslint/no-shadow": "error",
95-
"array-callback-return": "error",
96-
"camelcase": "error",
97-
"default-case": "error",
98-
"func-names": "error",
99-
"no-case-declarations": "error",
100-
"no-lonely-if": "error",
101-
"no-nested-ternary": "error",
102-
"no-plusplus": "off",
103-
"no-restricted-globals": "error",
104-
"no-restricted-properties": "error",
105-
"no-shadow": "error",
106-
"radix": "error",
107-
"spaced-comment": "error",
108-
109-
"import/newline-after-import": "error",
110-
"sonarjs/no-nested-switch": "error",
111-
"@typescript-eslint/no-array-constructor": "error",
112-
"@typescript-eslint/no-empty-function": "error",
113-
"@typescript-eslint/no-unused-vars": "error",
114-
"@typescript-eslint/no-useless-constructor": "error",
115-
"@typescript-eslint/no-unused-expressions": "error",
116-
"class-methods-use-this": "off",
117-
"guard-for-in": "off",
118-
"no-unneeded-ternary": "error",
119-
"no-unused-expressions": "error",
120-
"operator-assignment": "error",
121-
"prefer-template": "error",
122-
"vars-on-top": "error",
123-
124-
"no-use-before-define": "off", // doc for @typescript-eslint/no-use-before-define says to turn off the base implementation
125-
"@typescript-eslint/no-use-before-define": "error"
68+
"no-plusplus": "off"
12669
},
12770
"overrides": [
12871
{
12972
"files": "*.@(ts|tsx)",
13073
"rules": {
131-
"@typescript-eslint/method-signature-style": ["off", "property"],
74+
"@typescript-eslint/method-signature-style": ["error", "property"],
13275
// "@typescript-eslint/ban-types": [
13376
// "warn",
13477
// {
@@ -166,6 +109,40 @@
166109
"rules": {
167110
"import/prefer-default-export": ["off"]
168111
}
112+
},
113+
// angular specific lint rules
114+
{
115+
"files": ["*.ts"],
116+
"parserOptions": {
117+
"project": ["tsconfig.json"],
118+
"createDefaultProgram": true
119+
},
120+
"extends": ["plugin:@angular-eslint/recommended", "plugin:@angular-eslint/template/process-inline-templates"],
121+
"rules": {
122+
"@angular-eslint/directive-selector": [
123+
"error",
124+
{
125+
"type": "attribute",
126+
"style": "camelCase"
127+
}
128+
],
129+
"@angular-eslint/component-selector": [
130+
"error",
131+
{
132+
"type": "element",
133+
"style": "kebab-case"
134+
}
135+
],
136+
"@angular-eslint/no-output-on-prefix": "off",
137+
"import/prefer-default-export": "off"
138+
}
139+
},
140+
{
141+
"files": ["*.html"],
142+
"extends": ["plugin:@angular-eslint/template/recommended"],
143+
"rules": {
144+
"@angular-eslint/template/eqeqeq": "off"
145+
}
169146
}
170147
]
171148
}

.github/workflows/mend-scan.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
branches:
88
- 'master'
99
schedule:
10-
- cron: '0 0 * * *'
10+
- cron: '0 0 * * 1'
1111
jobs:
1212
mendscan:
1313
env:
@@ -40,13 +40,13 @@ jobs:
4040
java -jar wss-unified-agent.jar
4141
fi
4242
- name: 'Upload WhiteSource folder'
43-
uses: actions/upload-artifact@v2
43+
uses: actions/upload-artifact@v4
4444
with:
4545
name: Mend
4646
path: whitesource
4747
retention-days: 14
4848
- name: 'Upload Mend folder if failure'
49-
uses: actions/upload-artifact@v2
49+
uses: actions/upload-artifact@v4
5050
if: failure()
5151
with:
5252
name: Mend

.gitignore

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,16 @@ node_modules
1010
**/*.tgz
1111

1212
# file generated by build-sdk
13-
packages/angular-sdk-components/src/index.ts
14-
packages/angular-sdk-components/lib
15-
packages/angular-sdk-overrides/lib
13+
projects/angular-test-app/src/index.ts
14+
projects/angular-test-app/lib
15+
16+
# files generated by build-overrides
17+
packages/angular-sdk-overrides/lib/*
18+
# ignoring these files as these will be copied at build time
19+
packages/angular-sdk-overrides/LICENSE
20+
packages/angular-sdk-overrides/SECURITY.md
21+
22+
1623
# output for jest and playwright output
1724
/test-results
1825
/tests/coverage

.prettierignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
**/.git
2+
**/.github
3+
**/.vscode
4+
**/.svn
5+
**/.hg
6+
**/*.md
7+
**/*.svg
8+
**/assets

.prettierrc.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Prettier config options: https://prettier.io/docs/en/options.html
2+
// Shared front-end config: https://git.pega.io/projects/FE/repos/configs/browse/packages/prettier-config/index.json
3+
4+
module.exports = {
5+
plugins: ['@pega/prettier-config'],
6+
printWidth: 150,
7+
singleQuote: true,
8+
trailingComma: 'none',
9+
arrowParens: 'avoid'
10+
};

.prettierrc.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"typescript.tsdk": "node_modules/typescript/lib",
3+
"typescript.enablePromptUseWorkspaceTsdk": true,
4+
5+
"files.insertFinalNewline": true,
6+
"files.trimFinalNewlines": true,
7+
"files.trimTrailingWhitespace": true,
8+
"files.eol": "\n",
9+
"files.encoding": "utf8",
10+
11+
"editor.insertSpaces": true,
12+
"editor.tabSize": 2,
13+
"editor.formatOnSave": true,
14+
"editor.defaultFormatter": "esbenp.prettier-vscode",
15+
"editor.codeActionsOnSave": ["source.fixAll.eslint"],
16+
17+
"[javascript]": {
18+
"editor.formatOnSave": true
19+
},
20+
"[javascriptreact]": {
21+
"editor.formatOnSave": true
22+
},
23+
"[typescript]": {
24+
"editor.formatOnSave": true
25+
},
26+
"[typescriptreact]": {
27+
"editor.formatOnSave": true
28+
},
29+
"[json]": {
30+
"editor.formatOnSave": true
31+
},
32+
"[jsonc]": {
33+
"editor.formatOnSave": true
34+
},
35+
"[html]": {
36+
"editor.formatOnSave": true
37+
},
38+
"[markdown]": {
39+
"editor.formatOnSave": false
40+
},
41+
42+
"javascript.preferences.quoteStyle": "single",
43+
"javascript.format.semicolons": "insert",
44+
"typescript.preferences.quoteStyle": "single",
45+
"typescript.format.semicolons": "insert",
46+
47+
"npm.exclude": "**/packages/**",
48+
49+
"eslint.enable": true,
50+
"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact"],
51+
"eslint.workingDirectories": [{ "pattern": "." }],
52+
"prettier.configPath": ".prettierrc.js"
53+
}

SECURITY.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Reporting Security Issues
2+
3+
Pegasystems takes security seriously. We appreciate your efforts to responsibly disclose your findings, and will make every effort to acknowledge your contributions.
4+
5+
To report a security issue, [email us](mailto:[email protected];[email protected]) and include the word "SECURITY" in the subject line.
6+
7+
The Pega team will send a response indicating the next steps in handling your report. We may ask for additional information or guidance.
8+
9+
## Learning More About Security
10+
To learn more about securing a Pega application or our security capabilities, please see the [security article](https://community.pega.com/knowledgebase/capabilities/security) on Pega Community and the [Pega Trust Center](https://www.pega.com/products/cloud/pega-trust-center).

0 commit comments

Comments
 (0)