Fix StepCheckOldCertificate
[platform/core/appfw/wgt-backend.git] / tools / check-coding-style
1 #!/bin/bash
2 # Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 if [ ! `which cpplint.py` ]; then
7    echo -e "\nPlease make sure cpplint.py is in your PATH. It is part of depot_tools inside Chromium repository."
8    exit 1
9 fi
10
11 OLDPWD=$PWD
12 BASE=`dirname $0`
13 cd $BASE/..
14
15 # filters
16 FILTERS="-readability/streams,-build/c++11"
17
18 cpplint.py --root=src --filter="$FILTERS" $(find . \( -name '*.h' -o -name '*.cc' \) )
19 RET=$?
20
21 JS_RET_VAL=$?
22 cd $OLDPWD
23
24 if [ "x$RET" == "x0" ]; then
25   exit 0
26 else
27   exit 1
28 fi