我们可以使用< tslint --fix' codelyzer规则的命令?

时间:2018-05-16 22:48:08

标签: angular-cli nativescript tslint codelyzer

我正在运行这个tslint命令:

SELECT  C.* 
,       MAX(COALESCE(TLC.BILL_DATE,'0001-01-01')
           ,COALESCE(TLO.BILL_DATE,'0001-01-01')
           ,COALESCE(TLD.BILL_DATE,'0001-01-01')) AS BILL_DATE
FROM
    CLIENT C
LEFT OUTER JOIN 
    (SELECT CUSTOMER
    ,       MAX(BILL_DATE) AS BILL_DATE
    FROM
        TLORDER
    GROUP BY
            CUSTOMER
    ) AS TLC
ON
    TLC.CUSTOMER    = C.CLIENT_ID
LEFT OUTER JOIN 
    (SELECT ORIGIN
    ,       MAX(BILL_DATE) AS BILL_DATE
    FROM
        TLORDER
    GROUP BY ORIGIN
    ) AS TLO
ON
    TLO.ORIGIN      = C.CLIENT_ID
LEFT OUTER JOIN 
    (SELECT DESTINATION
    ,       MAX(BILL_DATE) AS BILL_DATE
    FROM
        TLORDER
    GROUP BY
           DESTINATION
    ) AS TLD
ON
    TLD.DESTINATION = C.CLIENT_ID

我的' tslint'命令检测所有规则,它工作正常。但是我的修复'命令只修复tslint规则并忽略codelyzer规则(rulesDirectory)。

有一种方法可以自动化tslint来修复代码规则吗?

0 个答案:

没有答案