Browse Source

Fix compile issues in Google/NaturalLanguage (#643)

Motivation:

The NaturalLanguage example did not compile because of breaking API
changes between pre-release version.

Modifications:

Fix compilation issues.

Result:

NaturalLanguage example compiles.
George Barnett 6 years ago
parent
commit
e9c46979d8
1 changed files with 6 additions and 2 deletions
  1. 6 2
      scripts/license-check.sh

+ 6 - 2
scripts/license-check.sh

@@ -85,12 +85,16 @@ replace_years() {
 # a non-zero status code.
 check_copyright_headers() {
   # Exceptions:
-  # - echo.pb.swift: Google is the author of the corresponding .proto, so the
-  #   generated header has Google as the author.
+  # - {echo,annotations,language_service,http}.pb.swift: Google is the author of
+  #   the corresponding .protos, so the generated header has Google as the
+  #   author.
   # - LinuxMain.swift, XCTestManifests.swift: Both of these files are generated
   #   by SwiftPM and do not have headers.
   find . -name '*.swift' \
     ! -name 'echo.pb.swift' \
+    ! -name 'annotations.pb.swift' \
+    ! -name 'language_service.pb.swift' \
+    ! -name 'http.pb.swift' \
     ! -name 'LinuxMain.swift' \
     ! -name 'XCTestManifests.swift' \
     ! -path './.build/*' \