-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add style checks #6571
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add style checks #6571
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#------------------------------------------------------------------------------------------------------- | ||
# Copyright (C) Microsoft. All rights reserved. | ||
# Copyright (c) 2021 ChakraCore Project Contributors. All rights reserved. | ||
# Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. | ||
#------------------------------------------------------------------------------------------------------- | ||
|
||
|
@@ -18,9 +19,10 @@ rm -f $ERRFILE | |
rm -f $ERRFILETEMP | ||
|
||
echo "Check Copyright > Begin Checking..." | ||
git diff --name-only `git merge-base origin/$ghprbTargetBranch HEAD` HEAD | | ||
git diff --name-only `git merge-base origin/master HEAD` HEAD | | ||
grep -v -E '\.git.*' | | ||
grep -v -E '\.xml$' | | ||
grep -v -E '\.yml$' | | ||
grep -v -E '\.props$' | | ||
grep -v -E '\.md$' | | ||
grep -v -E '\.txt$' | | ||
|
@@ -59,7 +61,7 @@ if [ -e $ERRFILE ]; then # if error file exists then there were errors | |
>&2 echo "--- ERRORS ---" | ||
cat $ERRFILE 1>&2 # send output to stderr so it can be redirected as error if desired | ||
>&2 echo "--------------" | ||
exit 1 # tell the caller there was an error (so Jenkins will fail the CI task) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you want to keep make it more future-proof, you can remove the name of the CI system we are using. I don't think it is critical, we can keep Azure here. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think you might still need |
||
exit 1 # tell the caller there was an error (so the CI task will fail) | ||
ppenzin marked this conversation as resolved.
Show resolved
Hide resolved
|
||
else | ||
echo "--- NO PROBLEMS DETECTED ---" | ||
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This instruction didn't work - edited to fix (by bringing in line with the logic in the other check scripts