Uploaded image for project: 'Bahir (Retired)'
  1. Bahir (Retired)
  2. BAHIR-152

License header not enforced for Java sources

    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              ckadner Christian Kadner
              ckadner Christian Kadner
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 2h
                  2h
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h
                  2h