From 5646f0795f2ddf2dfa6ab4b7a187367f4187ba57 Mon Sep 17 00:00:00 2001 From: lgulich Date: Wed, 18 Mar 2020 00:22:57 +0100 Subject: [PATCH] use cpplint --- lib/lg_linter/config/{pylint.rc => .pylintrc} | 0 lib/lg_linter/src/file_linters.py | 2 +- setup.py | 6 +++--- 3 files changed, 4 insertions(+), 4 deletions(-) rename lib/lg_linter/config/{pylint.rc => .pylintrc} (100%) diff --git a/lib/lg_linter/config/pylint.rc b/lib/lg_linter/config/.pylintrc similarity index 100% rename from lib/lg_linter/config/pylint.rc rename to lib/lg_linter/config/.pylintrc diff --git a/lib/lg_linter/src/file_linters.py b/lib/lg_linter/src/file_linters.py index 005bbcb..ad81649 100644 --- a/lib/lg_linter/src/file_linters.py +++ b/lib/lg_linter/src/file_linters.py @@ -5,7 +5,7 @@ def lint_cpp_file(file_path): os.system(f'clang-format -i {file_path}') - completed_process = subprocess.run(['cppcheck', file_path], + completed_process = subprocess.run(['cpplint', file_path], stdout=subprocess.PIPE) if completed_process.returncode is 0: diff --git a/setup.py b/setup.py index 3744b32..b62ff66 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ setuptools.setup( name="lg-linter", - version="0.1.0", + version="v0.1.1-alpha", author="Lionel Gulich", author_email="lgulich@ethz.ch", url="https://github.com/lgulich/lg-linter", @@ -17,7 +17,7 @@ long_description=LONG_DESCRIPTION, long_description_content_type="text/markdown", download_url= - "https://github.com/lgulich/lg-linter/archive/v0.1.0-alpha.tar.gz", + "https://github.com/lgulich/lg-linter/archive/v0.1.1-alpha.tar.gz", install_requires=[ 'gitpython', 'pylint', @@ -36,7 +36,7 @@ include_package_data=True, data_files=[('/' + HOME_PATH, [ os.path.join(CONFIG_PATH, '.clang-format'), - os.path.join(CONFIG_PATH, 'pylint.rc'), + os.path.join(CONFIG_PATH, '.pylintrc'), os.path.join(CONFIG_PATH, 'cpplint.py') ])], scripts=[