You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@creadur.apache.org by "Philipp Ottlinger (Jira)" <ji...@apache.org> on 2022/05/08 10:52:00 UTC

[jira] [Commented] (RAT-301) Rat check file identification error,java files are recognized as binary files

    [ https://issues.apache.org/jira/browse/RAT-301?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17533445#comment-17533445 ] 

Philipp Ottlinger commented on RAT-301:
---------------------------------------

I tried to verify your report but I'm unable to get the project running from your branch ....

it fails with unresolved dependencies before showing the problem you reported.

The class [https://github.com/casionone/incubator-linkis/blob/dev-1.1.1-rat/linkis-public-enhancements/linkis-publicservice/linkis-udf/linkis-udf-common/src/main/java/org/apache/linkis/udf/entity/UDFVersion.java] itself looks ok to me. Mabe the Chinese characters lead the plugin to think the file is binary. Can you remove those characters and retry a RAT run?

 

> Rat check file identification error,java files are recognized as binary files
> -----------------------------------------------------------------------------
>
>                 Key: RAT-301
>                 URL: https://issues.apache.org/jira/browse/RAT-301
>             Project: Apache Rat
>          Issue Type: Bug
>         Environment: Window  
> Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-11T00:41:47+08:00)
>            Reporter: Chen Xia
>            Priority: Major
>
> {code:java}
> // code placeholder
> <!--mvn apache-rat:check-->
> <plugin>
>     <groupId>org.apache.rat</groupId>
>     <artifactId>apache-rat-plugin</artifactId>
>     <version>0.13</version>
>     <executions>
>         <execution>
>             <id>rat-validate</id>
>             <phase>validate</phase>
>             <goals>
>                 <goal>check</goal>
>             </goals>
>         </execution>
>     </executions>
>     <configuration>
>         <excludes>
>             <exclude>**/*.versionsBackup</exclude>
>             <exclude>**/.idea/</exclude>
>             <exclude>**/*.iml</exclude>
>             <exclude>**/*.txt</exclude>
>             <exclude>**/*.json</exclude>
>             <exclude>web/.editorconfig</exclude>
>             <exclude>web/.env</exclude>
>             <exclude>web/.eslintignore</exclude>
>             <exclude>web/.jshintrc</exclude>
>             <exclude>web/public/favicon.ico</exclude>
>             <exclude>web/dist/**</exclude>
>             <exclude>web/node_modules/**</exclude>
>             <exclude>web/apache-linkis-*-web-bin.tar.gz</exclude>
>             <exclude>**/*.md</exclude>
>             <exclude>.git/</exclude>
>             <exclude>.gitignore</exclude>
>             <exclude>**/.settings/*</exclude>
>             <exclude>**/.classpath</exclude>
>             <exclude>**/.project</exclude>
>             <exclude>**/target/**</exclude>
>             <exclude>**/out/**</exclude>
>             <exclude>**/*.log</exclude>
>             <exclude>CONTRIBUTING.md</exclude>
>             <exclude>CONTRIBUTING_CN.md</exclude>
>             <exclude>DISCLAIMER</exclude>
>             <exclude>DISCLAIMER</exclude>
>             <exclude>README.md</exclude>
>             <exclude>**/META-INF/**</exclude>
>             <exclude>.github/**</exclude>
>             <exclude>compiler/**</exclude>
>             <exclude>**/generated/**</exclude>
>         </excludes>
>     </configuration>
> </plugin> {code}
> This is the result of {{mvn apache-rat:check}}
> {code:java}
> Summary
> -------
> Generated at: 2022-05-06T09:56:39+08:00
> Notes: 0
> Binaries: 1
> Archives: 0
> Standards: 13
> Apache Licensed: 13
> Generated Documents: 0
> JavaDocs are generated, thus a license header is optional.
> Generated files do not require license headers.
> 0 Unknown Licenses
> *****************************************************
>   Files with Apache License headers will be marked AL
>   Binary files (which do not require any license headers) will be marked B
>   B     D:/DataSphere/linkis_svn/1.1.1-RC1/apache-linkis-1.1.1-incubating-src/apache-linkis-1.1.1-incubating-src/linkis-public-enhancements/linkis-publicservice/linkis-udf/linkis-udf-common/src/main/java/org/apache/linkis/udf/entity/UDFVersion.java
>   AL    D:/DataSphere/linkis_svn/1.1.1-RC1/apache-linkis-1.1.1-incubating-src/apache-linkis-1.1.1-incubating-src/linkis-public-enhancements/linkis-publicservice/linkis-udf/linkis-udf-common/src/main/java/org/apache/linkis/udf/excepiton/UDFException.java
>   
> ***************************************************** {code}
> UDFVersion.java is recognized as a binary file
> source code: https://github.com/casionone/incubator-linkis/tree/dev-1.1.1-rat



--
This message was sent by Atlassian Jira
(v8.20.7#820007)