From 4e8b1f9e2d99369060867179adb6cde854e30a57 Mon Sep 17 00:00:00 2001 From: abhishalya Date: Tue, 23 Oct 2018 23:13:31 +0530 Subject: [PATCH] Change C++ to CPP at bears language To have a standard naming convention for language names so that C++ and CPP are treated as same language. Closes https://github.com/coala/coala-bears/issues/2715 --- bears/c_languages/ArtisticStyleBear.py | 2 +- bears/c_languages/CPPCheckBear.py | 2 +- bears/c_languages/CPPCleanBear.py | 2 +- bears/c_languages/CPPLintBear.py | 2 +- bears/c_languages/CSecurityBear.py | 2 +- bears/c_languages/ClangBear.py | 2 +- bears/c_languages/GNUIndentBear.py | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/bears/c_languages/ArtisticStyleBear.py b/bears/c_languages/ArtisticStyleBear.py index 55885a3dc4..fa97fbb16e 100644 --- a/bears/c_languages/ArtisticStyleBear.py +++ b/bears/c_languages/ArtisticStyleBear.py @@ -13,7 +13,7 @@ class ArtisticStyleBear: C# and Java programming languages. """ - LANGUAGES = {'C', 'C++', 'Objective-C', 'C#', 'Java'} + LANGUAGES = {'C', 'CPP', 'Objective-C', 'C#', 'Java'} REQUIREMENTS = { DistributionRequirement( apt_get='astyle', diff --git a/bears/c_languages/CPPCheckBear.py b/bears/c_languages/CPPCheckBear.py index bf49eddbaa..d0db144dd6 100644 --- a/bears/c_languages/CPPCheckBear.py +++ b/bears/c_languages/CPPCheckBear.py @@ -21,7 +21,7 @@ class CPPCheckBear: For more information, consult . """ - LANGUAGES = {'C', 'C++'} + LANGUAGES = {'C', 'CPP'} REQUIREMENTS = {DistributionRequirement('cppcheck')} AUTHORS = {'The coala developers'} AUTHORS_EMAILS = {'coala-devel@googlegroups.com'} diff --git a/bears/c_languages/CPPCleanBear.py b/bears/c_languages/CPPCleanBear.py index 556dc8a35a..8cff4e46a0 100644 --- a/bears/c_languages/CPPCleanBear.py +++ b/bears/c_languages/CPPCleanBear.py @@ -15,7 +15,7 @@ class CPPCleanBear: . """ - LANGUAGES = {'C++'} + LANGUAGES = {'CPP'} REQUIREMENTS = {PipRequirement('cppclean', '0.12.0')} AUTHORS = {'The coala developers'} AUTHORS_EMAILS = {'coala-devel@googlegroups.com'} diff --git a/bears/c_languages/CPPLintBear.py b/bears/c_languages/CPPLintBear.py index 77bfae221a..5e9496e283 100644 --- a/bears/c_languages/CPPLintBear.py +++ b/bears/c_languages/CPPLintBear.py @@ -18,7 +18,7 @@ class CPPLintBear: For more information, consult . """ - LANGUAGES = {'C++'} + LANGUAGES = {'CPP'} REQUIREMENTS = {PipRequirement('cpplint', '1.3')} AUTHORS = {'The coala developers'} AUTHORS_EMAILS = {'coala-devel@googlegroups.com'} diff --git a/bears/c_languages/CSecurityBear.py b/bears/c_languages/CSecurityBear.py index cbcda5a3a0..3233699f15 100644 --- a/bears/c_languages/CSecurityBear.py +++ b/bears/c_languages/CSecurityBear.py @@ -27,7 +27,7 @@ class CSecurityBear: For more information, consult . """ - LANGUAGES = {'C', 'C++'} + LANGUAGES = {'C', 'CPP'} REQUIREMENTS = {DistributionRequirement('flawfinder')} AUTHORS = {'The coala developers'} AUTHORS_EMAILS = {'coala-devel@googlegroups.com'} diff --git a/bears/c_languages/ClangBear.py b/bears/c_languages/ClangBear.py index f42e7efc0c..649907b283 100644 --- a/bears/c_languages/ClangBear.py +++ b/bears/c_languages/ClangBear.py @@ -66,7 +66,7 @@ def sourcerange_from_clang_range(clang_range): class ClangBear(LocalBear): - LANGUAGES = {'C', 'C++', 'Objective-C', 'Objective-C++', 'OpenMP', + LANGUAGES = {'C', 'CPP', 'Objective-C', 'Objective-C++', 'OpenMP', 'OpenCL', 'CUDA'} # Depends on libclang-py3, which is a dependency of coala REQUIREMENTS = {PipRequirement('libclang-py3', '3.4.0')} diff --git a/bears/c_languages/GNUIndentBear.py b/bears/c_languages/GNUIndentBear.py index e02d7c6615..35e8df8fc7 100644 --- a/bears/c_languages/GNUIndentBear.py +++ b/bears/c_languages/GNUIndentBear.py @@ -21,7 +21,7 @@ class GNUIndentBear: C++ support is considered experimental. """ - LANGUAGES = {'C', 'C++'} + LANGUAGES = {'C', 'CPP'} REQUIREMENTS = {DistributionRequirement('indent')} AUTHORS = {'The coala developers'} AUTHORS_EMAILS = {'coala-devel@googlegroups.com'}