Skip to content
This repository was archived by the owner on May 4, 2023. It is now read-only.

Commit 9cf5e20

Browse files
fix: lint issus
1 parent c61d3a0 commit 9cf5e20

File tree

4 files changed

+77
-81
lines changed

4 files changed

+77
-81
lines changed

src/renderer/types/gamificationTypes.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
// Badge type
22
export enum BadgeType {
3-
Gold = "Gold",
4-
Silver = "Silver",
5-
Bronze = "Bronze",
6-
None = "None",
3+
Gold = 'Gold',
4+
Silver = 'Silver',
5+
Bronze = 'Bronze',
6+
None = 'None',
77
}
88

99
// Badge category
1010
export enum BadgeCategory {
11-
Recipes = "Recipes",
12-
Comments = "Comments",
13-
Usage = "Usage",
11+
Recipes = 'Recipes',
12+
Comments = 'Comments',
13+
Usage = 'Usage',
1414
}
1515

1616
export type BadgeEnumeration =

src/renderer/types/groupTypes.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
import { Project } from "./projectTypes";
1+
import { Project } from './projectTypes';
22
import {
33
AccountType,
44
BitbucketInstallation,
55
User,
66
UserLevel,
7-
} from "./userTypes";
7+
} from './userTypes';
88

9-
export type GroupType = "Bitbucket" | "Gitlab" | "Github" | "Regular";
9+
export type GroupType = 'Bitbucket' | 'Gitlab' | 'Github' | 'Regular';
1010

11-
export type GroupState = "Deleting" | "Active" | "Disabled" | "Created";
11+
export type GroupState = 'Deleting' | 'Active' | 'Disabled' | 'Created';
1212

13-
export type GroupMembershipLevel = "Admin" | "Read";
13+
export type GroupMembershipLevel = 'Admin' | 'Read';
1414

