From commits-return-44804-archive-asf-public=cust-asf.ponee.io@nifi.apache.org Tue Jun 22 09:11:50 2021 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mxout1-ec2-va.apache.org (mxout1-ec2-va.apache.org [3.227.148.255]) by mx-eu-01.ponee.io (Postfix) with ESMTPS id 50E30180669 for ; Tue, 22 Jun 2021 11:11:50 +0200 (CEST) Received: from mail.apache.org (mailroute1-lw-us.apache.org [207.244.88.153]) by mxout1-ec2-va.apache.org (ASF Mail Server at mxout1-ec2-va.apache.org) with SMTP id 78DA340026 for ; Tue, 22 Jun 2021 09:11:49 +0000 (UTC) Received: (qmail 1771 invoked by uid 500); 22 Jun 2021 09:11:49 -0000 Mailing-List: contact commits-help@nifi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@nifi.apache.org Delivered-To: mailing list commits@nifi.apache.org Received: (qmail 1762 invoked by uid 99); 22 Jun 2021 09:11:49 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Jun 2021 09:11:49 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 1FF9E821E0; Tue, 22 Jun 2021 09:11:49 +0000 (UTC) Date: Tue, 22 Jun 2021 09:11:49 +0000 To: "commits@nifi.apache.org" Subject: [nifi-minifi-cpp] branch main updated: MINIFICPP-1586-`make linter` gives errors when it is run in an unpacked release tarball MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <162435310900.30560.11053542250277937902@gitbox.apache.org> From: aboda@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: nifi-minifi-cpp X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Oldrev: 2ac9d5a9a53502846279d5e801284a01f92b22e6 X-Git-Newrev: f2a0a42c55d5befcf7cf55b692987dbffa9d161b X-Git-Rev: f2a0a42c55d5befcf7cf55b692987dbffa9d161b X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated This is an automated email from the ASF dual-hosted git repository. aboda pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/nifi-minifi-cpp.git The following commit(s) were added to refs/heads/main by this push: new f2a0a42 MINIFICPP-1586-`make linter` gives errors when it is run in an unpacked release tarball f2a0a42 is described below commit f2a0a42c55d5befcf7cf55b692987dbffa9d161b Author: aminadinari19 AuthorDate: Tue Jun 15 11:59:03 2021 +0200 MINIFICPP-1586-`make linter` gives errors when it is run in an unpacked release tarball MINIFICPP-1586-keeping script_dir variable MINIFICPP-1586-Removed '/' from sub-directories MINIFICPP-1586-`make linter` gives errors when it is run in an unpacked released tarball MINIFICPP-1586-new line at the end Signed-off-by: Arpad Boda --- thirdparty/google-styleguide/run_linter.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/thirdparty/google-styleguide/run_linter.py b/thirdparty/google-styleguide/run_linter.py index 1cf03a0..7f7f6fd 100644 --- a/thirdparty/google-styleguide/run_linter.py +++ b/thirdparty/google-styleguide/run_linter.py @@ -2,9 +2,7 @@ import argparse import os import cpplint -script_dir = os.path.dirname(os.path.realpath(__file__)) parser = argparse.ArgumentParser() - parser.add_argument('-i', '--includePaths', nargs="+", help='Run linter check in these directories') parser.add_argument('-q', '--quiet', action='store_true', help='Don\'t print anything if no errors are found.') args = parser.parse_args() @@ -16,7 +14,8 @@ for include_path in args.includePaths: if (".h" in file_name) or (".cpp" in file_name): list_of_files += [os.path.join(dir_path, file_name)] -repository_path = script_dir + "../../" +script_dir = os.path.dirname(os.path.realpath(__file__)) +repository_path = os.path.abspath(os.path.join(script_dir, os.pardir, os.pardir)) arg_list = list() arg_list.append("--linelength=200")