Christian Kadner created BAHIR-152:

             Summary: License header not enforced for Java sources
                 Key: BAHIR-152
             Project: Bahir
          Issue Type: Bug
          Components: Build, Spark SQL Data Sources, Spark Streaming 
Connectors, Spark Structured Streaming Connectors
    Affects Versions: Not Applicable
            Reporter: Christian Kadner
            Assignee: Christian Kadner
             Fix For: Spark-2.2.1, Spark-2.3

In any Java source file add this line on top of the license header:

 * Copyright (c) 2017 ACME. All rights reserved.
 * <p>

then run {{mvn clean verify}} and see the build succeed.

Neither of the following maven goals complains either:
 - {{mvn apache-rat:check}}
 - {{mvn checkstyle:check}}

Adding a similar copyright statement to any of the Scala sources will fail the 
{{HeaderMatchesChecker}} rule in our {{scalastyle}} checks.

I am not sure why the 
[RAT|] checks allow 
this to pass, but I will add a similar {{Header}} verification to our 
{{checkstyle}} configuration.

This message was sent by Atlassian JIRA

Reply via email to