This repository was archived by the owner on Nov 17, 2023. It is now read-only.
rat check make target#15127
Merged
Merged
Conversation
roywei
approved these changes
Jun 3, 2019
Member
roywei
left a comment
There was a problem hiding this comment.
Thanks for the fix. I have verified this make target works:
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Creadur Rat 0.13-SNAPSHOT ................... SUCCESS [ 29.237 s]
[INFO] Apache Creadur Rat::API ............................ SUCCESS [ 5.060 s]
[INFO] Apache Creadur Rat::Core ........................... SUCCESS [ 3.027 s]
[INFO] Apache Creadur Rat::Plugin4Maven ................... SUCCESS [ 27.000 s]
[INFO] Apache Creadur Rat::Tasks4Ant ...................... SUCCESS [ 14.520 s]
[INFO] Apache Creadur Rat::Command Line 0.13-SNAPSHOT ..... SUCCESS [ 5.845 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:27 min
[INFO] Finished at: 2019-06-03T11:50:15-07:00
[INFO] ------------------------------------------------------------------------
exec 5>&1; \
RAT_JAR=build/rat/apache-rat/target/apache-rat-0.13-SNAPSHOT.jar; \
OUTPUT=; \
ERROR_MESSAGE="Printing headers for text files without a valid license header"; \
echo "-------Process The Output-------"; \
if [[ UTPUT =~ RROR_MESSAGE ]]; then \
echo "ERROR: RAT Check detected files with unknown licenses. Please fix and run test again!"; \
exit 1; \
else \
echo "SUCCESS: There are no files with an Unknown License."; \
fi
-------Process The Output-------
SUCCESS: There are no files with an Unknown License
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
rat check make target
make ratcheck. resolves #14936Checklist
Essentials
Please feel free to remove inapplicable items for your PR.
Changes
make ratcheckComments