Uploaded image for project: 'Apache Rat'
  1. Apache Rat
  2. RAT-301

Rat check file identification error,java files with Chinese characters are recognized as binary files

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.13
    • 0.17
    • None
    • None
    • Window
      Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-11T00:41:47+08:00)

    Description

      // 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> 

      This is the result of mvn apache-rat:check

      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
        
      ***************************************************** 

      UDFVersion.java is recognized as a binary file
      source code: https://github.com/casionone/incubator-linkis/tree/dev-1.1.1-rat

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            claude Claude Warren
            casion Chen Xia
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment