You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/01/25 03:10:10 UTC

[GitHub] daisy-ycguo commented on issue #5: Add the support to verify the apache licensing header for all the source code

daisy-ycguo commented on issue #5: Add the support to verify the apache licensing header for all the source code
URL: https://github.com/apache/incubator-openwhisk-release/issues/5#issuecomment-360347593
 
 
   Apache Rat is a release audit tool, focused on licenses.
   
   Steps of installation and usage:
   1. git clone https://github.com/apache/rat.git
   2. mvn clean install
   3. java -jar apache-rat-0.9-SNAPSHOT.jar -a <folder>
   
   The command will generate a report like:
   ```
   *****************************************************
   Summary
   -------
   Generated at: 2018-01-25T11:05:30+08:00
   Notes: 0
   Binaries: 0
   Archives: 0
   Standards: 2
   
   Apache Licensed: 0
   Generated Documents: 0
   
   JavaDocs are generated and so license header is optional
   Generated files do not required license headers
   
   2 Unknown Licenses
   
   *******************************
   
   Unapproved licenses:
   
     ./test/b.py
     ./test/c.txt
   
   *******************************
   
   Archives:
   
   *****************************************************
     Files with Apache License headers will be marked AL
     Binary files (which do not require AL headers) will be marked B
     Compressed archives will be marked A
     Notices, licenses etc will be marked N
    !????? ./test/b.py
    !????? ./test/c.txt
   
   *****************************************************
    Printing headers for files without AL header...
   
   
   =======================================================================
   ==./test/b.py
   =======================================================================
   bb
   
   =======================================================================
   ==./test/c.txt
   =======================================================================
   aa
   ```
   
   And it will generate a new file `b.py.new` with the Apache License 2.0 header. If we want to update the file directly, we can use `--force`option.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services