1e5c31af7Sopenharmony_ci#!/bin/bash 2e5c31af7Sopenharmony_ci# Copyright 2018 The Amber Authors. 3e5c31af7Sopenharmony_ci# 4e5c31af7Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 5e5c31af7Sopenharmony_ci# you may not use this file except in compliance with the License. 6e5c31af7Sopenharmony_ci# You may obtain a copy of the License at 7e5c31af7Sopenharmony_ci# 8e5c31af7Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 9e5c31af7Sopenharmony_ci# 10e5c31af7Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 11e5c31af7Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 12e5c31af7Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13e5c31af7Sopenharmony_ci# See the License for the specific language governing permissions and 14e5c31af7Sopenharmony_ci# limitations under the License. 15e5c31af7Sopenharmony_ci 16e5c31af7Sopenharmony_ciset -e # fail on error 17e5c31af7Sopenharmony_ci 18e5c31af7Sopenharmony_ciFILTERS=-build/header_guard 19e5c31af7Sopenharmony_ci./third_party/cpplint/cpplint.py --filter "$FILTERS" `find src samples -type f` 20e5c31af7Sopenharmony_ci./third_party/cpplint/cpplint.py --filter "$FILTERS" --root include `find ./include -type f` 21