Skip to content

Commit dcf100c

Browse files
committed
fix linting
1 parent 9c8bead commit dcf100c

File tree

4 files changed

+65
-21
lines changed

4 files changed

+65
-21
lines changed

src/app/component/activity-description/activity-description.component.ts

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,14 @@ export class ActivityDescriptionComponent implements OnInit {
111111
);
112112
this.currentActivity.uuid = this.defineStringValues(data['uuid'], '');
113113
this.currentActivity.risk = this.defineStringValues(data['risk'], '');
114-
this.currentActivity.tags = this.defineStringArrayValues(data['tags'], []);
115-
this.currentActivity.measure = this.defineStringValues(data['measure'], '');
114+
this.currentActivity.tags = this.defineStringArrayValues(
115+
data['tags'],
116+
[]
117+
);
118+
this.currentActivity.measure = this.defineStringValues(
119+
data['measure'],
120+
''
121+
);
116122
try {
117123
data['meta'];
118124
this.currentActivity.implementatonGuide = this.defineStringValues(
@@ -175,9 +181,15 @@ export class ActivityDescriptionComponent implements OnInit {
175181
data['implementation']
176182
);
177183

178-
this.currentActivity.evidence = this.defineStringValues(data['evidence'], '');
184+
this.currentActivity.evidence = this.defineStringValues(
185+
data['evidence'],
186+
''
187+
);
179188

180-
this.currentActivity.comments = this.defineStringValues(data['comments'], '');
189+
this.currentActivity.comments = this.defineStringValues(
190+
data['comments'],
191+
''
192+
);
181193

182194
this.currentActivity.assessment = this.defineStringValues(
183195
data['assessment'],

src/app/component/circular-heatmap/circular-heatmap.component.ts

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,14 @@ export class CircularHeatmapComponent implements OnInit {
156156
break;
157157
}
158158
}
159-
if (this.ALL_CARD_DATA[index]['Activity'][activityIndex]['ifActivityDone']) {
160-
this.ALL_CARD_DATA[index]['Activity'][activityIndex]['ifActivityDone'] = false;
159+
if (
160+
this.ALL_CARD_DATA[index]['Activity'][activityIndex]['ifActivityDone']
161+
) {
162+
this.ALL_CARD_DATA[index]['Activity'][activityIndex]['ifActivityDone'] =
163+
false;
161164
} else {
162-
this.ALL_CARD_DATA[index]['Activity'][activityIndex]['ifActivityDone'] = true;
165+
this.ALL_CARD_DATA[index]['Activity'][activityIndex]['ifActivityDone'] =
166+
true;
163167
}
164168
// console.log(this.data[i]["Activity"][activityIndex]["done"])
165169
for (var i = 0; i < this.ALL_CARD_DATA[index]['Activity'].length; i++) {
@@ -176,12 +180,16 @@ export class CircularHeatmapComponent implements OnInit {
176180
for (var j = 0; j < allSubDimensionInThisDimension.length; j++) {
177181
if (allSubDimensionInThisDimension[j] == this.cardHeader) {
178182
var activityName =
179-
this.ALL_CARD_DATA[index]['Activity'][activityIndex]['activityName'];
183+
this.ALL_CARD_DATA[index]['Activity'][activityIndex][
184+
'activityName'
185+
];
180186
// console.log(activityName);
181187
this.YamlObject[allDimensionNames[i]][
182188
allSubDimensionInThisDimension[j]
183189
][activityName]['isImplemented'] =
184-
this.ALL_CARD_DATA[index]['Activity'][activityIndex]['ifActivityDone'];
190+
this.ALL_CARD_DATA[index]['Activity'][activityIndex][
191+
'ifActivityDone'
192+
];
185193
break;
186194
}
187195
}

src/app/component/dependency-graph/dependency-graph.component.ts

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,12 @@ export class DependencyGraphComponent implements OnInit {
4343
this.yaml.getJson().subscribe(data => {
4444
this.graphData = { nodes: [], links: [] };
4545
this.YamlObject = data[this.dimension][this.subDimension];
46-
this.populateGraphWithActivitiesCurrentActivityDependsOn(this.activityName);
47-
this.populateGraphWithActivitiesThatDependsOnCurrentActivity(this.activityName);
46+
this.populateGraphWithActivitiesCurrentActivityDependsOn(
47+
this.activityName
48+
);
49+
this.populateGraphWithActivitiesThatDependsOnCurrentActivity(
50+
this.activityName
51+
);
4852
//console.log({...this.graphData['nodes']})
4953

5054
console.log({ ...this.graphData });
@@ -55,9 +59,16 @@ export class DependencyGraphComponent implements OnInit {
5559
populateGraphWithActivitiesCurrentActivityDependsOn(activity: string): void {
5660
this.checkIfNodeHasBeenGenerated(activity);
5761
try {
58-
var activitysThatCurrenActivityIsDependentOn = this.YamlObject[activity]['dependsOn'];
59-
for (var j = 0; j < activitysThatCurrenActivityIsDependentOn.length; j++) {
60-
this.checkIfNodeHasBeenGenerated(activitysThatCurrenActivityIsDependentOn[j]);
62+
var activitysThatCurrenActivityIsDependentOn =
63+
this.YamlObject[activity]['dependsOn'];
64+
for (
65+
var j = 0;
66+
j < activitysThatCurrenActivityIsDependentOn.length;
67+
j++
68+
) {
69+
this.checkIfNodeHasBeenGenerated(
70+
activitysThatCurrenActivityIsDependentOn[j]
71+
);
6172
this.graphData['links'].push({
6273
source: activitysThatCurrenActivityIsDependentOn[j],
6374
target: activity,
@@ -77,7 +88,10 @@ export class DependencyGraphComponent implements OnInit {
7788
try {
7889
if (this.YamlObject[allActivitys[i]]['dependsOn'].includes(activity)) {
7990
this.checkIfNodeHasBeenGenerated(allActivitys[i]);
80-
this.graphData['links'].push({ source: activity, target: allActivitys[i] });
91+
this.graphData['links'].push({
92+
source: activity,
93+
target: allActivitys[i],
94+
});
8195
}
8296
} catch {
8397
continue;

src/app/component/mapping/mapping.component.ts

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,13 @@ export class MappingComponent implements OnInit {
213213
//console.log(this.temp)
214214
this.allMappingDataSortedByActivity.push(this.temporaryMappingElement);
215215
if (this.YamlObject[dim][subDim][activity]['isImplemented']) {
216-
this.performedMappingDataSortedByActivity.push(this.temporaryMappingElement);
216+
this.performedMappingDataSortedByActivity.push(
217+
this.temporaryMappingElement
218+
);
217219
} else {
218-
this.plannedMappingDataSortedByActivity.push(this.temporaryMappingElement);
220+
this.plannedMappingDataSortedByActivity.push(
221+
this.temporaryMappingElement
222+
);
219223
}
220224
}
221225

@@ -289,7 +293,8 @@ export class MappingComponent implements OnInit {
289293
var CurrentDescription: string =
290294
this.YamlObject[dim][subDim][activity]['description'];
291295
var CurrentRisk: string = this.YamlObject[dim][subDim][activity]['risk'];
292-
var CurrentMeasure: string = this.YamlObject[dim][subDim][activity]['measure'];
296+
var CurrentMeasure: string =
297+
this.YamlObject[dim][subDim][activity]['measure'];
293298
var CurrentKnowledge: string =
294299
this.knowledgeLabels[
295300
this.YamlObject[dim][subDim][activity]['difficultyOfImplementation'][
@@ -298,7 +303,9 @@ export class MappingComponent implements OnInit {
298303
];
299304
var CurrentTime: string =
300305
this.generalLabels[
301-
this.YamlObject[dim][subDim][activity]['difficultyOfImplementation']['time']
306+
this.YamlObject[dim][subDim][activity]['difficultyOfImplementation'][
307+
'time'
308+
]
302309
];
303310
var CurrentResources: string =
304311
this.generalLabels[
@@ -400,7 +407,8 @@ export class MappingComponent implements OnInit {
400407
var CurrentDescription: string =
401408
this.YamlObject[dim][subDim][activity]['description'];
402409
var CurrentRisk: string = this.YamlObject[dim][subDim][activity]['risk'];
403-
var CurrentMeasure: string = this.YamlObject[dim][subDim][activity]['measure'];
410+
var CurrentMeasure: string =
411+
this.YamlObject[dim][subDim][activity]['measure'];
404412
var CurrentKnowledge: string =
405413
this.knowledgeLabels[
406414
this.YamlObject[dim][subDim][activity]['difficultyOfImplementation'][
@@ -409,7 +417,9 @@ export class MappingComponent implements OnInit {
409417
];
410418
var CurrentTime: string =
411419
this.generalLabels[
412-
this.YamlObject[dim][subDim][activity]['difficultyOfImplementation']['time']
420+
this.YamlObject[dim][subDim][activity]['difficultyOfImplementation'][
421+
'time'
422+
]
413423
];
414424
var CurrentResources: string =
415425
this.generalLabels[

0 commit comments

Comments
 (0)