[MIGRATION] - Fixed lint errors for empty function

This commit is contained in:
VitoAlbano
2024-08-05 23:06:04 +01:00
parent cf175c67b8
commit 1c339a926b
867 changed files with 2147 additions and 2153 deletions

View File

@@ -83,7 +83,7 @@ export class ContentUserInfoComponent implements OnDestroy {
private destroy$ = new Subject();
constructor(private peopleContentService: PeopleContentService) {}
constructor(private peopleContentService: PeopleContentService) { /* empty */ }
ngOnDestroy(): void {
this.destroy$.next(true);

View File

@@ -86,7 +86,7 @@ export class ProcessUserInfoComponent implements OnDestroy {
private destroy$ = new Subject();
constructor(private peopleProcessService: PeopleProcessService, private peopleContentService: PeopleContentService) {}
constructor(private peopleProcessService: PeopleProcessService, private peopleContentService: PeopleContentService) { /* empty */ }
ngOnDestroy(): void {
this.destroy$.next(true);

View File

@@ -60,7 +60,7 @@ export class UserInfoComponent implements OnInit {
private identityUserService: IdentityUserService,
private basicAlfrescoAuthService: BasicAlfrescoAuthService,
private authService: AuthenticationService
) {}
) { /* empty */ }
ngOnInit() {
this.getUserInfo();

View File

@@ -49,7 +49,7 @@ export class CloudFiltersDemoComponent implements OnInit {
private router: Router,
private route: ActivatedRoute,
private cloudProcessFiltersService: CloudProcessFiltersService
) {}
) { /* empty */ }
ngOnInit() {
this.currentTaskFilter$ = this.cloudLayoutService.taskFilter$;

View File

@@ -59,7 +59,7 @@ export class CloudLayoutComponent implements OnInit {
appName: string;
filterName: string;
constructor(private router: Router, private route: ActivatedRoute, private cloudLayoutService: CloudLayoutService) {}
constructor(private router: Router, private route: ActivatedRoute, private cloudLayoutService: CloudLayoutService) { /* empty */ }
ngOnInit() {
let root: string = '';

View File

@@ -75,7 +75,7 @@ export class TaskDetailsCloudDemoComponent {
try {
errorMessage = JSON.parse(error).message || JSON.parse(error).entry?.message;
errorMessage = JSON.parse(errorMessage).message;
} catch {}
} catch { /* empty */ }
this.notificationService.showError(errorMessage || error);
}
}

View File

@@ -137,7 +137,7 @@ export class TasksCloudDemoComponent implements OnInit, OnDestroy {
}
onFilterChange(filter: any) {
this.editedFilter = Object.assign({}, filter);
this.editedFilter = Object.assign({ /* empty */ }, filter);
this.sortArray = [new TaskListCloudSortingModel({ orderBy: this.editedFilter.sort, direction: this.editedFilter.order })];
}

View File

@@ -82,7 +82,7 @@ export class FileViewComponent implements OnInit {
private contentServices: ContentService,
private preview: PreviewService,
private notificationService: NotificationService
) {}
) { /* empty */ }
ngOnInit() {
this.route.params.subscribe((params) => {

View File

@@ -271,7 +271,7 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy {
private contentMetadataService: ContentMetadataService,
private dialogAspectListService: DialogAspectListService,
private nodeService: NodesApiService
) {}
) { /* empty */ }
showFile(event) {
const entry = event.value.entry;
@@ -545,7 +545,7 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy {
}
navigateToFilter(activeFilters: FilterSearch[]) {
const objectFromMap = {};
const objectFromMap = { /* empty */ };
activeFilters.forEach((filter: FilterSearch) => {
let paramValue = null;
if (filter.value?.from && filter.value.to) {

View File

@@ -24,4 +24,4 @@ import { Component, ViewEncapsulation } from '@angular/core';
styleUrls: ['./home.component.scss'],
encapsulation: ViewEncapsulation.None
})
export class HomeComponent {}
export class HomeComponent { /* empty */ }

View File

@@ -25,4 +25,4 @@ import { MatButtonModule } from '@angular/material/button';
templateUrl: './logout.component.html',
styleUrls: ['./logout.component.scss']
})
export class LogoutComponent {}
export class LogoutComponent { /* empty */ }

View File

@@ -74,7 +74,7 @@ export class ProcessListDemoComponent implements OnInit, OnDestroy {
private onDestroy$ = new Subject<boolean>();
constructor(private route: ActivatedRoute, private formBuilder: UntypedFormBuilder) {}
constructor(private route: ActivatedRoute, private formBuilder: UntypedFormBuilder) { /* empty */ }
ngOnInit() {
this.resetQueryParameters();

View File

@@ -27,7 +27,7 @@ import { AppsListComponent } from '@alfresco/adf-process-services';
templateUrl: './apps-view.component.html'
})
export class AppsViewComponent {
constructor(private router: Router) {}
constructor(private router: Router) { /* empty */ }
onAppClicked(app: AppDefinitionRepresentation) {
this.router.navigate(['/activiti/apps', app.id || 0, 'tasks']);

View File

@@ -250,7 +250,7 @@ export class ProcessServiceComponent implements AfterViewInit, OnDestroy, OnInit
}
applyTaskFilter(filter: UserTaskFilterRepresentation) {
this.taskFilter = Object.assign({}, filter);
this.taskFilter = Object.assign({ /* empty */ }, filter);
if (filter && this.taskList) {
this.taskList.hasCustomDataSource = false;

View File

@@ -30,7 +30,7 @@ import { SearchControlComponent } from '@alfresco/adf-content-services';
styleUrls: ['./search-bar.component.scss']
})
export class SearchBarComponent {
constructor(public router: Router, private preview: PreviewService) {}
constructor(public router: Router, private preview: PreviewService) { /* empty */ }
/**
* Called when the user submits the search, e.g. hits enter or clicks submit

View File

@@ -184,7 +184,7 @@ export class AppSearchFilterChipsComponent implements OnInit, OnDestroy {
}
private updateSetting(field) {
field.settings = field.settings ?? {};
field.settings = field.settings ?? { /* empty */ };
field.settings.allowUpdateOnChange = false;
field.settings.hideDefaultAction = true;
}

View File

@@ -83,7 +83,7 @@ export class HostSettingsComponent implements OnInit {
private alfrescoApiService: AlfrescoApiService,
private appConfig: AppConfigService,
private authenticationService: AuthenticationService
) {}
) { /* empty */ }
ngOnInit() {
if (this.providers.length === 1) {

View File

@@ -27,7 +27,7 @@ import { HostSettingsComponent } from './host-settings.component';
templateUrl: './settings.component.html'
})
export class SettingsComponent {
constructor(private router: Router) {}
constructor(private router: Router) { /* empty */ }
onCancel() {
this.router.navigate(['/login']);

View File

@@ -94,7 +94,7 @@ describe('FolderCreateDirective', () => {
});
it('should emit success event with node if the folder creation was successful', async () => {
const testNode = {};
const testNode = { /* empty */ };
element.triggerEventHandler('click', event);
dialogRefMock.componentInstance.success.next(testNode);

View File

@@ -56,7 +56,7 @@ export class FolderCreateDirective {
this.openDialog();
}
constructor(public dialogRef: MatDialog, public content: ContentService) {}
constructor(public dialogRef: MatDialog, public content: ContentService) { /* empty */ }
private get dialogConfig() {
const { parentNodeId, title: createTitle, nodeType } = this;

View File

@@ -66,7 +66,7 @@ export class InMemoryFormService extends FormService {
};
delete flattenForm.formDefinition;
const formValues: FormValues = {};
const formValues: FormValues = { /* empty */ };
(data || []).forEach((variable) => {
formValues[variable.name] = variable.value;
});

View File

@@ -24,7 +24,7 @@ export class PreviewService {
public content: Blob = null;
public name: string = null;
constructor(private router: Router) {}
constructor(private router: Router) { /* empty */ }
showResource(resourceId, versionId?): void {
if (versionId) {

View File

@@ -31,10 +31,10 @@ export class CoreAutomationService {
private userPreferencesService: UserPreferencesService,
private storageService: StorageService,
private auth: AuthenticationService
) {}
) { /* empty */ }
setup() {
const adfProxy = window['adf'] || {};
const adfProxy = window['adf'] || { /* empty */ };
adfProxy.getConfigField = (field: string): any => this.appConfigService.get(field);

View File

@@ -339,8 +339,8 @@ export class DemoForm {
javascriptEvents: [],
className: '',
style: '',
customFieldTemplates: {},
metadata: {},
customFieldTemplates: { /* empty */ },
metadata: { /* empty */ },
variables: [
{
id: 'bfca9766-7bc1-45cc-8ecf-cdad551e36e2',
@@ -360,7 +360,7 @@ export class DemoForm {
type: 'integer'
}
],
customFieldsValueInfo: {},
customFieldsValueInfo: { /* empty */ },
gridsterForm: false,
globalDateFormat: 'D-M-YYYY'
}
@@ -1459,8 +1459,8 @@ export class DemoForm {
javascriptEvents: [],
className: '',
style: '',
customFieldTemplates: {},
metadata: {},
customFieldTemplates: { /* empty */ },
metadata: { /* empty */ },
variables: [
{
id: 'bfca9766-7bc1-45cc-8ecf-cdad551e36e2',
@@ -1743,8 +1743,8 @@ export class DemoForm {
javascriptEvents: [],
className: '',
style: '',
customFieldTemplates: {},
metadata: {},
customFieldTemplates: { /* empty */ },
metadata: { /* empty */ },
variables: [
{
id: 'bfca9766-7bc1-45cc-8ecf-cdad551e36e2',
@@ -1764,7 +1764,7 @@ export class DemoForm {
type: 'integer'
}
],
customFieldsValueInfo: {},
customFieldsValueInfo: { /* empty */ },
gridsterForm: false
}
}
@@ -1825,7 +1825,7 @@ export class DemoForm {
link: false,
displayableCMProperties: []
},
visibilityCondition: {}
visibilityCondition: { /* empty */ }
}
]
}