-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue #104: Code refactoring: Modify the project source code to e…
…nable new analysis easily
- Loading branch information
1 parent
33c4603
commit 86c2fc1
Showing
104 changed files
with
926 additions
and
1,718 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
48 changes: 48 additions & 0 deletions
48
src/app/custom/analyses/anomalies/anomaly/anomaly.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
import { CustomizationModule } from '../../../customization.module'; | ||
import { UnassignedBugsComponent } from '../unassigned-bugs/unassigned-bugs.component'; | ||
import { NoLinkToBugFixingCommitComponent } from '../no-link-to-bug-fixing-commit/no-link-to-bug-fixing-commit.component'; | ||
import { IgnoredBugsComponent } from '../ignored-bugs/ignored-bugs.component'; | ||
import { MissingPriorityComponent } from '../missing-priority/missing-priority.component'; | ||
import { NotReferencedDuplicatesComponent } from '../not-referenced-duplicates/not-referenced-duplicates.component'; | ||
import { MissingEnvironmentInformationComponent } from '../missing-environment-information/missing-environment-information.component'; | ||
import { ReassignmentBugAssigneeComponent } from '../reassignment-bug-assignee/reassignment-bug-assignee.component'; | ||
import { NoCommentBugsComponent } from '../no-comment-bugs/no-comment-bugs.component'; | ||
import { NoAssigneeResolverBugComponent } from '../no-assignee-resolver-bug/no-assignee-resolver-bug.component'; | ||
import { ClosedReopenPingPongComponent } from '../closed-reopen-ping-pong/closed-reopen-ping-pong.component'; | ||
import { SameResolverCloserComponent } from '../same-resolver-closer/same-resolver-closer.component'; | ||
@Component({ | ||
selector: 'app-anomaly', | ||
templateUrl: './anomaly.component.html', | ||
styleUrls: ['./anomaly.component.css'] | ||
}) | ||
export class AnomalyComponent implements OnInit { | ||
anomaly: string; | ||
selectedIdx: number; | ||
|
||
anomalies: { component: any, text: string }[] = [ | ||
{ component: UnassignedBugsComponent, text: 'Unassigned Bugs' }, | ||
{ component: NoLinkToBugFixingCommitComponent, text: 'No Link to Bug-Fixing Commit' }, | ||
{ component: IgnoredBugsComponent, text: 'Ignored Bugs' }, | ||
{ component: MissingPriorityComponent, text: 'Missing Priority' }, | ||
{ component: NotReferencedDuplicatesComponent, text: 'Not referenced duplicates' }, | ||
{ component: MissingEnvironmentInformationComponent, text: 'Missing Environment Information' }, | ||
{ component: ReassignmentBugAssigneeComponent, text: 'Reassignment of Bug Assignee' }, | ||
{ component: NoCommentBugsComponent, text: 'No comment bugs' }, | ||
{ component: NoAssigneeResolverBugComponent, text: 'Non-Assignee Resolver of Bug' }, | ||
{ component: ClosedReopenPingPongComponent, text: 'Closed-Reopen Ping Pong' }, | ||
{ component: SameResolverCloserComponent, text: 'Same Resolver and Closer' }, | ||
|
||
]; | ||
|
||
constructor() { | ||
this.selectedIdx = -1; | ||
} | ||
changeAnomaly(event) { | ||
this.selectedIdx = this.anomalies.findIndex(x => x.text == event.target.value); | ||
} | ||
ngOnInit(): void { | ||
this.anomaly = ''; | ||
} | ||
|
||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
Oops, something went wrong.