742 lines
22 KiB
JSON
742 lines
22 KiB
JSON
{
|
|
"version": "2.1.0",
|
|
"$schema": "http://json.schemastore.org/sarif-2.1.0-rtm.5",
|
|
"runs": [
|
|
{
|
|
"tool": {
|
|
"driver": {
|
|
"name": "ESLint",
|
|
"informationUri": "https://eslint.org",
|
|
"version": "8.57.1",
|
|
"rules": [
|
|
{
|
|
"id": "@rushstack/no-new-null",
|
|
"helpUri": "https://www.npmjs.com/package/@rushstack/eslint-plugin",
|
|
"properties": {},
|
|
"shortDescription": {
|
|
"text": "Prevent usage of JavaScript's \"null\" keyword in new type declarations. To avoid hampering usage of preexisting APIs that require \"null\", the rule ignores declarations that are local variables, private members, or types that are not exported."
|
|
}
|
|
},
|
|
{
|
|
"id": "dot-notation",
|
|
"helpUri": "https://eslint.org/docs/latest/rules/dot-notation",
|
|
"properties": {},
|
|
"shortDescription": {
|
|
"text": "Enforce dot notation whenever possible"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"artifacts": [
|
|
{
|
|
"location": {
|
|
"uri": "src/webparts/ctFormsPortal/components/registry/documentRegistry.ts"
|
|
}
|
|
},
|
|
{
|
|
"location": {
|
|
"uri": "src/webparts/ctFormsPortal/components/config/ctDocumentConfig.ts"
|
|
}
|
|
},
|
|
{
|
|
"location": {
|
|
"uri": "src/webparts/ctFormsPortal/components/config/oidDocumentConfig.ts"
|
|
}
|
|
},
|
|
{
|
|
"location": {
|
|
"uri": "src/webparts/ctFormsPortal/components/config/kpsDocumentConfig.ts"
|
|
}
|
|
},
|
|
{
|
|
"location": {
|
|
"uri": "src/webparts/ctFormsPortal/components/registry/documentsService.ts"
|
|
}
|
|
},
|
|
{
|
|
"location": {
|
|
"uri": "src/webparts/ctFormsPortal/components/registry/useDocumentDashboard.ts"
|
|
}
|
|
}
|
|
],
|
|
"results": [
|
|
{
|
|
"level": "warning",
|
|
"message": {
|
|
"text": "Usage of \"null\" is deprecated except when describing legacy APIs; use \"undefined\" instead"
|
|
},
|
|
"locations": [
|
|
{
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "src/webparts/ctFormsPortal/components/registry/documentRegistry.ts",
|
|
"index": 0
|
|
},
|
|
"region": {
|
|
"startLine": 45,
|
|
"startColumn": 44,
|
|
"endLine": 45,
|
|
"endColumn": 48,
|
|
"snippet": {
|
|
"text": "null"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"ruleId": "@rushstack/no-new-null",
|
|
"ruleIndex": 0
|
|
},
|
|
{
|
|
"level": "warning",
|
|
"message": {
|
|
"text": "Usage of \"null\" is deprecated except when describing legacy APIs; use \"undefined\" instead"
|
|
},
|
|
"locations": [
|
|
{
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "src/webparts/ctFormsPortal/components/registry/documentRegistry.ts",
|
|
"index": 0
|
|
},
|
|
"region": {
|
|
"startLine": 47,
|
|
"startColumn": 41,
|
|
"endLine": 47,
|
|
"endColumn": 45,
|
|
"snippet": {
|
|
"text": "null"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"ruleId": "@rushstack/no-new-null",
|
|
"ruleIndex": 0
|
|
},
|
|
{
|
|
"level": "warning",
|
|
"message": {
|
|
"text": "[\"status\"] is better written in dot notation."
|
|
},
|
|
"locations": [
|
|
{
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "src/webparts/ctFormsPortal/components/config/ctDocumentConfig.ts",
|
|
"index": 1
|
|
},
|
|
"region": {
|
|
"startLine": 57,
|
|
"startColumn": 35,
|
|
"endLine": 57,
|
|
"endColumn": 43,
|
|
"snippet": {
|
|
"text": "'status'"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"ruleId": "dot-notation",
|
|
"ruleIndex": 1
|
|
},
|
|
{
|
|
"level": "warning",
|
|
"message": {
|
|
"text": "[\"Id\"] is better written in dot notation."
|
|
},
|
|
"locations": [
|
|
{
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "src/webparts/ctFormsPortal/components/config/ctDocumentConfig.ts",
|
|
"index": 1
|
|
},
|
|
"region": {
|
|
"startLine": 60,
|
|
"startColumn": 24,
|
|
"endLine": 60,
|
|
"endColumn": 28,
|
|
"snippet": {
|
|
"text": "'Id'"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"ruleId": "dot-notation",
|
|
"ruleIndex": 1
|
|
},
|
|
{
|
|
"level": "warning",
|
|
"message": {
|
|
"text": "[\"number\"] is better written in dot notation."
|
|
},
|
|
"locations": [
|
|
{
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "src/webparts/ctFormsPortal/components/config/ctDocumentConfig.ts",
|
|
"index": 1
|
|
},
|
|
"region": {
|
|
"startLine": 61,
|
|
"startColumn": 27,
|
|
"endLine": 61,
|
|
"endColumn": 35,
|
|
"snippet": {
|
|
"text": "'number'"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"ruleId": "dot-notation",
|
|
"ruleIndex": 1
|
|
},
|
|
{
|
|
"level": "warning",
|
|
"message": {
|
|
"text": "[\"Title\"] is better written in dot notation."
|
|
},
|
|
"locations": [
|
|
{
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "src/webparts/ctFormsPortal/components/config/ctDocumentConfig.ts",
|
|
"index": 1
|
|
},
|
|
"region": {
|
|
"startLine": 61,
|
|
"startColumn": 44,
|
|
"endLine": 61,
|
|
"endColumn": 51,
|
|
"snippet": {
|
|
"text": "'Title'"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"ruleId": "dot-notation",
|
|
"ruleIndex": 1
|
|
},
|
|
{
|
|
"level": "warning",
|
|
"message": {
|
|
"text": "[\"project\"] is better written in dot notation."
|
|
},
|
|
"locations": [
|
|
{
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "src/webparts/ctFormsPortal/components/config/ctDocumentConfig.ts",
|
|
"index": 1
|
|
},
|
|
"region": {
|
|
"startLine": 62,
|
|
"startColumn": 30,
|
|
"endLine": 62,
|
|
"endColumn": 39,
|
|
"snippet": {
|
|
"text": "'project'"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"ruleId": "dot-notation",
|
|
"ruleIndex": 1
|
|
},
|
|
{
|
|
"level": "warning",
|
|
"message": {
|
|
"text": "[\"Created\"] is better written in dot notation."
|
|
},
|
|
"locations": [
|
|
{
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "src/webparts/ctFormsPortal/components/config/ctDocumentConfig.ts",
|
|
"index": 1
|
|
},
|
|
"region": {
|
|
"startLine": 66,
|
|
"startColumn": 26,
|
|
"endLine": 66,
|
|
"endColumn": 35,
|
|
"snippet": {
|
|
"text": "'Created'"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"ruleId": "dot-notation",
|
|
"ruleIndex": 1
|
|
},
|
|
{
|
|
"level": "warning",
|
|
"message": {
|
|
"text": "[\"Created\"] is better written in dot notation."
|
|
},
|
|
"locations": [
|
|
{
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "src/webparts/ctFormsPortal/components/config/ctDocumentConfig.ts",
|
|
"index": 1
|
|
},
|
|
"region": {
|
|
"startLine": 66,
|
|
"startColumn": 50,
|
|
"endLine": 66,
|
|
"endColumn": 59,
|
|
"snippet": {
|
|
"text": "'Created'"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"ruleId": "dot-notation",
|
|
"ruleIndex": 1
|
|
},
|
|
{
|
|
"level": "warning",
|
|
"message": {
|
|
"text": "[\"status\"] is better written in dot notation."
|
|
},
|
|
"locations": [
|
|
{
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "src/webparts/ctFormsPortal/components/config/oidDocumentConfig.ts",
|
|
"index": 2
|
|
},
|
|
"region": {
|
|
"startLine": 63,
|
|
"startColumn": 35,
|
|
"endLine": 63,
|
|
"endColumn": 43,
|
|
"snippet": {
|
|
"text": "'status'"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"ruleId": "dot-notation",
|
|
"ruleIndex": 1
|
|
},
|
|
{
|
|
"level": "warning",
|
|
"message": {
|
|
"text": "[\"Id\"] is better written in dot notation."
|
|
},
|
|
"locations": [
|
|
{
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "src/webparts/ctFormsPortal/components/config/oidDocumentConfig.ts",
|
|
"index": 2
|
|
},
|
|
"region": {
|
|
"startLine": 66,
|
|
"startColumn": 24,
|
|
"endLine": 66,
|
|
"endColumn": 28,
|
|
"snippet": {
|
|
"text": "'Id'"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"ruleId": "dot-notation",
|
|
"ruleIndex": 1
|
|
},
|
|
{
|
|
"level": "warning",
|
|
"message": {
|
|
"text": "[\"number\"] is better written in dot notation."
|
|
},
|
|
"locations": [
|
|
{
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "src/webparts/ctFormsPortal/components/config/oidDocumentConfig.ts",
|
|
"index": 2
|
|
},
|
|
"region": {
|
|
"startLine": 67,
|
|
"startColumn": 27,
|
|
"endLine": 67,
|
|
"endColumn": 35,
|
|
"snippet": {
|
|
"text": "'number'"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"ruleId": "dot-notation",
|
|
"ruleIndex": 1
|
|
},
|
|
{
|
|
"level": "warning",
|
|
"message": {
|
|
"text": "[\"Title\"] is better written in dot notation."
|
|
},
|
|
"locations": [
|
|
{
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "src/webparts/ctFormsPortal/components/config/oidDocumentConfig.ts",
|
|
"index": 2
|
|
},
|
|
"region": {
|
|
"startLine": 67,
|
|
"startColumn": 44,
|
|
"endLine": 67,
|
|
"endColumn": 51,
|
|
"snippet": {
|
|
"text": "'Title'"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"ruleId": "dot-notation",
|
|
"ruleIndex": 1
|
|
},
|
|
{
|
|
"level": "warning",
|
|
"message": {
|
|
"text": "[\"project\"] is better written in dot notation."
|
|
},
|
|
"locations": [
|
|
{
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "src/webparts/ctFormsPortal/components/config/oidDocumentConfig.ts",
|
|
"index": 2
|
|
},
|
|
"region": {
|
|
"startLine": 68,
|
|
"startColumn": 30,
|
|
"endLine": 68,
|
|
"endColumn": 39,
|
|
"snippet": {
|
|
"text": "'project'"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"ruleId": "dot-notation",
|
|
"ruleIndex": 1
|
|
},
|
|
{
|
|
"level": "warning",
|
|
"message": {
|
|
"text": "[\"Created\"] is better written in dot notation."
|
|
},
|
|
"locations": [
|
|
{
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "src/webparts/ctFormsPortal/components/config/oidDocumentConfig.ts",
|
|
"index": 2
|
|
},
|
|
"region": {
|
|
"startLine": 72,
|
|
"startColumn": 26,
|
|
"endLine": 72,
|
|
"endColumn": 35,
|
|
"snippet": {
|
|
"text": "'Created'"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"ruleId": "dot-notation",
|
|
"ruleIndex": 1
|
|
},
|
|
{
|
|
"level": "warning",
|
|
"message": {
|
|
"text": "[\"Created\"] is better written in dot notation."
|
|
},
|
|
"locations": [
|
|
{
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "src/webparts/ctFormsPortal/components/config/oidDocumentConfig.ts",
|
|
"index": 2
|
|
},
|
|
"region": {
|
|
"startLine": 72,
|
|
"startColumn": 50,
|
|
"endLine": 72,
|
|
"endColumn": 59,
|
|
"snippet": {
|
|
"text": "'Created'"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"ruleId": "dot-notation",
|
|
"ruleIndex": 1
|
|
},
|
|
{
|
|
"level": "warning",
|
|
"message": {
|
|
"text": "[\"status\"] is better written in dot notation."
|
|
},
|
|
"locations": [
|
|
{
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "src/webparts/ctFormsPortal/components/config/kpsDocumentConfig.ts",
|
|
"index": 3
|
|
},
|
|
"region": {
|
|
"startLine": 61,
|
|
"startColumn": 35,
|
|
"endLine": 61,
|
|
"endColumn": 43,
|
|
"snippet": {
|
|
"text": "'status'"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"ruleId": "dot-notation",
|
|
"ruleIndex": 1
|
|
},
|
|
{
|
|
"level": "warning",
|
|
"message": {
|
|
"text": "[\"Id\"] is better written in dot notation."
|
|
},
|
|
"locations": [
|
|
{
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "src/webparts/ctFormsPortal/components/config/kpsDocumentConfig.ts",
|
|
"index": 3
|
|
},
|
|
"region": {
|
|
"startLine": 64,
|
|
"startColumn": 24,
|
|
"endLine": 64,
|
|
"endColumn": 28,
|
|
"snippet": {
|
|
"text": "'Id'"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"ruleId": "dot-notation",
|
|
"ruleIndex": 1
|
|
},
|
|
{
|
|
"level": "warning",
|
|
"message": {
|
|
"text": "[\"number\"] is better written in dot notation."
|
|
},
|
|
"locations": [
|
|
{
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "src/webparts/ctFormsPortal/components/config/kpsDocumentConfig.ts",
|
|
"index": 3
|
|
},
|
|
"region": {
|
|
"startLine": 65,
|
|
"startColumn": 27,
|
|
"endLine": 65,
|
|
"endColumn": 35,
|
|
"snippet": {
|
|
"text": "'number'"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"ruleId": "dot-notation",
|
|
"ruleIndex": 1
|
|
},
|
|
{
|
|
"level": "warning",
|
|
"message": {
|
|
"text": "[\"Title\"] is better written in dot notation."
|
|
},
|
|
"locations": [
|
|
{
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "src/webparts/ctFormsPortal/components/config/kpsDocumentConfig.ts",
|
|
"index": 3
|
|
},
|
|
"region": {
|
|
"startLine": 65,
|
|
"startColumn": 44,
|
|
"endLine": 65,
|
|
"endColumn": 51,
|
|
"snippet": {
|
|
"text": "'Title'"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"ruleId": "dot-notation",
|
|
"ruleIndex": 1
|
|
},
|
|
{
|
|
"level": "warning",
|
|
"message": {
|
|
"text": "[\"project\"] is better written in dot notation."
|
|
},
|
|
"locations": [
|
|
{
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "src/webparts/ctFormsPortal/components/config/kpsDocumentConfig.ts",
|
|
"index": 3
|
|
},
|
|
"region": {
|
|
"startLine": 66,
|
|
"startColumn": 30,
|
|
"endLine": 66,
|
|
"endColumn": 39,
|
|
"snippet": {
|
|
"text": "'project'"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"ruleId": "dot-notation",
|
|
"ruleIndex": 1
|
|
},
|
|
{
|
|
"level": "warning",
|
|
"message": {
|
|
"text": "[\"Created\"] is better written in dot notation."
|
|
},
|
|
"locations": [
|
|
{
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "src/webparts/ctFormsPortal/components/config/kpsDocumentConfig.ts",
|
|
"index": 3
|
|
},
|
|
"region": {
|
|
"startLine": 70,
|
|
"startColumn": 26,
|
|
"endLine": 70,
|
|
"endColumn": 35,
|
|
"snippet": {
|
|
"text": "'Created'"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"ruleId": "dot-notation",
|
|
"ruleIndex": 1
|
|
},
|
|
{
|
|
"level": "warning",
|
|
"message": {
|
|
"text": "[\"Created\"] is better written in dot notation."
|
|
},
|
|
"locations": [
|
|
{
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "src/webparts/ctFormsPortal/components/config/kpsDocumentConfig.ts",
|
|
"index": 3
|
|
},
|
|
"region": {
|
|
"startLine": 70,
|
|
"startColumn": 50,
|
|
"endLine": 70,
|
|
"endColumn": 59,
|
|
"snippet": {
|
|
"text": "'Created'"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"ruleId": "dot-notation",
|
|
"ruleIndex": 1
|
|
},
|
|
{
|
|
"level": "warning",
|
|
"message": {
|
|
"text": "[\"userId\"] is better written in dot notation."
|
|
},
|
|
"locations": [
|
|
{
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "src/webparts/ctFormsPortal/components/registry/documentsService.ts",
|
|
"index": 4
|
|
},
|
|
"region": {
|
|
"startLine": 13,
|
|
"startColumn": 91,
|
|
"endLine": 13,
|
|
"endColumn": 99,
|
|
"snippet": {
|
|
"text": "'userId'"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"ruleId": "dot-notation",
|
|
"ruleIndex": 1
|
|
},
|
|
{
|
|
"level": "warning",
|
|
"message": {
|
|
"text": "Usage of \"null\" is deprecated except when describing legacy APIs; use \"undefined\" instead"
|
|
},
|
|
"locations": [
|
|
{
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "src/webparts/ctFormsPortal/components/registry/useDocumentDashboard.ts",
|
|
"index": 5
|
|
},
|
|
"region": {
|
|
"startLine": 11,
|
|
"startColumn": 19,
|
|
"endLine": 11,
|
|
"endColumn": 23,
|
|
"snippet": {
|
|
"text": "null"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"ruleId": "@rushstack/no-new-null",
|
|
"ruleIndex": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |