Skip to content
This repository was archived by the owner on Jul 17, 2025. It is now read-only.

Commit 87c7410

Browse files
authored
Fix one sonarcloud bug & update check-header trigger rule (#434)
* fix 1 sonarcloud bug * update check-header trigger rule
1 parent 412f19d commit 87c7410

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/check-header.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#
2-
# Copyright 2019-2021 VMware, Inc.
2+
# Copyright 2019-2024 VMware, Inc.
33
# SPDX-License-Identifier: Apache-2.0
44
#
55

66
name: check-header
77

88
on:
99
push:
10-
branches: ["**", '!master']
10+
branches: ["**"]
1111
pull_request:
1212
branches: ['**']
1313

.github/workflows/sonarcloud_scan_app.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#
2-
# Copyright 2019-2021 VMware, Inc.
2+
# Copyright 2019-2024 VMware, Inc.
33
# SPDX-License-Identifier: Apache-2.0
44
#
55

66
name: sonarcloud_scan_app
77

88
on:
99
push:
10-
branches: ["**", '!master']
10+
branches: ["**"]
1111
pull_request:
1212
branches: ['**']
1313

annotation-app/src/app/component/projects/project-analyze/project-analyze.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1753,7 +1753,7 @@ export class ProjectAnalyzeComponent implements OnInit {
17531753
let flag1;
17541754
let flag2;
17551755
if (this.projectType == 'ner' || this.projectType == 'qa' || this.projectType == 'log') {
1756-
flag1 = this.sr.userInputs && this.sr.userInputs.length > 0 && this.sr.userInputs[0].problemCategory.length >= 0;
1756+
flag1 = this.sr.userInputs && this.sr.userInputs.length > 0 && this.sr.userInputs[0].problemCategory.length;
17571757
} else {
17581758
flag1 = this.sr.userInputs && this.sr.userInputs.length > 0;
17591759
}

0 commit comments

Comments
 (0)