1515
export type StripeSubscriptionType = {
1616
purchasedSeats?: number;
@@ -35,7 +35,7 @@ export interface GroupInvitation {
3535
expired?: boolean;
3636
}
3737

38-
export type GroupPreferenceKey = "SyncUsers";
38+
export type GroupPreferenceKey = 'SyncUsers';
3939

4040
export interface GroupPreference {
4141
key?: GroupPreferenceKey;

src/renderer/types/projectTypes.ts

Lines changed: 64 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
1-
import { LanguageEnumeration } from "./assistantTypes";
2-
import { Group } from "./groupTypes";
3-
import { User, UserLevel } from "./userTypes";
1+
import { LanguageEnumeration } from './assistantTypes';
2+
import { Group } from './groupTypes';
3+
import { User, UserLevel } from './userTypes';
44

55
export type ProjectState =
6-
| "Active"
7-
| "Deleting_In_Progress"
8-
| "Deleting"
9-
| "Disabled";
6+
| 'Active'
7+
| 'Deleting_In_Progress'
8+
| 'Deleting'
9+
| 'Disabled';
1010

1111
export type AnalysisResultStatus =
12-
| "Unknown"
13-
| "Done"
14-
| "Error"
15-
| "Same_Revision"
16-
| "Ignore"
17-
| "InProgress"
18-
| "Scheduled"
19-
| "Started";
12+
| 'Unknown'
13+
| 'Done'
14+
| 'Error'
15+
| 'Same_Revision'
16+
| 'Ignore'
17+
| 'InProgress'
18+
| 'Scheduled'
19+
| 'Started';
2020

2121
export type ViolationCategory =
22-
| "Unknown"
23-
| "Error_Prone"
24-
| "Code_Style"
25-
| "Best_Practice"
26-
| "Safety"
27-
| "Security"
28-
| "Design"
29-
| "Deployment"
30-
| "Performance";
31-
("Documentation");
22+
| 'Unknown'
23+
| 'Error_Prone'
24+
| 'Code_Style'
25+
| 'Best_Practice'
26+
| 'Safety'
27+
| 'Security'
28+
| 'Design'
29+
| 'Deployment'
30+
| 'Performance';
31+
// ('Documentation');
3232

3333
export interface DuplicateOccurrence {
3434
filename?: string;
@@ -69,21 +69,21 @@ export interface Violation {
6969
}
7070

7171
export type VersionConstraintEnumeration =
72-
| "Unknown"
73-
| "LessOrEqual"
74-
| "LessThan"
75-
| "GreaterOrEqual"
76-
| "GreaterThan"
77-
| "Equal";
72+
| 'Unknown'
73+
| 'LessOrEqual'
74+
| 'LessThan'
75+
| 'GreaterOrEqual'
76+
| 'GreaterThan'
77+
| 'Equal';
7878

7979
export type ProjectStatus =
80-
| "Unavailable"
81-
| "Unknown"
82-
| "Critical"
83-
| "Warning"
84-
| "Neutral"
85-
| "Good"
86-
| "Excellent";
80+
| 'Unavailable'
81+
| 'Unknown'
82+
| 'Critical'
83+
| 'Warning'
84+
| 'Neutral'
85+
| 'Good'
86+
| 'Excellent';
8787

8888
export interface Dependency {
8989
name?: string;
@@ -171,23 +171,23 @@ export interface AnalysisResultSummary {
171171
}
172172

173173
export type AnalysisErrorType =
174-
| "Unknown"
175-
| "TooManyLines"
176-
| "ShellError"
177-
| "ScalaError"
178-
| "SecurityError"
179-
| "PythonError"
180-
| "PhpError"
181-
| "LizardError"
182-
| "JavascriptError"
183-
| "JavaError"
184-
| "GoError"
185-
| "DependsError"
186-
| "DuplicationFindError"
187-
| "CloneError"
188-
| "CppError"
189-
| "BanditError"
190-
| "AuthenticationError";
174+
| 'Unknown'
175+
| 'TooManyLines'
176+
| 'ShellError'
177+
| 'ScalaError'
178+
| 'SecurityError'
179+
| 'PythonError'
180+
| 'PhpError'
181+
| 'LizardError'
182+
| 'JavascriptError'
183+
| 'JavaError'
184+
| 'GoError'
185+
| 'DependsError'
186+
| 'DuplicationFindError'
187+
| 'CloneError'
188+
| 'CppError'
189+
| 'BanditError'
190+
| 'AuthenticationError';
191191

192192
export interface AnalysisResultStatType {
193193
language?: string;
@@ -240,13 +240,13 @@ export interface Analysis {
240240
fileContent?: string[];
241241
}
242242

243-
export type ScmKind = "Subversion" | "Gitlab" | "Github" | "Git" | "Bitbucket";
243+
export type ScmKind = 'Subversion' | 'Gitlab' | 'Github' | 'Git' | 'Bitbucket';
244244

245245
export type CodeReviewAnnotationKind =
246-
| "LongFunction"
247-
| "ComplexFunction"
248-
| "Duplicate"
249-
| "Violation";
246+
| 'LongFunction'
247+
| 'ComplexFunction'
248+
| 'Duplicate'
249+
| 'Violation';
250250

251251
export interface CodeReviewAnnotation {
252252
codeReviewIdentifier?: number;
@@ -384,7 +384,7 @@ export interface BitbucketPullRequest {
384384
diff?: string;
385385
}
386386

387-
export type AnalysisTrend = "Unknown" | "Worst" | "Same" | "Better";
387+
export type AnalysisTrend = 'Unknown' | 'Worst' | 'Same' | 'Better';
388388

389389
export interface ProjectTrend {
390390
period?: number;
@@ -419,9 +419,9 @@ export interface ViolationIgnore {
419419
tool?: string;
420420
}
421421

422-
export type ProjectNotificationEventType = "AnalysisCompleted";
423-
export type ProjectNotificationType = "Email";
424-
export type ProjectNotificationStatus = "Confirmed" | "Pending";
422+
export type ProjectNotificationEventType = 'AnalysisCompleted';
423+
export type ProjectNotificationType = 'Email';
424+
export type ProjectNotificationStatus = 'Confirmed' | 'Pending';
425425

426426
export interface ProjectNotification {
427427
eventType?: ProjectNotificationEventType;

src/renderer/types/userTypes.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
import { BadgesType } from 'renderer/lib/badgeConstants';
21
import { AccountTypeEnum, UserPreferenceKey } from 'renderer/lib/constants';
32
import {
43
AssistantCookbook,
54
AssistantRecipesCountPerLanguage,
65
AssistantRecipeWithStats,
76
} from './assistantTypes';
8-
import { AssistantUserBadges } from './gamificationTypes';
97
import { Project } from './projectTypes';
108

119
export type UserLevel =
@@ -119,7 +117,6 @@ export interface User {
119117
numberOfAuthoredRecipes?: number;
120118
info?: UserInfo;
121119
statistics?: AssistantUserStatistics;
122-
badges?: AssistantUserBadges & BadgesType;
123120
hasSubscription?: boolean;
124121
allowedNumberOfProjects?: number;
125122
remainingAnalysisQuota?: number;
@@ -159,7 +156,6 @@ export interface PublicUser {
159156
city?: string;
160157
country?: string;
161158
statistics?: AssistantUserStatistics;
162-
badges?: AssistantUserBadges & BadgesType;
163159
hasSubscription?: boolean;
164160
allowedNumberOfProjects?: number;
165161
remainingAnalysisQuota?: number;

0 commit comments

Comments
 (0)