Skip to content

Commit

Permalink
docs: Extend license check to .rs files (#4428)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Simulacrum authored Feb 21, 2024
1 parent cb63493 commit a038e7b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions bindings/rust/bench/benches/resumption.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

use bench::{
harness::TlsBenchConfig, CipherSuite, CryptoConfig, HandshakeType, KXGroup, S2NConnection,
SigType, TlsConnPair, TlsConnection,
Expand Down
3 changes: 3 additions & 0 deletions bindings/rust/bench/src/bin/graph_memory.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

use plotters::{
prelude::{
ChartBuilder, IntoDrawingArea, IntoSegmentedCoord, LabelAreaPosition, Rectangle,
Expand Down
6 changes: 4 additions & 2 deletions codebuild/bin/copyright_mistake_scanner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@ S2N_FILES+=" "
S2N_FILES+=$(find "$PWD"/codebuild/ -type f -name "*.sh")
S2N_FILES+=" "
S2N_FILES+=$(find "$PWD"/tests/ -type f -name "*.sh")
S2N_FILES+=" "
S2N_FILES+=$(find "$PWD" -type f -name "*.rs" | grep -v target)

FAILED=0

for file in $S2N_FILES; do
# The word "Copyright" should appear at least once in the first 3 lines of every file
COUNT=`head -3 $file | grep "Copyright" | wc -l`;
# The word "Copyright" should appear at least once in the first 4 lines of every file
COUNT=`head -4 $file | grep "Copyright" | wc -l`;
if [ "$COUNT" == "0" ];
then
FAILED=1;
Expand Down

0 comments on commit a038e7b

Please sign in to comment.