You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@creadur.apache.org by "Alex Wajda (JIRA)" <ji...@apache.org> on 2017/05/04 15:36:04 UTC

[jira] [Updated] (RAT-234) TypeScript files (*.ts) are categorized as binary files and are ignored

     [ https://issues.apache.org/jira/browse/RAT-234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Wajda updated RAT-234:
---------------------------
    Affects Version/s: 0.12

> TypeScript files (*.ts) are categorized as binary files and are ignored
> -----------------------------------------------------------------------
>
>                 Key: RAT-234
>                 URL: https://issues.apache.org/jira/browse/RAT-234
>             Project: Apache Rat
>          Issue Type: Bug
>    Affects Versions: 0.12
>            Reporter: Alex Wajda
>
> When running RAT check against my web project containing TypeScript source files it turned out that RAT thinks that {{*.ts}} files are binary files and ignores them all.
> As far as I understand it happens because {{"TS"}} extension is hardcoded as a binary extension in the [BinaryGuesser|https://github.com/apache/rat/blob/incubator-site-import/rat/rat-core/src/main/java/org/apache/rat/document/impl/guesser/BinaryGuesser.java#L153] class.
> I have found no way how to override this at the configuration level and make RAT to check {{*.ts}} files as well.
> {noformat}
> *****************************************************
>   Files with Apache License headers will be marked AL
>   Binary files (which do not require any license headers) will be marked B
>   Compressed archives will be marked A
>   Notices, licenses etc. will be marked N
>   B     C:/work/bacibbd/lineage/web/ui/src/app/app.component.ts
>   B     C:/work/bacibbd/lineage/web/ui/src/app/app.module.ts
>   B     C:/work/bacibbd/lineage/web/ui/src/app/lineage/attribute-list/attribute-list.component.ts
>   B     C:/work/bacibbd/lineage/web/ui/src/app/lineage/attribute-view/attribute-view.component.ts
>   B     C:/work/bacibbd/lineage/web/ui/src/app/lineage/data-type-view/data-type-view.component.ts
>   B     C:/work/bacibbd/lineage/web/ui/src/app/lineage/descriptor-list/lineage-descriptor-list.component.ts
>   B     C:/work/bacibbd/lineage/web/ui/src/app/lineage/expression-inline-view.component.ts
>   B     C:/work/bacibbd/lineage/web/ui/src/app/lineage/expression-view-dialog.component.ts
>   B     C:/work/bacibbd/lineage/web/ui/src/app/lineage/icon.ts
>   B     C:/work/bacibbd/lineage/web/ui/src/app/lineage/lineage-dag-item-details-header.component.ts
>   B     C:/work/bacibbd/lineage/web/ui/src/app/lineage/lineage-dag-item-details-section-header.component.ts
>   B     C:/work/bacibbd/lineage/web/ui/src/app/lineage/lineage-graph.component.ts
>   B     C:/work/bacibbd/lineage/web/ui/src/app/lineage/lineage-view/lineage-view.component.ts
>   B     C:/work/bacibbd/lineage/web/ui/src/app/lineage/lineage.component.ts
>   B     C:/work/bacibbd/lineage/web/ui/src/app/lineage/lineage.module.ts
>   B     C:/work/bacibbd/lineage/web/ui/src/app/lineage/lineage.service.ts
>   B     C:/work/bacibbd/lineage/web/ui/src/app/lineage/operation-node-details/operation-node-details.component.ts
>   B     C:/work/bacibbd/lineage/web/ui/src/app/lineage/types.ts
>   B     C:/work/bacibbd/lineage/web/ui/src/app/lineage/visModel.ts
>   B     C:/work/bacibbd/lineage/web/ui/src/main.ts
>  
> *****************************************************
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)