[ADF-859] add codelyzer in core and datatable (#2056)

* add codelyzer in core and datatable

* add codelyzer in the main build

* order imports

* fix import in test

* fix import test

* import reorder form

* tasklist and processlist import reorder
This commit is contained in:
Eugenio Romano
2017-07-07 10:20:41 +02:00
committed by Eugenio Romano
parent 9870964c0e
commit 53a614bfbf
388 changed files with 9335 additions and 2242 deletions

View File

@@ -15,9 +15,9 @@
* limitations under the License.
*/
import { ComponentFixture, TestBed, async } from '@angular/core/testing';
import { AccordionComponent } from './accordion.component';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { AccordionGroupComponent } from './accordion-group.component';
import { AccordionComponent } from './accordion.component';
describe('AccordionGroupComponent', () => {

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
import { Component, Input, OnDestroy, Output, EventEmitter, ViewChild } from '@angular/core';
import { Component, EventEmitter, Input, OnDestroy, Output, ViewChild } from '@angular/core';
import { AccordionComponent } from './accordion.component';
@Component({

View File

@@ -15,9 +15,9 @@
* limitations under the License.
*/
import { ComponentFixture, TestBed, async } from '@angular/core/testing';
import { AccordionComponent } from './accordion.component';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { AccordionGroupComponent } from './accordion-group.component';
import { AccordionComponent } from './accordion.component';
describe('AccordionComponent', () => {

View File

@@ -15,11 +15,11 @@
* limitations under the License.
*/
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { AccordionComponent } from './accordion.component';
import { AccordionGroupComponent } from './accordion-group.component';
import { AccordionComponent } from './accordion.component';
@NgModule({
imports: [

View File

@@ -15,8 +15,8 @@
* limitations under the License.
*/
import { ContextMenuService } from './context-menu.service';
import { ContextMenuHolderComponent } from './context-menu-holder.component';
import { ContextMenuService } from './context-menu.service';
describe('ContextMenuHolderComponent', () => {

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
import { Directive, Input, HostListener } from '@angular/core';
import { Directive, HostListener, Input } from '@angular/core';
import { ContextMenuService } from './context-menu.service';
@Directive({

View File

@@ -15,8 +15,8 @@
* limitations under the License.
*/
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { ContextMenuHolderComponent } from './context-menu-holder.component';
import { ContextMenuDirective } from './context-menu.directive';

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
import { TestBed, async } from '@angular/core/testing';
import { async, TestBed } from '@angular/core/testing';
import { DataColumnListComponent } from './data-column-list.component';
describe('DataColumnListComponent', () => {

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
import { TestBed, async } from '@angular/core/testing';
import { async, TestBed } from '@angular/core/testing';
import { DataColumnComponent } from './data-column.component';
describe('DataColumnListComponent', () => {

View File

@@ -15,13 +15,13 @@
* limitations under the License.
*/
import { Component, Input, ContentChild, TemplateRef } from '@angular/core';
import { Component, ContentChild, Input, OnInit, TemplateRef } from '@angular/core';
@Component({
selector: 'data-column',
template: ''
})
export class DataColumnComponent {
export class DataColumnComponent implements OnInit {
@Input()
key: string;

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
import { Directive, ElementRef, AfterViewInit } from '@angular/core';
import { AfterViewInit, Directive, ElementRef } from '@angular/core';
declare var componentHandler;

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
import { Directive, ElementRef, AfterViewInit } from '@angular/core';
import { AfterViewInit, Directive, ElementRef } from '@angular/core';
declare var componentHandler;

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
import { Directive, ElementRef, AfterViewInit } from '@angular/core';
import { AfterViewInit, Directive, ElementRef } from '@angular/core';
declare var componentHandler;

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
import { Directive, ElementRef, AfterViewInit } from '@angular/core';
import { AfterViewInit, Directive, ElementRef } from '@angular/core';
declare var componentHandler;

View File

@@ -15,13 +15,13 @@
* limitations under the License.
*/
import { Directive, AfterViewInit } from '@angular/core';
import { AfterViewInit, Directive } from '@angular/core';
declare var componentHandler;
@Directive({
selector: '[mdl]'
})
export class MDL implements AfterViewInit {
export class MDLDirective implements AfterViewInit {
ngAfterViewInit() {
componentHandler.upgradeAllRegistered();
}

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
import { Component, Input, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core';
import { ChangeDetectionStrategy, Component, Input, ViewEncapsulation } from '@angular/core';
@Component({
selector: 'adf-toolbar',

View File

@@ -15,20 +15,20 @@
* limitations under the License.
*/
import { ComponentFixture, TestBed, async } from '@angular/core/testing';
import { CardView } from './adf-card-view.component';
import { CardViewModel } from '../../models/card-view.model';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import { CardViewModel } from '../../models/card-view.model';
import { CardViewComponent } from './adf-card-view.component';
describe('AdfCardView', () => {
let fixture: ComponentFixture<CardView>;
let component: CardView;
let fixture: ComponentFixture<CardViewComponent>;
let component: CardViewComponent;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [
CardView
CardViewComponent
],
providers: [
]
@@ -36,7 +36,7 @@ describe('AdfCardView', () => {
}));
beforeEach(() => {
fixture = TestBed.createComponent(CardView);
fixture = TestBed.createComponent(CardViewComponent);
component = fixture.componentInstance;
});

View File

@@ -16,15 +16,15 @@
*/
import { Component, Input } from '@angular/core';
import { CardViewModel } from '../../models/card-view.model';
import * as moment from 'moment';
import { CardViewModel } from '../../models/card-view.model';
@Component({
selector: 'adf-card-view',
templateUrl: './adf-card-view.component.html',
styleUrls: ['./adf-card-view.component.css']
})
export class CardView {
export class CardViewComponent {
@Input()
properties: CardViewModel [];

View File

@@ -15,19 +15,19 @@
* limitations under the License.
*/
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { CardView } from './adf-card-view.component';
import { NgModule } from '@angular/core';
import { CardViewComponent } from './adf-card-view.component';
@NgModule({
imports: [
CommonModule
],
declarations: [
CardView
CardViewComponent
],
exports: [
CardView
CardViewComponent
]
})
export class CardViewModule {}