Skip to content

Commit

Permalink
[script][format] check copyright for .proto files (ray-project#20632)
Browse files Browse the repository at this point in the history
## Why are these changes needed?
- I found that we also have a copyright header in .proto files. Add it to the copyright formatter.
  • Loading branch information
SongGuyang authored Nov 23, 2021
1 parent 5d920fb commit 191be85
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ci/travis/copyright-format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ for directory in "${INCLUDES_CPP_DIRS[@]}"; do
fi
cmd_args="${cmd_args}*'"
done
cmd_args="${cmd_args} \( -name '*.cc' -or -name '*.h' \)"
cmd_args="${cmd_args} \( -name '*.cc' -or -name '*.h' -or -name '*.proto' \)"
eval "${cmd_args}" > "$FILE_LIST_TMP_FILE"
while IFS=$'\n' read -r f
do
Expand Down
14 changes: 14 additions & 0 deletions src/ray/protobuf/event.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2020-2021 The Ray Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

syntax = "proto3";
option cc_enable_arenas = true;

Expand Down

0 comments on commit 191be85

Please sign in to comment.