From b7e8abc529ad03f58821cc1971b62973c556a432 Mon Sep 17 00:00:00 2001 From: Tomasz Gnyp <49343696+tomgny@users.noreply.github.com> Date: Mon, 12 Sep 2022 19:07:27 +0200 Subject: [PATCH] [AAE-10461] Fix license header checker (#7823) * [AAE-10461] Fix license header checker * trigger travis * fix license headers for cli lib * rebase --- .eslintrc.json | 6 +- .../cloud/cloud-layout.component.ts | 1 + .../app/services/app-notifications.service.ts | 1 + demo-shell/src/typings.d.ts | 17 +++++ lib/cli/scripts/check-plugin-env.ts | 17 +++++ lib/cli/scripts/init-acs-env.ts | 17 +++++ lib/cli/scripts/init-aps-env.ts | 17 +++++ lib/cli/scripts/kube-utils.ts | 17 +++++ lib/cli/scripts/plugins/check-env.ts | 17 +++++ .../plugins/governance-check-plugin.ts | 17 +++++ lib/cli/scripts/plugins/governance-health.ts | 17 +++++ lib/cli/scripts/plugins/plugin-config.ts | 17 +++++ lib/cli/scripts/plugins/plugin-model.ts | 17 +++++ .../process-automation-check-plugin.ts | 17 +++++ .../plugins/process-automation-health.ts | 17 +++++ .../plugins/process-service-check-plugin.ts | 17 +++++ .../plugins/process-services-health.ts | 17 +++++ lib/cli/scripts/scan-env.ts | 17 +++++ .../lib/new-version-uploader/models/index.ts | 1 + .../models/new-version-uploader.model.ts | 1 + .../search-filter-container.component.spec.ts | 1 + .../src/lib/testing/dom-sanitizer-mock.ts | 17 +++++ .../src/lib/testing/mat-icon-registry-mock.ts | 17 +++++ lib/core/api/clients/index.ts | 17 +++++ lib/core/api/index.ts | 17 +++++ lib/core/api/public-api.ts | 17 +++++ .../api-factories/legacy-api-client.module.ts | 17 +++++ .../tooltip-card/tooltip-card.component.ts | 1 + .../tooltip-card/tooltip-card.directive.ts | 1 + .../display-rich-text.widget.spec.ts | 17 +++++ .../hyperlink/hyperlink.widget.spec.ts | 1 + .../info-drawer.component.stories.ts | 30 ++++---- .../lib/info-drawer/mock/info-drawer.mock.ts | 17 +++++ lib/core/src/lib/mock/data-column.mock.ts | 17 +++++ lib/core/src/lib/mock/dom-sanitizer-mock.ts | 17 +++++ .../src/lib/mock/language.service.mock.ts | 1 + .../src/lib/mock/mat-icon-registry-mock.ts | 17 +++++ .../src/lib/models/identity-role.model.ts | 1 + lib/core/src/lib/pipes/moment-date.pipe.ts | 1 + .../src/lib/pipes/moment-datetime.pipe.ts | 1 + .../lib/rich-text-editor/editorjs-config.ts | 2 +- .../mock/sorting-picker.mock.ts | 30 ++++---- .../sorting-picker.component.stories.ts | 30 ++++---- .../error-content.component.stories.ts | 1 + .../services/rendering-queue.services.ts | 4 +- .../directives/cancel-process.directive.ts | 1 + .../process-list-cloud.component.spec.ts | 1 + .../process-list-datatable-adapter.ts | 17 +++++ .../models/process-cloud-preferences.ts | 17 +++++ .../process-list-cloud.service.spec.ts | 1 + .../services/process-list-cloud.service.ts | 1 + .../services/variable-mapper.sevice.spec.ts | 4 +- .../lib/services/variable-mapper.sevice.ts | 4 +- .../claim-task-cloud.directive.spec.ts | 1 + .../directives/claim-task-cloud.directive.ts | 1 + .../complete-task.directive.spec.ts | 1 + .../directives/complete-task.directive.ts | 1 + .../unclaim-task-cloud.directive.spec.ts | 1 + .../unclaim-task-cloud.directive.ts | 1 + .../components/start-task-cloud.component.ts | 1 + .../models/start-task-cloud-request.model.ts | 1 + .../models/tasks-cloud-preferences.ts | 17 +++++ .../pages/search/number-range-filter.page.ts | 1 + .../protractor/core/actions/drop.actions.ts | 1 + ...dit-process-filter-cloud-component.page.ts | 1 + .../actions/models.service.ts | 1 + package-lock.json | 9 +++ package.json | 1 + .../adfEnterpriseLicenseBannerRule.js | 46 ------------- .../adfEnterpriseLicenseBannerRule.ts | 69 ------------------- tools/tslint-rules/adfLicenseBannerRule.js | 46 ------------- tools/tslint-rules/adfLicenseBannerRule.ts | 69 ------------------- tools/tslint-rules/index.js | 2 - tools/tslint-rules/index.ts | 1 - 74 files changed, 589 insertions(+), 286 deletions(-) delete mode 100644 tools/tslint-rules/adfEnterpriseLicenseBannerRule.js delete mode 100644 tools/tslint-rules/adfEnterpriseLicenseBannerRule.ts delete mode 100644 tools/tslint-rules/adfLicenseBannerRule.js delete mode 100644 tools/tslint-rules/adfLicenseBannerRule.ts diff --git a/.eslintrc.json b/.eslintrc.json index e316d7238f..069e5461e9 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -30,7 +30,8 @@ "plugins": [ "eslint-plugin-unicorn", "eslint-plugin-rxjs", - "ban" + "ban", + "license-header" ], "rules": { "ban/ban": [ @@ -130,7 +131,8 @@ "allowShortCircuit": true, "allowTernary": true } - ] + ], + "license-header/header": ["error", "./license-community.txt"] } }, { diff --git a/demo-shell/src/app/components/cloud/cloud-layout.component.ts b/demo-shell/src/app/components/cloud/cloud-layout.component.ts index f3513c1629..fd9269202e 100644 --- a/demo-shell/src/app/components/cloud/cloud-layout.component.ts +++ b/demo-shell/src/app/components/cloud/cloud-layout.component.ts @@ -14,6 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { Component, OnInit, ViewEncapsulation } from '@angular/core'; import { Router, ActivatedRoute } from '@angular/router'; import { CloudLayoutService } from './services/cloud-layout.service'; diff --git a/demo-shell/src/app/services/app-notifications.service.ts b/demo-shell/src/app/services/app-notifications.service.ts index a485c73c29..56910b5718 100644 --- a/demo-shell/src/app/services/app-notifications.service.ts +++ b/demo-shell/src/app/services/app-notifications.service.ts @@ -14,6 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { AuthenticationService, AppConfigService, diff --git a/demo-shell/src/typings.d.ts b/demo-shell/src/typings.d.ts index af562f3749..951fe407dc 100644 --- a/demo-shell/src/typings.d.ts +++ b/demo-shell/src/typings.d.ts @@ -1,3 +1,20 @@ +/*! + * @license + * Copyright 2019 Alfresco Software, Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* SystemJS module definition */ declare const module: NodeModule; interface NodeModule { diff --git a/lib/cli/scripts/check-plugin-env.ts b/lib/cli/scripts/check-plugin-env.ts index c91e3ac1c9..6032a8fbd1 100644 --- a/lib/cli/scripts/check-plugin-env.ts +++ b/lib/cli/scripts/check-plugin-env.ts @@ -1,3 +1,20 @@ +/*! + * @license + * Copyright 2019 Alfresco Software, Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { PluginTarget } from './plugins/plugin-model'; import { CheckEnv } from './plugins/check-env'; import program = require('commander'); diff --git a/lib/cli/scripts/init-acs-env.ts b/lib/cli/scripts/init-acs-env.ts index c367c1e46e..5eaa362ba1 100755 --- a/lib/cli/scripts/init-acs-env.ts +++ b/lib/cli/scripts/init-acs-env.ts @@ -1,3 +1,20 @@ +/*! + * @license + * Copyright 2019 Alfresco Software, Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + const alfrescoApi = require('@alfresco/js-api'); const program = require('commander'); const fs = require ('fs'); diff --git a/lib/cli/scripts/init-aps-env.ts b/lib/cli/scripts/init-aps-env.ts index 65e90b949f..67418a557a 100755 --- a/lib/cli/scripts/init-aps-env.ts +++ b/lib/cli/scripts/init-aps-env.ts @@ -1,3 +1,20 @@ +/*! + * @license + * Copyright 2019 Alfresco Software, Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + const alfrescoApi = require('@alfresco/js-api'); const program = require('commander'); const fs = require ('fs'); diff --git a/lib/cli/scripts/kube-utils.ts b/lib/cli/scripts/kube-utils.ts index 4027453f65..df970e75f5 100644 --- a/lib/cli/scripts/kube-utils.ts +++ b/lib/cli/scripts/kube-utils.ts @@ -1,3 +1,20 @@ +/*! + * @license + * Copyright 2019 Alfresco Software, Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { logger } from './logger'; import { exec } from './exec'; diff --git a/lib/cli/scripts/plugins/check-env.ts b/lib/cli/scripts/plugins/check-env.ts index 4709d2725d..0b57d5befb 100644 --- a/lib/cli/scripts/plugins/check-env.ts +++ b/lib/cli/scripts/plugins/check-env.ts @@ -1,3 +1,20 @@ +/*! + * @license + * Copyright 2019 Alfresco Software, Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { logger } from './../logger'; import alfrescoApi = require('@alfresco/js-api'); diff --git a/lib/cli/scripts/plugins/governance-check-plugin.ts b/lib/cli/scripts/plugins/governance-check-plugin.ts index ec542e58c3..7414dc8c47 100644 --- a/lib/cli/scripts/plugins/governance-check-plugin.ts +++ b/lib/cli/scripts/plugins/governance-check-plugin.ts @@ -1,3 +1,20 @@ +/*! + * @license + * Copyright 2019 Alfresco Software, Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { PluginInterface } from './plugin-model'; import { GovernanceHealth } from './governance-health'; diff --git a/lib/cli/scripts/plugins/governance-health.ts b/lib/cli/scripts/plugins/governance-health.ts index fee9effcc3..59b94248c8 100644 --- a/lib/cli/scripts/plugins/governance-health.ts +++ b/lib/cli/scripts/plugins/governance-health.ts @@ -1,3 +1,20 @@ +/*! + * @license + * Copyright 2019 Alfresco Software, Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* eslint-disable @typescript-eslint/naming-convention */ import { logger } from '../logger'; diff --git a/lib/cli/scripts/plugins/plugin-config.ts b/lib/cli/scripts/plugins/plugin-config.ts index fb147c26e8..1c04d20b8a 100644 --- a/lib/cli/scripts/plugins/plugin-config.ts +++ b/lib/cli/scripts/plugins/plugin-config.ts @@ -1,3 +1,20 @@ +/*! + * @license + * Copyright 2019 Alfresco Software, Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { PluginInterface } from './plugin-model'; import { logger } from '../logger'; diff --git a/lib/cli/scripts/plugins/plugin-model.ts b/lib/cli/scripts/plugins/plugin-model.ts index cac5a689d3..9228c7f4ec 100644 --- a/lib/cli/scripts/plugins/plugin-model.ts +++ b/lib/cli/scripts/plugins/plugin-model.ts @@ -1,3 +1,20 @@ +/*! + * @license + * Copyright 2019 Alfresco Software, Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // eslint-disable-next-line no-shadow export enum PluginTarget { processService = 'processService', diff --git a/lib/cli/scripts/plugins/process-automation-check-plugin.ts b/lib/cli/scripts/plugins/process-automation-check-plugin.ts index 835d636b12..410ed8a1fd 100644 --- a/lib/cli/scripts/plugins/process-automation-check-plugin.ts +++ b/lib/cli/scripts/plugins/process-automation-check-plugin.ts @@ -1,3 +1,20 @@ +/*! + * @license + * Copyright 2019 Alfresco Software, Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* eslint-disable @typescript-eslint/naming-convention */ import { PluginInterface } from './plugin-model'; diff --git a/lib/cli/scripts/plugins/process-automation-health.ts b/lib/cli/scripts/plugins/process-automation-health.ts index 77681639f0..a17ca41de5 100644 --- a/lib/cli/scripts/plugins/process-automation-health.ts +++ b/lib/cli/scripts/plugins/process-automation-health.ts @@ -1,3 +1,20 @@ +/*! + * @license + * Copyright 2019 Alfresco Software, Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { PluginInterface } from './plugin-model'; import { logger } from '../logger'; import { PluginConfiguration } from './plugin-config'; diff --git a/lib/cli/scripts/plugins/process-service-check-plugin.ts b/lib/cli/scripts/plugins/process-service-check-plugin.ts index 4132f8be3b..a1eda8e4ae 100644 --- a/lib/cli/scripts/plugins/process-service-check-plugin.ts +++ b/lib/cli/scripts/plugins/process-service-check-plugin.ts @@ -1,3 +1,20 @@ +/*! + * @license + * Copyright 2019 Alfresco Software, Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* eslint-disable @typescript-eslint/naming-convention */ import { PluginInterface } from './plugin-model'; diff --git a/lib/cli/scripts/plugins/process-services-health.ts b/lib/cli/scripts/plugins/process-services-health.ts index 8d379fe2ef..9bccf4a696 100644 --- a/lib/cli/scripts/plugins/process-services-health.ts +++ b/lib/cli/scripts/plugins/process-services-health.ts @@ -1,3 +1,20 @@ +/*! + * @license + * Copyright 2019 Alfresco Software, Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { PluginInterface } from './plugin-model'; import { logger } from '../logger'; import { PluginConfiguration } from './plugin-config'; diff --git a/lib/cli/scripts/scan-env.ts b/lib/cli/scripts/scan-env.ts index 8cbd6a5367..7e6a62dc10 100644 --- a/lib/cli/scripts/scan-env.ts +++ b/lib/cli/scripts/scan-env.ts @@ -1,3 +1,20 @@ +/*! + * @license + * Copyright 2019 Alfresco Software, Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { AlfrescoApi, PeopleApi, NodesApi, GroupsApi, SitesApi, SearchApi, AlfrescoApiConfig } from '@alfresco/js-api'; import program from 'commander'; import { logger } from './logger'; diff --git a/lib/content-services/src/lib/new-version-uploader/models/index.ts b/lib/content-services/src/lib/new-version-uploader/models/index.ts index cbf55165cc..8aa0155119 100644 --- a/lib/content-services/src/lib/new-version-uploader/models/index.ts +++ b/lib/content-services/src/lib/new-version-uploader/models/index.ts @@ -14,4 +14,5 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + export * from './new-version-uploader.model'; diff --git a/lib/content-services/src/lib/new-version-uploader/models/new-version-uploader.model.ts b/lib/content-services/src/lib/new-version-uploader/models/new-version-uploader.model.ts index bbea817f34..85b80613bc 100644 --- a/lib/content-services/src/lib/new-version-uploader/models/new-version-uploader.model.ts +++ b/lib/content-services/src/lib/new-version-uploader/models/new-version-uploader.model.ts @@ -14,6 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { MinimalNodeEntryEntity, Version, NodeChildAssociation, Node } from '@alfresco/js-api'; import { NodeEntityEvent } from '../../document-list'; diff --git a/lib/content-services/src/lib/search/components/search-filter-container/search-filter-container.component.spec.ts b/lib/content-services/src/lib/search/components/search-filter-container/search-filter-container.component.spec.ts index 585ec192e1..5ca9ade52a 100644 --- a/lib/content-services/src/lib/search/components/search-filter-container/search-filter-container.component.spec.ts +++ b/lib/content-services/src/lib/search/components/search-filter-container/search-filter-container.component.spec.ts @@ -14,6 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { Subject } from 'rxjs'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { TranslateModule } from '@ngx-translate/core'; diff --git a/lib/content-services/src/lib/testing/dom-sanitizer-mock.ts b/lib/content-services/src/lib/testing/dom-sanitizer-mock.ts index 382b5322f0..b07b146329 100644 --- a/lib/content-services/src/lib/testing/dom-sanitizer-mock.ts +++ b/lib/content-services/src/lib/testing/dom-sanitizer-mock.ts @@ -1,3 +1,20 @@ +/*! + * @license + * Copyright 2019 Alfresco Software, Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { DomSanitizer } from '@angular/platform-browser'; export const domSanitizerMock = { diff --git a/lib/content-services/src/lib/testing/mat-icon-registry-mock.ts b/lib/content-services/src/lib/testing/mat-icon-registry-mock.ts index edd316b98b..e6020a6307 100644 --- a/lib/content-services/src/lib/testing/mat-icon-registry-mock.ts +++ b/lib/content-services/src/lib/testing/mat-icon-registry-mock.ts @@ -1,3 +1,20 @@ +/*! + * @license + * Copyright 2019 Alfresco Software, Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { MatIconRegistry } from '@angular/material/icon'; export const matIconRegistryMock = { diff --git a/lib/core/api/clients/index.ts b/lib/core/api/clients/index.ts index 4b62caf45b..8907f6d663 100644 --- a/lib/core/api/clients/index.ts +++ b/lib/core/api/clients/index.ts @@ -1,3 +1,20 @@ +/*! + * @license + * Copyright 2019 Alfresco Software, Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + export * from './activiti/activiti-client.types'; export * from './alfresco-js-clients.module'; export * from './discovery/discovery-client.types'; diff --git a/lib/core/api/index.ts b/lib/core/api/index.ts index a2bcef2351..c8d536d2e1 100644 --- a/lib/core/api/index.ts +++ b/lib/core/api/index.ts @@ -1,2 +1,19 @@ +/*! + * @license + * Copyright 2019 Alfresco Software, Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + export * from './public-api'; diff --git a/lib/core/api/public-api.ts b/lib/core/api/public-api.ts index 18f09ffbaa..c905317914 100644 --- a/lib/core/api/public-api.ts +++ b/lib/core/api/public-api.ts @@ -1,3 +1,20 @@ +/*! + * @license + * Copyright 2019 Alfresco Software, Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + export * from './api-client.factory'; export * from './api-clients.service'; export * from './clients'; diff --git a/lib/core/src/lib/api-factories/legacy-api-client.module.ts b/lib/core/src/lib/api-factories/legacy-api-client.module.ts index 976055d27e..d7db9feacf 100644 --- a/lib/core/src/lib/api-factories/legacy-api-client.module.ts +++ b/lib/core/src/lib/api-factories/legacy-api-client.module.ts @@ -1,3 +1,20 @@ +/*! + * @license + * Copyright 2019 Alfresco Software, Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { NgModule } from '@angular/core'; import { API_CLIENT_FACTORY_TOKEN } from '@alfresco/adf-core/api'; import { LegacyClientFactory } from './legacy-api-client.factory'; diff --git a/lib/core/src/lib/directives/tooltip-card/tooltip-card.component.ts b/lib/core/src/lib/directives/tooltip-card/tooltip-card.component.ts index 96a07ba18d..a99b6dbcc7 100644 --- a/lib/core/src/lib/directives/tooltip-card/tooltip-card.component.ts +++ b/lib/core/src/lib/directives/tooltip-card/tooltip-card.component.ts @@ -14,6 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { Component, Input, SecurityContext } from '@angular/core'; import { animate, style, transition, trigger } from '@angular/animations'; import { DomSanitizer } from '@angular/platform-browser'; diff --git a/lib/core/src/lib/directives/tooltip-card/tooltip-card.directive.ts b/lib/core/src/lib/directives/tooltip-card/tooltip-card.directive.ts index 4e9ead4f5a..a5aad0e6ed 100644 --- a/lib/core/src/lib/directives/tooltip-card/tooltip-card.directive.ts +++ b/lib/core/src/lib/directives/tooltip-card/tooltip-card.directive.ts @@ -14,6 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { ComponentRef, Directive, ElementRef, HostListener, Input, OnDestroy, OnInit } from '@angular/core'; import { Overlay, OverlayPositionBuilder, OverlayRef } from '@angular/cdk/overlay'; import { ComponentPortal } from '@angular/cdk/portal'; diff --git a/lib/core/src/lib/form/components/widgets/display-rich-text/display-rich-text.widget.spec.ts b/lib/core/src/lib/form/components/widgets/display-rich-text/display-rich-text.widget.spec.ts index 40de5aac7e..c2eb7d63c1 100644 --- a/lib/core/src/lib/form/components/widgets/display-rich-text/display-rich-text.widget.spec.ts +++ b/lib/core/src/lib/form/components/widgets/display-rich-text/display-rich-text.widget.spec.ts @@ -1,3 +1,20 @@ +/*! + * @license + * Copyright 2019 Alfresco Software, Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { DebugElement } from '@angular/core'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; diff --git a/lib/core/src/lib/form/components/widgets/hyperlink/hyperlink.widget.spec.ts b/lib/core/src/lib/form/components/widgets/hyperlink/hyperlink.widget.spec.ts index 657feec06f..eaa761428b 100644 --- a/lib/core/src/lib/form/components/widgets/hyperlink/hyperlink.widget.spec.ts +++ b/lib/core/src/lib/form/components/widgets/hyperlink/hyperlink.widget.spec.ts @@ -14,6 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { ComponentFixture, TestBed } from '@angular/core/testing'; import { FormFieldTypes } from '../core/form-field-types'; import { FormFieldModel } from '../core/form-field.model'; diff --git a/lib/core/src/lib/info-drawer/info-drawer.component.stories.ts b/lib/core/src/lib/info-drawer/info-drawer.component.stories.ts index f96ed17e3e..2fa674862f 100644 --- a/lib/core/src/lib/info-drawer/info-drawer.component.stories.ts +++ b/lib/core/src/lib/info-drawer/info-drawer.component.stories.ts @@ -1,19 +1,19 @@ /*! -* @license -* Copyright 2019 Alfresco Software, Ltd. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ + * @license + * Copyright 2019 Alfresco Software, Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { Meta, moduleMetadata, Story } from '@storybook/angular'; import { CoreStoryModule } from '../testing/core.story.module'; diff --git a/lib/core/src/lib/info-drawer/mock/info-drawer.mock.ts b/lib/core/src/lib/info-drawer/mock/info-drawer.mock.ts index d3cc9db8b0..d71406ecdc 100644 --- a/lib/core/src/lib/info-drawer/mock/info-drawer.mock.ts +++ b/lib/core/src/lib/info-drawer/mock/info-drawer.mock.ts @@ -1,3 +1,20 @@ +/*! + * @license + * Copyright 2019 Alfresco Software, Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + export const mockTabText = `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam urna odio, sagittis vel nulla vel, condimentum egestas dolor. Interdum et malesuada fames ac ante ipsum primis in faucibus. Mauris eu hendrerit lectus. Aliquam et ex imperdiet, sodales tellus finibus, malesuada eros. Vestibulum aliquet eros sed diam euismod tincidunt. diff --git a/lib/core/src/lib/mock/data-column.mock.ts b/lib/core/src/lib/mock/data-column.mock.ts index e730bd58f1..64c0d264e9 100644 --- a/lib/core/src/lib/mock/data-column.mock.ts +++ b/lib/core/src/lib/mock/data-column.mock.ts @@ -1,3 +1,20 @@ +/*! + * @license + * Copyright 2019 Alfresco Software, Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { DataColumn } from '../datatable/data/data-column.model'; export const getDataColumnMock = (column: Partial> = {}): DataColumn => ({ diff --git a/lib/core/src/lib/mock/dom-sanitizer-mock.ts b/lib/core/src/lib/mock/dom-sanitizer-mock.ts index 382b5322f0..b07b146329 100644 --- a/lib/core/src/lib/mock/dom-sanitizer-mock.ts +++ b/lib/core/src/lib/mock/dom-sanitizer-mock.ts @@ -1,3 +1,20 @@ +/*! + * @license + * Copyright 2019 Alfresco Software, Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { DomSanitizer } from '@angular/platform-browser'; export const domSanitizerMock = { diff --git a/lib/core/src/lib/mock/language.service.mock.ts b/lib/core/src/lib/mock/language.service.mock.ts index 3cb71becab..84736ae723 100644 --- a/lib/core/src/lib/mock/language.service.mock.ts +++ b/lib/core/src/lib/mock/language.service.mock.ts @@ -14,6 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { LanguageServiceInterface } from '../services/language.service.interface'; import { Injectable } from '@angular/core'; import { BehaviorSubject } from 'rxjs'; diff --git a/lib/core/src/lib/mock/mat-icon-registry-mock.ts b/lib/core/src/lib/mock/mat-icon-registry-mock.ts index edd316b98b..e6020a6307 100644 --- a/lib/core/src/lib/mock/mat-icon-registry-mock.ts +++ b/lib/core/src/lib/mock/mat-icon-registry-mock.ts @@ -1,3 +1,20 @@ +/*! + * @license + * Copyright 2019 Alfresco Software, Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { MatIconRegistry } from '@angular/material/icon'; export const matIconRegistryMock = { diff --git a/lib/core/src/lib/models/identity-role.model.ts b/lib/core/src/lib/models/identity-role.model.ts index 667d5fc8f2..b83f7feb98 100644 --- a/lib/core/src/lib/models/identity-role.model.ts +++ b/lib/core/src/lib/models/identity-role.model.ts @@ -14,6 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + export class IdentityRoleModel { id: string; name: string; diff --git a/lib/core/src/lib/pipes/moment-date.pipe.ts b/lib/core/src/lib/pipes/moment-date.pipe.ts index 637c33c5c1..c3591eaf85 100644 --- a/lib/core/src/lib/pipes/moment-date.pipe.ts +++ b/lib/core/src/lib/pipes/moment-date.pipe.ts @@ -14,6 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { Pipe, PipeTransform } from '@angular/core'; import moment, { Moment } from 'moment'; diff --git a/lib/core/src/lib/pipes/moment-datetime.pipe.ts b/lib/core/src/lib/pipes/moment-datetime.pipe.ts index 906b7ff147..292dd77e83 100644 --- a/lib/core/src/lib/pipes/moment-datetime.pipe.ts +++ b/lib/core/src/lib/pipes/moment-datetime.pipe.ts @@ -14,6 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { Pipe, PipeTransform } from '@angular/core'; import moment, { Moment } from 'moment'; diff --git a/lib/core/src/lib/rich-text-editor/editorjs-config.ts b/lib/core/src/lib/rich-text-editor/editorjs-config.ts index fdfa32af52..a00537b308 100644 --- a/lib/core/src/lib/rich-text-editor/editorjs-config.ts +++ b/lib/core/src/lib/rich-text-editor/editorjs-config.ts @@ -13,7 +13,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ /** Plugin import */ import CodeTool from '@editorjs/code'; diff --git a/lib/core/src/lib/sorting-picker/mock/sorting-picker.mock.ts b/lib/core/src/lib/sorting-picker/mock/sorting-picker.mock.ts index 97d24a94e3..7c6d21c3b4 100644 --- a/lib/core/src/lib/sorting-picker/mock/sorting-picker.mock.ts +++ b/lib/core/src/lib/sorting-picker/mock/sorting-picker.mock.ts @@ -1,19 +1,19 @@ /*! -* @license -* Copyright 2022 Alfresco Software, Ltd. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ + * @license + * Copyright 2019 Alfresco Software, Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ export const initialSortingTypes: Array<{key: string; label: string}> = [ { key: 'sortByFirstName', label: 'First Name' }, diff --git a/lib/core/src/lib/sorting-picker/sorting-picker.component.stories.ts b/lib/core/src/lib/sorting-picker/sorting-picker.component.stories.ts index ec7da29e87..f59927d5d1 100644 --- a/lib/core/src/lib/sorting-picker/sorting-picker.component.stories.ts +++ b/lib/core/src/lib/sorting-picker/sorting-picker.component.stories.ts @@ -1,19 +1,19 @@ /*! -* @license -* Copyright 2022 Alfresco Software, Ltd. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ + * @license + * Copyright 2019 Alfresco Software, Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { Meta, moduleMetadata, Story } from '@storybook/angular'; import { CoreStoryModule } from '../testing/core.story.module'; diff --git a/lib/core/src/lib/templates/error-content/error-content.component.stories.ts b/lib/core/src/lib/templates/error-content/error-content.component.stories.ts index 2a93dd017c..ee8ddef44e 100644 --- a/lib/core/src/lib/templates/error-content/error-content.component.stories.ts +++ b/lib/core/src/lib/templates/error-content/error-content.component.stories.ts @@ -14,6 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { Meta, moduleMetadata, Story } from '@storybook/angular'; import { ErrorContentComponent } from './error-content.component'; import { CoreStoryModule } from '../../testing/core.story.module'; diff --git a/lib/core/src/lib/viewer/services/rendering-queue.services.ts b/lib/core/src/lib/viewer/services/rendering-queue.services.ts index 7fe9645408..418e5ed91e 100644 --- a/lib/core/src/lib/viewer/services/rendering-queue.services.ts +++ b/lib/core/src/lib/viewer/services/rendering-queue.services.ts @@ -1,4 +1,6 @@ -/* Copyright 2012 Mozilla Foundation +/*! + * @license + * Copyright 2019 Alfresco Software, Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/lib/process-services-cloud/src/lib/process/directives/cancel-process.directive.ts b/lib/process-services-cloud/src/lib/process/directives/cancel-process.directive.ts index ad978570eb..4d2cba5dbd 100644 --- a/lib/process-services-cloud/src/lib/process/directives/cancel-process.directive.ts +++ b/lib/process-services-cloud/src/lib/process/directives/cancel-process.directive.ts @@ -14,6 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { Directive, HostListener, Output, EventEmitter, OnInit, OnDestroy, ElementRef } from '@angular/core'; import { ProcessCloudService } from '../services/process-cloud.service'; import { takeUntil } from 'rxjs/operators'; diff --git a/lib/process-services-cloud/src/lib/process/process-list/components/process-list-cloud.component.spec.ts b/lib/process-services-cloud/src/lib/process/process-list/components/process-list-cloud.component.spec.ts index b918c49eeb..af9dc81a53 100644 --- a/lib/process-services-cloud/src/lib/process/process-list/components/process-list-cloud.component.spec.ts +++ b/lib/process-services-cloud/src/lib/process/process-list/components/process-list-cloud.component.spec.ts @@ -14,6 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { Component, SimpleChange, ViewChild } from '@angular/core'; import { ComponentFixture, fakeAsync, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; diff --git a/lib/process-services-cloud/src/lib/process/process-list/datatable/process-list-datatable-adapter.ts b/lib/process-services-cloud/src/lib/process/process-list/datatable/process-list-datatable-adapter.ts index bdbe30c883..4bfe5bb927 100644 --- a/lib/process-services-cloud/src/lib/process/process-list/datatable/process-list-datatable-adapter.ts +++ b/lib/process-services-cloud/src/lib/process/process-list/datatable/process-list-datatable-adapter.ts @@ -1,3 +1,20 @@ +/*! + * @license + * Copyright 2019 Alfresco Software, Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { DataColumn, DataRow, ObjectDataTableAdapter } from '@alfresco/adf-core'; import { ProcessListDataColumnCustomData, PROCESS_LIST_CUSTOM_VARIABLE_COLUMN } from '../../../models/data-column-custom-data'; import { ProcessInstanceCloudListViewModel } from '../models/perocess-instance-cloud-view.model'; diff --git a/lib/process-services-cloud/src/lib/process/process-list/models/process-cloud-preferences.ts b/lib/process-services-cloud/src/lib/process/process-list/models/process-cloud-preferences.ts index e712415415..fcab1e819a 100644 --- a/lib/process-services-cloud/src/lib/process/process-list/models/process-cloud-preferences.ts +++ b/lib/process-services-cloud/src/lib/process/process-list/models/process-cloud-preferences.ts @@ -1,3 +1,20 @@ +/*! + * @license + * Copyright 2019 Alfresco Software, Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // eslint-disable-next-line no-shadow export enum ProcessListCloudPreferences { columnOrder = 'processes-cloud-list-columns-order', diff --git a/lib/process-services-cloud/src/lib/process/process-list/services/process-list-cloud.service.spec.ts b/lib/process-services-cloud/src/lib/process/process-list/services/process-list-cloud.service.spec.ts index b34613ba72..aaa7ce0784 100644 --- a/lib/process-services-cloud/src/lib/process/process-list/services/process-list-cloud.service.spec.ts +++ b/lib/process-services-cloud/src/lib/process/process-list/services/process-list-cloud.service.spec.ts @@ -14,6 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { fakeAsync, TestBed } from '@angular/core/testing'; import { setupTestBed, AlfrescoApiService } from '@alfresco/adf-core'; import { ProcessListCloudService } from './process-list-cloud.service'; diff --git a/lib/process-services-cloud/src/lib/process/process-list/services/process-list-cloud.service.ts b/lib/process-services-cloud/src/lib/process/process-list/services/process-list-cloud.service.ts index 80b2106178..e253f7ee1b 100644 --- a/lib/process-services-cloud/src/lib/process/process-list/services/process-list-cloud.service.ts +++ b/lib/process-services-cloud/src/lib/process/process-list/services/process-list-cloud.service.ts @@ -14,6 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { Injectable } from '@angular/core'; import { AlfrescoApiService, AppConfigService, LogService } from '@alfresco/adf-core'; import { ProcessQueryCloudRequestModel } from '../models/process-cloud-query-request.model'; diff --git a/lib/process-services-cloud/src/lib/services/variable-mapper.sevice.spec.ts b/lib/process-services-cloud/src/lib/services/variable-mapper.sevice.spec.ts index 06cbc59037..83cd197c0d 100644 --- a/lib/process-services-cloud/src/lib/services/variable-mapper.sevice.spec.ts +++ b/lib/process-services-cloud/src/lib/services/variable-mapper.sevice.spec.ts @@ -2,14 +2,14 @@ * @license * Copyright 2019 Alfresco Software, Ltd. * - * Licensed under the Apache License, Version 2.0 (the 'License'); + * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/lib/process-services-cloud/src/lib/services/variable-mapper.sevice.ts b/lib/process-services-cloud/src/lib/services/variable-mapper.sevice.ts index 4a98ffbda3..ce3d2bef32 100644 --- a/lib/process-services-cloud/src/lib/services/variable-mapper.sevice.ts +++ b/lib/process-services-cloud/src/lib/services/variable-mapper.sevice.ts @@ -2,14 +2,14 @@ * @license * Copyright 2019 Alfresco Software, Ltd. * - * Licensed under the Apache License, Version 2.0 (the 'License'); + * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/lib/process-services-cloud/src/lib/task/directives/claim-task-cloud.directive.spec.ts b/lib/process-services-cloud/src/lib/task/directives/claim-task-cloud.directive.spec.ts index 15c499d1f8..58f53ec7eb 100644 --- a/lib/process-services-cloud/src/lib/task/directives/claim-task-cloud.directive.spec.ts +++ b/lib/process-services-cloud/src/lib/task/directives/claim-task-cloud.directive.spec.ts @@ -14,6 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { Component, ContentChildren, ViewChild } from '@angular/core'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { setupTestBed } from '@alfresco/adf-core'; diff --git a/lib/process-services-cloud/src/lib/task/directives/claim-task-cloud.directive.ts b/lib/process-services-cloud/src/lib/task/directives/claim-task-cloud.directive.ts index b28daedaf0..5000b937a2 100644 --- a/lib/process-services-cloud/src/lib/task/directives/claim-task-cloud.directive.ts +++ b/lib/process-services-cloud/src/lib/task/directives/claim-task-cloud.directive.ts @@ -14,6 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { Directive, Input, HostListener, Output, EventEmitter, OnInit } from '@angular/core'; import { IdentityUserService } from '../../people/services/identity-user.service'; import { TaskCloudService } from '../services/task-cloud.service'; diff --git a/lib/process-services-cloud/src/lib/task/directives/complete-task.directive.spec.ts b/lib/process-services-cloud/src/lib/task/directives/complete-task.directive.spec.ts index 9a01aa7528..6f8a553159 100644 --- a/lib/process-services-cloud/src/lib/task/directives/complete-task.directive.spec.ts +++ b/lib/process-services-cloud/src/lib/task/directives/complete-task.directive.spec.ts @@ -14,6 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { Component, ViewChild, ContentChildren } from '@angular/core'; import { CompleteTaskDirective } from './complete-task.directive'; import { ComponentFixture, TestBed } from '@angular/core/testing'; diff --git a/lib/process-services-cloud/src/lib/task/directives/complete-task.directive.ts b/lib/process-services-cloud/src/lib/task/directives/complete-task.directive.ts index 49304a1391..c2a870e15b 100644 --- a/lib/process-services-cloud/src/lib/task/directives/complete-task.directive.ts +++ b/lib/process-services-cloud/src/lib/task/directives/complete-task.directive.ts @@ -14,6 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { Directive, Input, HostListener, Output, EventEmitter, OnInit } from '@angular/core'; import { TaskCloudService } from '../services/task-cloud.service'; diff --git a/lib/process-services-cloud/src/lib/task/directives/unclaim-task-cloud.directive.spec.ts b/lib/process-services-cloud/src/lib/task/directives/unclaim-task-cloud.directive.spec.ts index a8b60d8e9d..e090b6015a 100644 --- a/lib/process-services-cloud/src/lib/task/directives/unclaim-task-cloud.directive.spec.ts +++ b/lib/process-services-cloud/src/lib/task/directives/unclaim-task-cloud.directive.spec.ts @@ -14,6 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { Component, ContentChildren, ViewChild } from '@angular/core'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { setupTestBed } from '@alfresco/adf-core'; diff --git a/lib/process-services-cloud/src/lib/task/directives/unclaim-task-cloud.directive.ts b/lib/process-services-cloud/src/lib/task/directives/unclaim-task-cloud.directive.ts index f624c6f641..e430f1f383 100644 --- a/lib/process-services-cloud/src/lib/task/directives/unclaim-task-cloud.directive.ts +++ b/lib/process-services-cloud/src/lib/task/directives/unclaim-task-cloud.directive.ts @@ -14,6 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { Directive, Input, HostListener, Output, EventEmitter, OnInit } from '@angular/core'; import { TaskCloudService } from '../services/task-cloud.service'; diff --git a/lib/process-services-cloud/src/lib/task/start-task/components/start-task-cloud.component.ts b/lib/process-services-cloud/src/lib/task/start-task/components/start-task-cloud.component.ts index 21719faf47..f8664bc451 100644 --- a/lib/process-services-cloud/src/lib/task/start-task/components/start-task-cloud.component.ts +++ b/lib/process-services-cloud/src/lib/task/start-task/components/start-task-cloud.component.ts @@ -14,6 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { Component, EventEmitter, Input, OnInit, Output, ViewEncapsulation, OnDestroy, ViewChild } from '@angular/core'; import { DateAdapter, MAT_DATE_FORMATS } from '@angular/material/core'; import moment, { Moment } from 'moment'; diff --git a/lib/process-services-cloud/src/lib/task/start-task/models/start-task-cloud-request.model.ts b/lib/process-services-cloud/src/lib/task/start-task/models/start-task-cloud-request.model.ts index 2981f90636..a457ea6127 100644 --- a/lib/process-services-cloud/src/lib/task/start-task/models/start-task-cloud-request.model.ts +++ b/lib/process-services-cloud/src/lib/task/start-task/models/start-task-cloud-request.model.ts @@ -14,6 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + export class StartTaskCloudRequestModel { name: string; diff --git a/lib/process-services-cloud/src/lib/task/task-list/models/tasks-cloud-preferences.ts b/lib/process-services-cloud/src/lib/task/task-list/models/tasks-cloud-preferences.ts index 8fdf8a537c..94f34d1cb5 100644 --- a/lib/process-services-cloud/src/lib/task/task-list/models/tasks-cloud-preferences.ts +++ b/lib/process-services-cloud/src/lib/task/task-list/models/tasks-cloud-preferences.ts @@ -1,3 +1,20 @@ +/*! + * @license + * Copyright 2019 Alfresco Software, Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // eslint-disable-next-line no-shadow export enum TasksListCloudPreferences { columnOrder = 'tasks-list-cloud-columns-order', diff --git a/lib/testing/src/lib/protractor/content-services/pages/search/number-range-filter.page.ts b/lib/testing/src/lib/protractor/content-services/pages/search/number-range-filter.page.ts index 628553a978..c414743907 100644 --- a/lib/testing/src/lib/protractor/content-services/pages/search/number-range-filter.page.ts +++ b/lib/testing/src/lib/protractor/content-services/pages/search/number-range-filter.page.ts @@ -14,6 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { ElementFinder, protractor } from 'protractor'; import { BrowserActions } from '../../../core/utils/browser-actions'; import { BrowserVisibility } from '../../../core/utils/browser-visibility'; diff --git a/lib/testing/src/lib/protractor/core/actions/drop.actions.ts b/lib/testing/src/lib/protractor/core/actions/drop.actions.ts index 169c3712b6..8069201b59 100644 --- a/lib/testing/src/lib/protractor/core/actions/drop.actions.ts +++ b/lib/testing/src/lib/protractor/core/actions/drop.actions.ts @@ -14,6 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { browser, ElementFinder } from 'protractor'; import * as path from 'path'; diff --git a/lib/testing/src/lib/protractor/process-services-cloud/pages/edit-process-filter-cloud-component.page.ts b/lib/testing/src/lib/protractor/process-services-cloud/pages/edit-process-filter-cloud-component.page.ts index 7b9af26745..cc5a1a5b1e 100644 --- a/lib/testing/src/lib/protractor/process-services-cloud/pages/edit-process-filter-cloud-component.page.ts +++ b/lib/testing/src/lib/protractor/process-services-cloud/pages/edit-process-filter-cloud-component.page.ts @@ -14,6 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { browser, $$, $, by, element } from 'protractor'; import { EditProcessFilterDialogPage } from './dialog/edit-process-filter-dialog.page'; import { BrowserVisibility } from '../../core/utils/browser-visibility'; diff --git a/lib/testing/src/lib/protractor/process-services/actions/models.service.ts b/lib/testing/src/lib/protractor/process-services/actions/models.service.ts index cec47287ac..005cbb8626 100644 --- a/lib/testing/src/lib/protractor/process-services/actions/models.service.ts +++ b/lib/testing/src/lib/protractor/process-services/actions/models.service.ts @@ -14,6 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { Logger } from '../../core/utils/logger'; import { ApiService } from '../../../shared/api/api.service'; import { ModelsApi } from '@alfresco/js-api'; diff --git a/package-lock.json b/package-lock.json index 134e11c486..eda1d478cc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29033,6 +29033,15 @@ } } }, + "eslint-plugin-license-header": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-license-header/-/eslint-plugin-license-header-0.6.0.tgz", + "integrity": "sha512-IEywStBWaDBDMkogYoKUAdaOuomZ+YaQmdoSD2vHmXobekM+XuP6SWLlvwUUhIbdocn3MTlb5CUJ8E4VHz1c/w==", + "dev": true, + "requires": { + "requireindex": "^1.2.0" + } + }, "eslint-plugin-prefer-arrow": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/eslint-plugin-prefer-arrow/-/eslint-plugin-prefer-arrow-1.2.3.tgz", diff --git a/package.json b/package.json index 6083631412..9d09c06c38 100644 --- a/package.json +++ b/package.json @@ -153,6 +153,7 @@ "eslint-plugin-ban": "^1.6.0", "eslint-plugin-import": "2.26.0", "eslint-plugin-jsdoc": "39.3.3", + "eslint-plugin-license-header": "0.6.0", "eslint-plugin-prefer-arrow": "1.2.3", "eslint-plugin-rxjs": "^5.0.2", "eslint-plugin-unicorn": "^43.0.1", diff --git a/tools/tslint-rules/adfEnterpriseLicenseBannerRule.js b/tools/tslint-rules/adfEnterpriseLicenseBannerRule.js deleted file mode 100644 index 086af14e20..0000000000 --- a/tools/tslint-rules/adfEnterpriseLicenseBannerRule.js +++ /dev/null @@ -1,46 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const Lint = require("tslint"); -const minimatch = require("minimatch"); -const fs = require("fs"); -class Rule extends Lint.Rules.AbstractRule { - apply(sourceFile) { - return this.applyWithWalker(new ADFEnterpriseLicenseBannerRule(sourceFile, this.getOptions())); - } -} -Rule.metadata = { - ruleName: 'adf-enterprise-license-banner', - type: 'maintainability', - description: ``, - descriptionDetails: ``, - rationale: ``, - options: null, - optionsDescription: `Not configurable.`, - typescriptOnly: true, -}; -Rule.FAILURE_STRING = 'Missing license header in this TypeScript ' + - 'file Every TypeScript file of the library needs to have the Alfresco license banner at the top.'; -exports.Rule = Rule; -class ADFEnterpriseLicenseBannerRule extends Lint.RuleWalker { - constructor(sourceFile, options) { - super(sourceFile, options); - const fileGlobs = options.ruleArguments; - this.licensePath = options.ruleArguments[1]; - const relativeFilePath = path.relative(process.cwd(), sourceFile.fileName); - this._enabled = fileGlobs.some(p => minimatch(relativeFilePath, p)); - } - visitSourceFile(sourceFile) { - if (!this._enabled) { - return; - } - const fileContent = sourceFile.getFullText(); - const licenseBanner = fs.readFileSync(this.licensePath, 'utf8'); - const licenseCommentPos = fileContent.indexOf(licenseBanner); - const tslintFix = Lint.Replacement.appendText(0, licenseBanner + '\n\n'); - if (licenseCommentPos !== 0) { - return this.addFailureAt(0, 0, Rule.FAILURE_STRING, tslintFix); - } - super.visitSourceFile(sourceFile); - } -} diff --git a/tools/tslint-rules/adfEnterpriseLicenseBannerRule.ts b/tools/tslint-rules/adfEnterpriseLicenseBannerRule.ts deleted file mode 100644 index cad56809de..0000000000 --- a/tools/tslint-rules/adfEnterpriseLicenseBannerRule.ts +++ /dev/null @@ -1,69 +0,0 @@ -import * as path from 'path'; -import * as ts from 'typescript'; -import * as Lint from 'tslint'; -import * as minimatch from 'minimatch'; -import * as fs from 'fs'; - -/** - * Rule that walks through all TypeScript files of public packages and shows failures if a - * file does not have the license banner at the top of the file. - */ -export class Rule extends Lint.Rules.AbstractRule { - - public static metadata: Lint.IRuleMetadata = { - ruleName: 'adf-enterprise-license-banner', - type: 'maintainability', - description: ``, - descriptionDetails: ``, - rationale: ``, - options: null, - optionsDescription: `Not configurable.`, - typescriptOnly: true, - }; - - static FAILURE_STRING: string = 'Missing license header in this TypeScript ' + - 'file Every TypeScript file of the library needs to have the Alfresco license banner at the top.'; - - public apply(sourceFile: ts.SourceFile): Lint.RuleFailure[] { - return this.applyWithWalker( - new ADFEnterpriseLicenseBannerRule(sourceFile, - this.getOptions())); - } -} - -class ADFEnterpriseLicenseBannerRule extends Lint.RuleWalker { - - /** Whether the walker should check the current source file. */ - private _enabled: boolean; - private licensePath: string; - - constructor(sourceFile: ts.SourceFile, options: Lint.IOptions) { - super(sourceFile, options); - - // Globs that are used to determine which files to lint. - const fileGlobs = options.ruleArguments; - this.licensePath = options.ruleArguments[1]; - - // Relative path for the current TypeScript source file. - const relativeFilePath = path.relative(process.cwd(), sourceFile.fileName); - // Whether the file should be checked at all. - this._enabled = fileGlobs.some(p => minimatch(relativeFilePath, p)); - } - - visitSourceFile(sourceFile: ts.SourceFile) { - if (!this._enabled) { - return; - } - - const fileContent = sourceFile.getFullText(); - const licenseBanner = fs.readFileSync(this.licensePath,'utf8'); - const licenseCommentPos = fileContent.indexOf(licenseBanner); - - const tslintFix = Lint.Replacement.appendText(0, licenseBanner + '\n\n'); - if (licenseCommentPos !== 0) { - return this.addFailureAt(0, 0, Rule.FAILURE_STRING, tslintFix); - } - - super.visitSourceFile(sourceFile); - } -} diff --git a/tools/tslint-rules/adfLicenseBannerRule.js b/tools/tslint-rules/adfLicenseBannerRule.js deleted file mode 100644 index e46c2d0ec0..0000000000 --- a/tools/tslint-rules/adfLicenseBannerRule.js +++ /dev/null @@ -1,46 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const Lint = require("tslint"); -const minimatch = require("minimatch"); -const fs = require("fs"); -class Rule extends Lint.Rules.AbstractRule { - apply(sourceFile) { - return this.applyWithWalker(new ADFLicenseBannerRule(sourceFile, this.getOptions())); - } -} -Rule.metadata = { - ruleName: 'adf-license-banner', - type: 'maintainability', - description: ``, - descriptionDetails: ``, - rationale: ``, - options: null, - optionsDescription: `Not configurable.`, - typescriptOnly: true, -}; -Rule.FAILURE_STRING = 'Missing license header in this TypeScript ' + - 'file Every TypeScript file of the library needs to have the Alfresco license banner at the top.'; -exports.Rule = Rule; -class ADFLicenseBannerRule extends Lint.RuleWalker { - constructor(sourceFile, options) { - super(sourceFile, options); - const fileGlobs = options.ruleArguments; - this.licensePath = options.ruleArguments[1]; - const relativeFilePath = path.relative(process.cwd(), sourceFile.fileName); - this._enabled = fileGlobs.some(p => minimatch(relativeFilePath, p)); - } - visitSourceFile(sourceFile) { - if (!this._enabled) { - return; - } - const fileContent = sourceFile.getFullText(); - const licenseBanner = fs.readFileSync(this.licensePath, 'utf8'); - const licenseCommentPos = fileContent.indexOf(licenseBanner); - const tslintFix = Lint.Replacement.appendText(0, licenseBanner + '\n\n'); - if (licenseCommentPos !== 0) { - return this.addFailureAt(0, 0, Rule.FAILURE_STRING, tslintFix); - } - super.visitSourceFile(sourceFile); - } -} diff --git a/tools/tslint-rules/adfLicenseBannerRule.ts b/tools/tslint-rules/adfLicenseBannerRule.ts deleted file mode 100644 index 077d109dc6..0000000000 --- a/tools/tslint-rules/adfLicenseBannerRule.ts +++ /dev/null @@ -1,69 +0,0 @@ -import * as path from 'path'; -import * as ts from 'typescript'; -import * as Lint from 'tslint'; -import * as minimatch from 'minimatch'; -import * as fs from 'fs'; - -/** - * Rule that walks through all TypeScript files of public packages and shows failures if a - * file does not have the license banner at the top of the file. - */ -export class Rule extends Lint.Rules.AbstractRule { - - public static metadata: Lint.IRuleMetadata = { - ruleName: 'adf-license-banner', - type: 'maintainability', - description: ``, - descriptionDetails: ``, - rationale: ``, - options: null, - optionsDescription: `Not configurable.`, - typescriptOnly: true, - }; - - static FAILURE_STRING: string = 'Missing license header in this TypeScript ' + - 'file Every TypeScript file of the library needs to have the Alfresco license banner at the top.'; - - public apply(sourceFile: ts.SourceFile): Lint.RuleFailure[] { - return this.applyWithWalker( - new ADFLicenseBannerRule(sourceFile, - this.getOptions())); - } -} - -class ADFLicenseBannerRule extends Lint.RuleWalker { - - /** Whether the walker should check the current source file. */ - private _enabled: boolean; - private licensePath: string; - - constructor(sourceFile: ts.SourceFile, options: Lint.IOptions) { - super(sourceFile, options); - - // Globs that are used to determine which files to lint. - const fileGlobs = options.ruleArguments; - this.licensePath = options.ruleArguments[1]; - - // Relative path for the current TypeScript source file. - const relativeFilePath = path.relative(process.cwd(), sourceFile.fileName); - // Whether the file should be checked at all. - this._enabled = fileGlobs.some(p => minimatch(relativeFilePath, p)); - } - - visitSourceFile(sourceFile: ts.SourceFile) { - if (!this._enabled) { - return; - } - - const fileContent = sourceFile.getFullText(); - const licenseBanner = fs.readFileSync(this.licensePath,'utf8'); - const licenseCommentPos = fileContent.indexOf(licenseBanner); - - const tslintFix = Lint.Replacement.appendText(0, licenseBanner + '\n\n'); - if (licenseCommentPos !== 0) { - return this.addFailureAt(0, 0, Rule.FAILURE_STRING, tslintFix); - } - - super.visitSourceFile(sourceFile); - } -} diff --git a/tools/tslint-rules/index.js b/tools/tslint-rules/index.js index b7b7669e44..2b3de2cfb1 100644 --- a/tools/tslint-rules/index.js +++ b/tools/tslint-rules/index.js @@ -6,6 +6,4 @@ var adfFileNameRule_1 = require("./adfFileNameRule"); exports.ADFComponentSelectorRule = adfFileNameRule_1.Rule; var adfPrefixNameRule_1 = require("./adfPrefixNameRule"); exports.ADFOutputPrefixNameRule = adfPrefixNameRule_1.Rule; -var adfLicenseBannerRule_1 = require("./adfLicenseBannerRule"); -exports.ADFLicenseBannerRule = adfLicenseBannerRule_1.Rule; exports.rulesDirectory = '.'; diff --git a/tools/tslint-rules/index.ts b/tools/tslint-rules/index.ts index 198124d0b6..12275ee2f5 100644 --- a/tools/tslint-rules/index.ts +++ b/tools/tslint-rules/index.ts @@ -1,6 +1,5 @@ export { Rule as ADFClassNameRule } from './adfClassNameRule'; export { Rule as ADFComponentSelectorRule } from './adfFileNameRule'; export { Rule as ADFOutputPrefixNameRule } from './adfPrefixNameRule'; -export { Rule as ADFLicenseBannerRule } from './adfLicenseBannerRule'; export const rulesDirectory = '.';