-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* depend on 0.1.0 baggage core * use inslucive language * Update scripts/validate_language.sh Co-authored-by: Yim Lee <[email protected]> Co-authored-by: Yim Lee <[email protected]>
- Loading branch information
Showing
6 changed files
with
39 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
##===----------------------------------------------------------------------===## | ||
## | ||
## This source file is part of the Swift Distributed Tracing Baggage open source project | ||
## | ||
## Copyright (c) 2021 Apple Inc. and the Swift Distributed Tracing Baggage project authors | ||
## Licensed under Apache License v2.0 | ||
## | ||
## See LICENSE.txt for license information | ||
## | ||
## SPDX-License-Identifier: Apache-2.0 | ||
## | ||
##===----------------------------------------------------------------------===## | ||
|
||
set -eu | ||
|
||
printf "=> Checking for unacceptable language... " | ||
# This greps for unacceptable terminology. The square bracket[s] are so that | ||
# "git grep" doesn't find the lines that greps :). | ||
unacceptable_terms=( | ||
-e blacklis[t] | ||
-e whitelis[t] | ||
-e slav[e] | ||
-e sanit[y] | ||
) | ||
if git grep --color=never -i "${unacceptable_terms[@]}" > /dev/null; then | ||
printf "\033[0;31mUnacceptable language found.\033[0m\n" | ||
git grep -i "${unacceptable_terms[@]}" | ||
exit 1 | ||
fi | ||
printf "\033[0;32mokay.\033[0m\n" |
This file contains 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