From 224936f4c9d99d1c7a75dcd8889b78787bb03c21 Mon Sep 17 00:00:00 2001 From: "adrian.zatreanu" Date: Tue, 14 Jun 2016 21:21:30 +0300 Subject: [PATCH] bears: Change LANGUAGES to set accordingly --- bears/c_languages/CPPCheckBear.py | 2 +- bears/c_languages/CPPCleanBear.py | 2 +- bears/c_languages/CPPLintBear.py | 2 +- bears/c_languages/CSharpLintBear.py | 2 +- bears/c_languages/ClangBear.py | 4 ++-- bears/c_languages/GNUIndentBear.py | 2 +- bears/cmake/CMakeLintBear.py | 2 +- bears/coffee_script/CoffeeLintBear.py | 2 +- bears/configfiles/DockerfileLintBear.py | 2 +- bears/css/CSSAutoPrefixBear.py | 2 +- bears/css/CSSLintBear.py | 2 +- bears/dart/DartLintBear.py | 2 +- bears/general/CPDBear.py | 2 +- bears/general/FilenameBear.py | 2 +- bears/general/InvalidLinkBear.py | 2 +- bears/general/KeywordBear.py | 2 +- bears/general/LineCountBear.py | 2 +- bears/general/LineLengthBear.py | 2 +- bears/general/SpaceConsistencyBear.py | 2 +- bears/go/GoErrCheckBear.py | 2 +- bears/go/GoImportsBear.py | 2 +- bears/go/GoLintBear.py | 2 +- bears/go/GoReturnsBear.py | 2 +- bears/go/GoTypeBear.py | 2 +- bears/go/GoVetBear.py | 2 +- bears/go/GofmtBear.py | 2 +- bears/haskell/HaskellLintBear.py | 2 +- bears/hypertext/BootLintBear.py | 2 +- bears/hypertext/HTMLLintBear.py | 2 +- bears/java/CheckstyleBear.py | 2 +- bears/java/InferBear.py | 2 +- bears/java/JavaPMDBear.py | 2 +- bears/js/ESLintBear.py | 2 +- bears/js/JSComplexityBear.py | 2 +- bears/js/JSHintBear.py | 2 +- bears/js/JSONFormatBear.py | 2 +- bears/julia/JuliaLintBear.py | 2 +- bears/latex/LatexLintBear.py | 2 +- bears/lua/LuaLintBear.py | 2 +- bears/markdown/MarkdownBear.py | 2 +- bears/matlab/MatlabIndentationBear.py | 2 +- bears/natural_language/AlexBear.py | 2 +- bears/natural_language/LanguageToolBear.py | 2 +- bears/natural_language/ProseLintBear.py | 2 +- bears/perl/PerlCriticBear.py | 2 +- bears/php/PHPLintBear.py | 2 +- bears/python/PEP8Bear.py | 2 +- bears/python/PyCommentedCodeBear.py | 2 +- bears/python/PyDocStyleBear.py | 2 +- bears/python/PyImportSortBear.py | 2 +- bears/python/PyLintBear.py | 2 +- bears/python/PyUnusedCodeBear.py | 2 +- bears/python/RadonBear.py | 2 +- bears/r/FormatRBear.py | 2 +- bears/r/RLintBear.py | 2 +- bears/rest/reSTLintBear.py | 2 +- bears/ruby/RuboCopBear.py | 2 +- bears/ruby/RubySmellBear.py | 2 +- bears/ruby/RubySyntaxBear.py | 2 +- bears/scala/ScalaLintBear.py | 2 +- bears/scss/SCSSLintBear.py | 2 +- bears/shell/ShellCheckBear.py | 2 +- bears/sql/SQLintBear.py | 2 +- bears/swift/TailorBear.py | 2 +- bears/typescript/TSLintBear.py | 2 +- bears/vcs/git/GitCommitBear.py | 2 +- bears/verilog/VerilogLintBear.py | 2 +- bears/vhdl/VHDLLintBear.py | 2 +- bears/vimscript/VintBear.py | 2 +- bears/xml/XMLBear.py | 2 +- bears/yml/RAMLLintBear.py | 2 +- bears/yml/YAMLLintBear.py | 2 +- 72 files changed, 73 insertions(+), 73 deletions(-) diff --git a/bears/c_languages/CPPCheckBear.py b/bears/c_languages/CPPCheckBear.py index 46fb776f6f..6f5c38cad2 100644 --- a/bears/c_languages/CPPCheckBear.py +++ b/bears/c_languages/CPPCheckBear.py @@ -18,7 +18,7 @@ class CPPCheckBear: For more information, consult . """ - LANGUAGES = "C", "C++" + LANGUAGES = {"C", "C++"} @staticmethod def create_arguments(filename, file, config_file, diff --git a/bears/c_languages/CPPCleanBear.py b/bears/c_languages/CPPCleanBear.py index 3bd065af93..487f726548 100644 --- a/bears/c_languages/CPPCleanBear.py +++ b/bears/c_languages/CPPCleanBear.py @@ -13,7 +13,7 @@ class CPPCleanBear: . """ - LANGUAGES = "C++" + LANGUAGES = {"C++"} @staticmethod def create_arguments(filename, file, config_file): diff --git a/bears/c_languages/CPPLintBear.py b/bears/c_languages/CPPLintBear.py index c74ae5f90e..c920f14445 100644 --- a/bears/c_languages/CPPLintBear.py +++ b/bears/c_languages/CPPLintBear.py @@ -14,7 +14,7 @@ class CPPLintBear: For more information, consult . """ - LANGUAGES = "C++" + LANGUAGES = {"C++"} @staticmethod def create_arguments(filename, file, config_file, diff --git a/bears/c_languages/CSharpLintBear.py b/bears/c_languages/CSharpLintBear.py index fe7bf34c3d..f4d88447e5 100644 --- a/bears/c_languages/CSharpLintBear.py +++ b/bears/c_languages/CSharpLintBear.py @@ -12,7 +12,7 @@ class CSharpLintBear: Checks C# code for syntactical correctness using the ``mcs`` compiler. """ - LANGUAGES = "C#" + LANGUAGES = {"C#"} @staticmethod def create_arguments(filename, file, config_file): diff --git a/bears/c_languages/ClangBear.py b/bears/c_languages/ClangBear.py index d98d84d772..e60e62f299 100644 --- a/bears/c_languages/ClangBear.py +++ b/bears/c_languages/ClangBear.py @@ -22,8 +22,8 @@ def clang_available(cls): class ClangBear(LocalBear): - LANGUAGES = ("C", "C++", "Objective-C", "Objective-C++", "OpenMP", - "OpenCL", "CUDA") + LANGUAGES = {"C", "C++", "Objective-C", "Objective-C++", "OpenMP", + "OpenCL", "CUDA"} check_prerequisites = classmethod(clang_available) diff --git a/bears/c_languages/GNUIndentBear.py b/bears/c_languages/GNUIndentBear.py index 79874bae36..f92d892dc9 100644 --- a/bears/c_languages/GNUIndentBear.py +++ b/bears/c_languages/GNUIndentBear.py @@ -17,7 +17,7 @@ class GNUIndentBear: C++ support is considered experimental. """ - LANGUAGES = ("C", "C++") + LANGUAGES = {"C", "C++"} @staticmethod def create_arguments(filename, file, config_file, diff --git a/bears/cmake/CMakeLintBear.py b/bears/cmake/CMakeLintBear.py index d1a885791e..45331eee22 100644 --- a/bears/cmake/CMakeLintBear.py +++ b/bears/cmake/CMakeLintBear.py @@ -9,7 +9,7 @@ class CMakeLintBear: """ Checks the code with ``cmakelint``. """ - LANGUAGES = 'CMake' + LANGUAGES = {'CMake'} @staticmethod def create_arguments(filename, file, config_file, diff --git a/bears/coffee_script/CoffeeLintBear.py b/bears/coffee_script/CoffeeLintBear.py index 2eda5127aa..beca4059cf 100644 --- a/bears/coffee_script/CoffeeLintBear.py +++ b/bears/coffee_script/CoffeeLintBear.py @@ -13,7 +13,7 @@ class CoffeeLintBear: For more information about coffeelint, visit . """ - LANGUAGES = "CoffeeScript" + LANGUAGES = {"CoffeeScript"} severity_map = {'warn': RESULT_SEVERITY.NORMAL, 'error': RESULT_SEVERITY.MAJOR} diff --git a/bears/configfiles/DockerfileLintBear.py b/bears/configfiles/DockerfileLintBear.py index c54f798584..f5dc4bee17 100644 --- a/bears/configfiles/DockerfileLintBear.py +++ b/bears/configfiles/DockerfileLintBear.py @@ -15,7 +15,7 @@ class DockerfileLintBear: See for more information . """ - LANGUAGES = "Dockerfile" + LANGUAGES = {"Dockerfile"} severity_map = { "error": RESULT_SEVERITY.MAJOR, diff --git a/bears/css/CSSAutoPrefixBear.py b/bears/css/CSSAutoPrefixBear.py index e34e9c63c4..cdc22a206a 100644 --- a/bears/css/CSSAutoPrefixBear.py +++ b/bears/css/CSSAutoPrefixBear.py @@ -10,7 +10,7 @@ class CSSAutoPrefixBear: """ This bear adds vendor prefixes to CSS rules using ``autoprefixer`` utility. """ - LANGUAGES = "CSS" + LANGUAGES = {"CSS"} @staticmethod def create_arguments(filename, file, config_file): diff --git a/bears/css/CSSLintBear.py b/bears/css/CSSLintBear.py index ec7e95d5c5..b09beb6bf1 100644 --- a/bears/css/CSSLintBear.py +++ b/bears/css/CSSLintBear.py @@ -11,7 +11,7 @@ class CSSLintBear: Check code for syntactical or semantical problems that might lead to problems or inefficiencies. """ - LANGUAGES = "CSS" + LANGUAGES = {"CSS"} @staticmethod def create_arguments(filename, file, config_file): diff --git a/bears/dart/DartLintBear.py b/bears/dart/DartLintBear.py index 1407c4da6b..012670abf9 100644 --- a/bears/dart/DartLintBear.py +++ b/bears/dart/DartLintBear.py @@ -12,7 +12,7 @@ class DartLintBear: This bear expects dart commands to be on your ``PATH``. Please ensure /path/to/dart-sdk/bin is in your ``PATH``. """ - LANGUAGES = "Dart" + LANGUAGES = {"Dart"} @staticmethod def create_arguments(filename, file, config_file): diff --git a/bears/general/CPDBear.py b/bears/general/CPDBear.py index d9b5d46c90..33689b556d 100644 --- a/bears/general/CPDBear.py +++ b/bears/general/CPDBear.py @@ -31,7 +31,7 @@ class CPDBear(GlobalBear): lowered_lang_dict = {key.lower(): value for key, value in language_dict.items()} - LANGUAGES = tuple(language_dict.keys()) + LANGUAGES = set(language_dict.keys()) @classmethod def check_prerequisites(cls): # pragma: no cover diff --git a/bears/general/FilenameBear.py b/bears/general/FilenameBear.py index 384a34f60e..29d1aad99c 100644 --- a/bears/general/FilenameBear.py +++ b/bears/general/FilenameBear.py @@ -8,7 +8,7 @@ class FilenameBear(LocalBear): - LANGUAGES = "All" + LANGUAGES = {"All"} _naming_convention = {"camel": to_camelcase, "pascal": to_pascalcase, diff --git a/bears/general/InvalidLinkBear.py b/bears/general/InvalidLinkBear.py index 8f76c374eb..d494fb4528 100644 --- a/bears/general/InvalidLinkBear.py +++ b/bears/general/InvalidLinkBear.py @@ -11,7 +11,7 @@ class InvalidLinkBear(LocalBear): DEFAULT_TIMEOUT = 2 - LANGUAGES = "All" + LANGUAGES = {"All"} # IP Address of www.google.com check_connection_url = "http://216.58.218.174" diff --git a/bears/general/KeywordBear.py b/bears/general/KeywordBear.py index f23875ea43..1ea08acee7 100644 --- a/bears/general/KeywordBear.py +++ b/bears/general/KeywordBear.py @@ -3,7 +3,7 @@ class KeywordBear(LocalBear): - LANGUAGES = "All" + LANGUAGES = {"All"} def run(self, filename, diff --git a/bears/general/LineCountBear.py b/bears/general/LineCountBear.py index 0480d04146..fdccd090f9 100644 --- a/bears/general/LineCountBear.py +++ b/bears/general/LineCountBear.py @@ -4,7 +4,7 @@ class LineCountBear(LocalBear): - LANGUAGES = "All" + LANGUAGES = {"All"} def run(self, filename, file, max_lines_per_file: int): """ diff --git a/bears/general/LineLengthBear.py b/bears/general/LineLengthBear.py index 2d4259980f..6e66b1ac41 100644 --- a/bears/general/LineLengthBear.py +++ b/bears/general/LineLengthBear.py @@ -7,7 +7,7 @@ class LineLengthBear(LocalBear): - LANGUAGES = "All" + LANGUAGES = {"All"} def run(self, filename, diff --git a/bears/general/SpaceConsistencyBear.py b/bears/general/SpaceConsistencyBear.py index ecbcd7cbb1..a787ee5b86 100644 --- a/bears/general/SpaceConsistencyBear.py +++ b/bears/general/SpaceConsistencyBear.py @@ -5,7 +5,7 @@ class SpaceConsistencyBear(LocalBear): - LANGUAGES = "All" + LANGUAGES = {"All"} def run(self, filename, diff --git a/bears/go/GoErrCheckBear.py b/bears/go/GoErrCheckBear.py index 0f00be9e8a..8b17e6f690 100644 --- a/bears/go/GoErrCheckBear.py +++ b/bears/go/GoErrCheckBear.py @@ -15,7 +15,7 @@ class GoErrCheckBear: For more information on the analysis visit . """ - LANGUAGES = "Go" + LANGUAGES = {"Go"} @staticmethod def create_arguments(filename, file, config_file, diff --git a/bears/go/GoImportsBear.py b/bears/go/GoImportsBear.py index 735fc10a71..335bd4ba47 100644 --- a/bears/go/GoImportsBear.py +++ b/bears/go/GoImportsBear.py @@ -9,7 +9,7 @@ class GoImportsBear: """ Adds/Removes imports to Go code for missing imports. """ - LANGUAGES = "Go" + LANGUAGES = {"Go"} @staticmethod def create_arguments(filename, file, config_file): diff --git a/bears/go/GoLintBear.py b/bears/go/GoLintBear.py index 720db71e04..5421044bc9 100644 --- a/bears/go/GoLintBear.py +++ b/bears/go/GoLintBear.py @@ -11,7 +11,7 @@ class GoLintBear: Checks the code using ``golint``. This will run golint over each file separately. """ - LANGUAGES = "Go" + LANGUAGES = {"Go"} @staticmethod def create_arguments(filename, file, config_file, diff --git a/bears/go/GoReturnsBear.py b/bears/go/GoReturnsBear.py index dcdb0e6a78..b021e5d665 100644 --- a/bears/go/GoReturnsBear.py +++ b/bears/go/GoReturnsBear.py @@ -9,7 +9,7 @@ class GoReturnsBear: """ Proposes corrections of Go code using ``goreturns``. """ - LANGUAGES = "Go" + LANGUAGES = {"Go"} @staticmethod def create_arguments(filename, file, config_file): diff --git a/bears/go/GoTypeBear.py b/bears/go/GoTypeBear.py index fba2b9ce5e..327ad3d92c 100644 --- a/bears/go/GoTypeBear.py +++ b/bears/go/GoTypeBear.py @@ -11,7 +11,7 @@ class GoTypeBear: Checks the code using ``gotype``. This will run ``gotype`` over each file separately. """ - LANGUAGES = "Go" + LANGUAGES = {"Go"} @staticmethod def create_arguments(filename, file, config_file): diff --git a/bears/go/GoVetBear.py b/bears/go/GoVetBear.py index 09bfb3ae43..f35c937bfc 100644 --- a/bears/go/GoVetBear.py +++ b/bears/go/GoVetBear.py @@ -16,7 +16,7 @@ class GoVetBear: This is done using the ``vet`` command. For more information visit . """ - LANGUAGES = "Go" + LANGUAGES = {"Go"} @staticmethod def create_arguments(filename, file, config_file): diff --git a/bears/go/GofmtBear.py b/bears/go/GofmtBear.py index ffed9dfb6e..c77bd8c531 100644 --- a/bears/go/GofmtBear.py +++ b/bears/go/GofmtBear.py @@ -13,7 +13,7 @@ class GofmtBear: This is done using the ``gofmt`` utility. For more information visit . """ - LANGUAGES = "Go" + LANGUAGES = {"Go"} @staticmethod def create_arguments(filename, file, config_file): diff --git a/bears/haskell/HaskellLintBear.py b/bears/haskell/HaskellLintBear.py index b77d0f7e4e..6a069c4cd0 100644 --- a/bears/haskell/HaskellLintBear.py +++ b/bears/haskell/HaskellLintBear.py @@ -16,7 +16,7 @@ class HaskellLintBear: information. """ - LANGUAGES = "Haskell" + LANGUAGES = {"Haskell"} severity_map = {"Error": RESULT_SEVERITY.MAJOR, "Warning": RESULT_SEVERITY.NORMAL, diff --git a/bears/hypertext/BootLintBear.py b/bears/hypertext/BootLintBear.py index ea1d21c797..bece04376d 100644 --- a/bears/hypertext/BootLintBear.py +++ b/bears/hypertext/BootLintBear.py @@ -17,7 +17,7 @@ class BootLintBear: For more about the analysis, check Bootlint . """ - LANGUAGES = "HTML" + LANGUAGES = {"HTML"} @staticmethod def create_arguments(filename, file, config_file, diff --git a/bears/hypertext/HTMLLintBear.py b/bears/hypertext/HTMLLintBear.py index 20c3eebf50..41322312f6 100644 --- a/bears/hypertext/HTMLLintBear.py +++ b/bears/hypertext/HTMLLintBear.py @@ -18,7 +18,7 @@ class HTMLLintBear: _html_lint = which('html_lint.py') - LANGUAGES = "HTML" + LANGUAGES = {"HTML"} @staticmethod def create_arguments(filename, file, config_file, diff --git a/bears/java/CheckstyleBear.py b/bears/java/CheckstyleBear.py index 76450209eb..949a4fcf0f 100644 --- a/bears/java/CheckstyleBear.py +++ b/bears/java/CheckstyleBear.py @@ -30,7 +30,7 @@ class CheckstyleBear: . """ - LANGUAGES = "Java" + LANGUAGES = {"Java"} def setup_dependencies(self): type(self).checkstyle_jar_file = self.download_cached_file( diff --git a/bears/java/InferBear.py b/bears/java/InferBear.py index 8c3f2c6088..0e3a9ebc89 100644 --- a/bears/java/InferBear.py +++ b/bears/java/InferBear.py @@ -16,7 +16,7 @@ class InferBear(LocalBear, Lint): severity_map = { "error": RESULT_SEVERITY.MAJOR, "warning": RESULT_SEVERITY.NORMAL} - LANGUAGES = "Java" + LANGUAGES = {"Java"} def run(self, filename, file): ''' diff --git a/bears/java/JavaPMDBear.py b/bears/java/JavaPMDBear.py index 293b156f9d..2fcc882f64 100644 --- a/bears/java/JavaPMDBear.py +++ b/bears/java/JavaPMDBear.py @@ -14,7 +14,7 @@ class JavaPMDBear: . """ - LANGUAGES = "Java" + LANGUAGES = {"Java"} @classmethod def check_prerequisites(cls): # pragma: no cover diff --git a/bears/js/ESLintBear.py b/bears/js/ESLintBear.py index 38d32ef974..6bdbc76930 100644 --- a/bears/js/ESLintBear.py +++ b/bears/js/ESLintBear.py @@ -15,7 +15,7 @@ class ESLintBear: Find out more at . """ - LANGUAGES = ("JavaScript", "JSX") + LANGUAGES = {"JavaScript", "JSX"} severity_map = {2: RESULT_SEVERITY.MAJOR, 1: RESULT_SEVERITY.NORMAL, diff --git a/bears/js/JSComplexityBear.py b/bears/js/JSComplexityBear.py index 4e1cbe153f..a8589f2a0a 100644 --- a/bears/js/JSComplexityBear.py +++ b/bears/js/JSComplexityBear.py @@ -9,7 +9,7 @@ class JSComplexityBear: """ Calculates cyclomatic complexity using ``cr``. """ - LANGUAGES = "JavaScript" + LANGUAGES = {"JavaScript"} @staticmethod def create_arguments(filename, file, config_file): diff --git a/bears/js/JSHintBear.py b/bears/js/JSHintBear.py index e25057ac00..1b269fd2c2 100644 --- a/bears/js/JSHintBear.py +++ b/bears/js/JSHintBear.py @@ -31,7 +31,7 @@ class JSHintBear: For more information on the analysis visit """ - LANGUAGES = "JavaScript" + LANGUAGES = {"JavaScript"} @staticmethod def generate_config(filename, file, diff --git a/bears/js/JSONFormatBear.py b/bears/js/JSONFormatBear.py index bc34b24dd8..02ccf50025 100644 --- a/bears/js/JSONFormatBear.py +++ b/bears/js/JSONFormatBear.py @@ -13,7 +13,7 @@ class JSONFormatBear(LocalBear): except AttributeError: DecodeError = ValueError - LANGUAGES = "JSON" + LANGUAGES = {"JSON"} def run(self, filename, file, json_sort: bool=False, diff --git a/bears/julia/JuliaLintBear.py b/bears/julia/JuliaLintBear.py index 070f13b574..cb7b8d215e 100644 --- a/bears/julia/JuliaLintBear.py +++ b/bears/julia/JuliaLintBear.py @@ -23,7 +23,7 @@ class JuliaLintBear: See for more information on the analysis provided. """ - LANGUAGES = "Julia" + LANGUAGES = {"Julia"} @staticmethod def create_arguments(filename, file, config_file): diff --git a/bears/latex/LatexLintBear.py b/bears/latex/LatexLintBear.py index 4c18e49f48..0b69214f6e 100644 --- a/bears/latex/LatexLintBear.py +++ b/bears/latex/LatexLintBear.py @@ -9,7 +9,7 @@ class LatexLintBear: """ Checks the code with ``chktex``. """ - LANGUAGES = "Tex" + LANGUAGES = {"Tex"} @staticmethod def create_arguments(filename, file, config_file): diff --git a/bears/lua/LuaLintBear.py b/bears/lua/LuaLintBear.py index fc4b991835..796252124a 100644 --- a/bears/lua/LuaLintBear.py +++ b/bears/lua/LuaLintBear.py @@ -14,7 +14,7 @@ class LuaLintBear: Read more at . """ - LANGUAGES = "Lua" + LANGUAGES = {"Lua"} @staticmethod def create_arguments(filename, file, config_file): diff --git a/bears/markdown/MarkdownBear.py b/bears/markdown/MarkdownBear.py index 89b62a2484..8bda2e5f5d 100644 --- a/bears/markdown/MarkdownBear.py +++ b/bears/markdown/MarkdownBear.py @@ -15,7 +15,7 @@ class MarkdownBear: below. """ - LANGUAGES = "Markdown" + LANGUAGES = {"Markdown"} @staticmethod def create_arguments(filename, file, config_file, diff --git a/bears/matlab/MatlabIndentationBear.py b/bears/matlab/MatlabIndentationBear.py index c8aa879c6b..7e031800a9 100644 --- a/bears/matlab/MatlabIndentationBear.py +++ b/bears/matlab/MatlabIndentationBear.py @@ -7,7 +7,7 @@ class MatlabIndentationBear(LocalBear): - LANGUAGES = ("Matlab", "Octave") + LANGUAGES = {"Matlab", "Octave"} def run(self, filename, file, tab_width: int=2): """ diff --git a/bears/natural_language/AlexBear.py b/bears/natural_language/AlexBear.py index bbeedb9973..3884eec8fd 100644 --- a/bears/natural_language/AlexBear.py +++ b/bears/natural_language/AlexBear.py @@ -11,7 +11,7 @@ class AlexBear(LocalBear, Lint): r'(?P\d+):(?P\d+)' r'\s+(?:(?Pwarning))\s+(?P.+)') arguments = "{filename}" - LANGUAGES = "Natural Language" + LANGUAGES = {"Natural Language"} def run(self, filename, file): ''' diff --git a/bears/natural_language/LanguageToolBear.py b/bears/natural_language/LanguageToolBear.py index 23c6b882dd..712e5e0cc8 100644 --- a/bears/natural_language/LanguageToolBear.py +++ b/bears/natural_language/LanguageToolBear.py @@ -11,7 +11,7 @@ class LanguageToolBear(LocalBear): - LANGUAGES = "Natural Language" + LANGUAGES = {"Natural Language"} @classmethod def check_prerequisites(cls): diff --git a/bears/natural_language/ProseLintBear.py b/bears/natural_language/ProseLintBear.py index c62031061c..95683f5bf8 100644 --- a/bears/natural_language/ProseLintBear.py +++ b/bears/natural_language/ProseLintBear.py @@ -8,7 +8,7 @@ class ProseLintBear: """ Lints the file using ``proselint``. """ - LANGUAGES = "Natural Language" + LANGUAGES = {"Natural Language"} @staticmethod def create_arguments(filename, file, config_file): diff --git a/bears/perl/PerlCriticBear.py b/bears/perl/PerlCriticBear.py index bea656e434..da9a839a86 100644 --- a/bears/perl/PerlCriticBear.py +++ b/bears/perl/PerlCriticBear.py @@ -24,7 +24,7 @@ class PerlCriticBear: each of the files seperately. """ - LANGUAGES = "Perl" + LANGUAGES = {"Perl"} @staticmethod def create_arguments(filename, file, config_file, diff --git a/bears/php/PHPLintBear.py b/bears/php/PHPLintBear.py index c8e9988680..87109547a2 100644 --- a/bears/php/PHPLintBear.py +++ b/bears/php/PHPLintBear.py @@ -12,7 +12,7 @@ class PHPLintBear: """ Checks the code with ``php -l``. This runs it on each file separately. """ - LANGUAGES = "PHP" + LANGUAGES = {"PHP"} @staticmethod def create_arguments(filename, file, config_file): diff --git a/bears/python/PEP8Bear.py b/bears/python/PEP8Bear.py index 5ae256f587..616b17b0e4 100644 --- a/bears/python/PEP8Bear.py +++ b/bears/python/PEP8Bear.py @@ -8,7 +8,7 @@ class PEP8Bear(LocalBear): - LANGUAGES = ("Python", "Python 2", "Python 3") + LANGUAGES = {"Python", "Python 2", "Python 3"} def run(self, filename, file, max_line_length: int=80, diff --git a/bears/python/PyCommentedCodeBear.py b/bears/python/PyCommentedCodeBear.py index fa54d2759c..7faf84d23f 100644 --- a/bears/python/PyCommentedCodeBear.py +++ b/bears/python/PyCommentedCodeBear.py @@ -6,7 +6,7 @@ class PyCommentedCodeBear(LocalBear): - LANGUAGES = ("Python", "Python 2", "Python 3") + LANGUAGES = {"Python", "Python 2", "Python 3"} def run(self, filename, file): """ diff --git a/bears/python/PyDocStyleBear.py b/bears/python/PyDocStyleBear.py index 9450fd9734..500b59e34b 100644 --- a/bears/python/PyDocStyleBear.py +++ b/bears/python/PyDocStyleBear.py @@ -7,7 +7,7 @@ class PyDocStyleBear(LocalBear, Lint): executable = 'pydocstyle' output_regex = r'(.*\.py):(?P\d+) (.+):\n\s+(?P.*)' use_stderr = True - LANGUAGES = ("Python", "Python 2", "Python 3") + LANGUAGES = {"Python", "Python 2", "Python 3"} def run(self, filename, diff --git a/bears/python/PyImportSortBear.py b/bears/python/PyImportSortBear.py index 45ea25adc2..e19ff29c36 100644 --- a/bears/python/PyImportSortBear.py +++ b/bears/python/PyImportSortBear.py @@ -9,7 +9,7 @@ class PyImportSortBear(LocalBear): - LANGUAGES = ("Python", "Python 3", "Python 2") + LANGUAGES = {"Python", "Python 3", "Python 2"} def run(self, filename, file, use_parentheses_in_import: bool=True, diff --git a/bears/python/PyLintBear.py b/bears/python/PyLintBear.py index f4fb7d6a94..0a6e76b472 100644 --- a/bears/python/PyLintBear.py +++ b/bears/python/PyLintBear.py @@ -21,7 +21,7 @@ class PyLintBear: Checks the code with pylint. This will run pylint over each file separately. """ - LANGUAGES = ("Python", "Python 2", "Python 3") + LANGUAGES = {"Python", "Python 2", "Python 3"} @staticmethod def create_arguments(filename, file, config_file, diff --git a/bears/python/PyUnusedCodeBear.py b/bears/python/PyUnusedCodeBear.py index 098a5e51e1..1baa5536f8 100644 --- a/bears/python/PyUnusedCodeBear.py +++ b/bears/python/PyUnusedCodeBear.py @@ -6,7 +6,7 @@ class PyUnusedCodeBear(LocalBear): - LANGUAGES = ("Python", "Python 2", "Python 3") + LANGUAGES = {"Python", "Python 2", "Python 3"} def run(self, filename, file): """ diff --git a/bears/python/RadonBear.py b/bears/python/RadonBear.py index 6669356d39..73626e4929 100644 --- a/bears/python/RadonBear.py +++ b/bears/python/RadonBear.py @@ -9,7 +9,7 @@ class RadonBear(LocalBear): - LANGUAGES = ("Python", "Python 2", "Python 3") + LANGUAGES = {"Python", "Python 2", "Python 3"} def run(self, filename, file, radon_ranks_info: typed_list(str)=(), diff --git a/bears/r/FormatRBear.py b/bears/r/FormatRBear.py index ced535fb30..696cc12056 100644 --- a/bears/r/FormatRBear.py +++ b/bears/r/FormatRBear.py @@ -16,7 +16,7 @@ class FormatRBear: """ Check and correct formatting of R Code using known formatR utility. """ - LANGUAGES = "R" + LANGUAGES = {"R"} @staticmethod def create_arguments(filename, file, config_file, diff --git a/bears/r/RLintBear.py b/bears/r/RLintBear.py index 6a97a8686f..fa708202a2 100644 --- a/bears/r/RLintBear.py +++ b/bears/r/RLintBear.py @@ -15,7 +15,7 @@ class RLintBear(LocalBear, Lint): "style": RESULT_SEVERITY.NORMAL, "warning": RESULT_SEVERITY.NORMAL, "error": RESULT_SEVERITY.MAJOR} - LANGUAGES = "R" + LANGUAGES = {"R"} prerequisite_command = ["Rscript", "-e", "library(lintr)"] prerequisite_fail_msg = 'R library "lintr" is not installed.' diff --git a/bears/rest/reSTLintBear.py b/bears/rest/reSTLintBear.py index 8319fe6455..a07456011e 100644 --- a/bears/rest/reSTLintBear.py +++ b/bears/rest/reSTLintBear.py @@ -6,7 +6,7 @@ class reSTLintBear(LocalBear): - LANGUAGES = "reStructuredText" + LANGUAGES = {"reStructuredText"} def run(self, filename, file): """ diff --git a/bears/ruby/RuboCopBear.py b/bears/ruby/RuboCopBear.py index 7a6d2c2095..f2ec29b189 100644 --- a/bears/ruby/RuboCopBear.py +++ b/bears/ruby/RuboCopBear.py @@ -15,7 +15,7 @@ class RuboCopBear: See for more information. """ - LANGUAGES = "Ruby" + LANGUAGES = {"Ruby"} severity_map = {"error": RESULT_SEVERITY.MAJOR, "warning": RESULT_SEVERITY.NORMAL, diff --git a/bears/ruby/RubySmellBear.py b/bears/ruby/RubySmellBear.py index 6909a631f9..b3c5c952ae 100644 --- a/bears/ruby/RubySmellBear.py +++ b/bears/ruby/RubySmellBear.py @@ -14,7 +14,7 @@ class RubySmellBear: . """ - LANGUAGES = "Ruby" + LANGUAGES = {"Ruby"} @staticmethod def create_arguments(filename, file, config_file): diff --git a/bears/ruby/RubySyntaxBear.py b/bears/ruby/RubySyntaxBear.py index 0ad07240b9..439d806f89 100644 --- a/bears/ruby/RubySyntaxBear.py +++ b/bears/ruby/RubySyntaxBear.py @@ -12,7 +12,7 @@ class RubySyntaxBear: """ Checks the code with ``ruby -wc`` on each file separately. """ - LANGUAGES = "Ruby" + LANGUAGES = {"Ruby"} @staticmethod def create_arguments(filename, file, config_file): diff --git a/bears/scala/ScalaLintBear.py b/bears/scala/ScalaLintBear.py index a2c804428d..d64d009e4c 100644 --- a/bears/scala/ScalaLintBear.py +++ b/bears/scala/ScalaLintBear.py @@ -17,7 +17,7 @@ class ScalaLintBear: e.g. cyclomatic complexity. """ - LANGUAGES = "Scala" + LANGUAGES = {"Scala"} def setup_dependencies(self): type(self).jar = self.download_cached_file( diff --git a/bears/scss/SCSSLintBear.py b/bears/scss/SCSSLintBear.py index e8dee3911b..783b9c0c0c 100644 --- a/bears/scss/SCSSLintBear.py +++ b/bears/scss/SCSSLintBear.py @@ -11,7 +11,7 @@ class SCSSLintBear: More information is available at . """ - LANGUAGES = "SCSS" + LANGUAGES = {"SCSS"} @staticmethod def create_arguments(filename, file, config_file): diff --git a/bears/shell/ShellCheckBear.py b/bears/shell/ShellCheckBear.py index c2c2a0452b..6b32733b38 100644 --- a/bears/shell/ShellCheckBear.py +++ b/bears/shell/ShellCheckBear.py @@ -13,7 +13,7 @@ class ShellCheckBear: . """ - LANGUAGES = ("sh", "bash", "ksh", "dash") + LANGUAGES = {"sh", "bash", "ksh", "dash"} @staticmethod def create_arguments(filename, file, config_file, shell: str='sh'): diff --git a/bears/sql/SQLintBear.py b/bears/sql/SQLintBear.py index 2105603703..e3944719bb 100644 --- a/bears/sql/SQLintBear.py +++ b/bears/sql/SQLintBear.py @@ -12,7 +12,7 @@ class SQLintBear: for more detailed information. """ - LANGUAGES = "SQL" + LANGUAGES = {"SQL"} @staticmethod def create_arguments(filename, file, config_file): diff --git a/bears/swift/TailorBear.py b/bears/swift/TailorBear.py index 1b8b067ed5..c5e649a8ec 100644 --- a/bears/swift/TailorBear.py +++ b/bears/swift/TailorBear.py @@ -18,7 +18,7 @@ class TailorBear: For more information on the analysis visit """ - LANGUAGES = "Swift" + LANGUAGES = {"Swift"} severity_map = {"warning": RESULT_SEVERITY.NORMAL, "error": RESULT_SEVERITY.MAJOR} diff --git a/bears/typescript/TSLintBear.py b/bears/typescript/TSLintBear.py index 1c8ba4d1de..42a38840ae 100644 --- a/bears/typescript/TSLintBear.py +++ b/bears/typescript/TSLintBear.py @@ -15,7 +15,7 @@ class TSLintBear: . """ - LANGUAGES = "TypeScript" + LANGUAGES = {"TypeScript"} @staticmethod def create_arguments(filename, file, config_file, diff --git a/bears/vcs/git/GitCommitBear.py b/bears/vcs/git/GitCommitBear.py index 3f1c80ae07..6e465c024a 100644 --- a/bears/vcs/git/GitCommitBear.py +++ b/bears/vcs/git/GitCommitBear.py @@ -12,7 +12,7 @@ class GitCommitBear(GlobalBear): - LANGUAGES = "Git" + LANGUAGES = {"Git"} @classmethod def check_prerequisites(cls): diff --git a/bears/verilog/VerilogLintBear.py b/bears/verilog/VerilogLintBear.py index 57718ed5a6..f5ddff50fd 100644 --- a/bears/verilog/VerilogLintBear.py +++ b/bears/verilog/VerilogLintBear.py @@ -20,7 +20,7 @@ class VerilogLintBear: This is done using the ``--lint-only`` command. For more information visit . """ - LANGUAGES = "Verilog" + LANGUAGES = {"Verilog"} @staticmethod def create_arguments(filename, file, config_file): diff --git a/bears/vhdl/VHDLLintBear.py b/bears/vhdl/VHDLLintBear.py index b965c2f1ab..92d1a59bf1 100644 --- a/bears/vhdl/VHDLLintBear.py +++ b/bears/vhdl/VHDLLintBear.py @@ -29,7 +29,7 @@ class VHDLLintBear: information. """ - LANGUAGES = "VHDL" + LANGUAGES = {"VHDL"} @classmethod def check_prerequisites(cls): # pragma: no cover diff --git a/bears/vimscript/VintBear.py b/bears/vimscript/VintBear.py index 0b82b51045..4602cee2ef 100644 --- a/bears/vimscript/VintBear.py +++ b/bears/vimscript/VintBear.py @@ -10,7 +10,7 @@ class VintBear: See for more information. """ - LANGUAGES = "VimScript" + LANGUAGES = {"VimScript"} @staticmethod def create_arguments(filename, file, config_file): diff --git a/bears/xml/XMLBear.py b/bears/xml/XMLBear.py index eda941f1a5..a0ecf863dd 100644 --- a/bears/xml/XMLBear.py +++ b/bears/xml/XMLBear.py @@ -24,7 +24,7 @@ class XMLBear(LocalBear, Lint): output_regex = r'(.*\.xml):(?P\d+): (?P.*)\n.*\n.*' gives_corrected = True use_stderr = True - LANGUAGES = "XML" + LANGUAGES = {"XML"} def process_output(self, output, filename, file): if self.stdout_output: diff --git a/bears/yml/RAMLLintBear.py b/bears/yml/RAMLLintBear.py index a0095e27b7..aaf6cd634c 100644 --- a/bears/yml/RAMLLintBear.py +++ b/bears/yml/RAMLLintBear.py @@ -13,7 +13,7 @@ class RAMLLintBear: identify the problems correctly. """ - LANGUAGES = "RAML" + LANGUAGES = {"RAML"} @staticmethod def create_arguments(filename, file, config_file): diff --git a/bears/yml/YAMLLintBear.py b/bears/yml/YAMLLintBear.py index 05d166bb20..36d3dbd33a 100644 --- a/bears/yml/YAMLLintBear.py +++ b/bears/yml/YAMLLintBear.py @@ -13,7 +13,7 @@ class YAMLLintBear: . """ - LANGUAGES = "YAML" + LANGUAGES = {"YAML"} @staticmethod def create_arguments(filename, file, config_file, yamllint_config: str=''):