Skip to content

Commit

Permalink
bear/*: Use string in LANGUAGES
Browse files Browse the repository at this point in the history
Earlier, coala required a tuple for LANGUAGES. Now we can
simply use a string in cases where there is one language.
This commit changed earlier written LANGUAGES where there
is only 1 language from tuple to string.
  • Loading branch information
AbdealiLoKo committed Apr 26, 2016
1 parent 109bd6d commit 5f6d160
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion bears/c_languages/CPPCleanBear.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class CPPCleanBear:
<https://github.com/myint/cppclean#features>.
"""

LANGUAGES = ("C++",)
LANGUAGES = "C++"

@staticmethod
def create_arguments(filename, file, config_file):
Expand Down
2 changes: 1 addition & 1 deletion bears/c_languages/CPPLintBear.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class CPPLintBear:
For more information, consult <https://github.com/theandrewdavis/cpplint>.
"""

LANGUAGES = ("C++",)
LANGUAGES = "C++"

@staticmethod
def create_arguments(filename, file, config_file,
Expand Down
2 changes: 1 addition & 1 deletion bears/c_languages/CSharpLintBear.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion bears/haskell/HaskellLintBear.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class HaskellLintBear:
information.
"""

LANGUAGES = ("Haskell",)
LANGUAGES = "Haskell"

severity_map = {"Error": RESULT_SEVERITY.MAJOR,
"Warning": RESULT_SEVERITY.NORMAL,
Expand Down
2 changes: 1 addition & 1 deletion bears/html/HTMLLintBear.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class HTMLLintBear:

_html_lint = which('html_lint.py')

LANGUAGES = ("HTML",)
LANGUAGES = "HTML"

@staticmethod
def create_arguments(filename, file, config_file,
Expand Down
2 changes: 1 addition & 1 deletion bears/java/CheckstyleBear.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class CheckstyleBear:
<http://checkstyle.sourceforge.net/checks.html>.
"""

LANGUAGES = ("Java",)
LANGUAGES = "Java"

@staticmethod
def create_arguments(filename, file, config_file):
Expand Down
2 changes: 1 addition & 1 deletion bears/lua/LuaLintBear.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class LuaLintBear:
Read more at <https://github.com/mpeterv/luacheck>.
"""

LANGUAGES = ("Lua",)
LANGUAGES = "Lua"

@staticmethod
def create_arguments(filename, file, config_file):
Expand Down
2 changes: 1 addition & 1 deletion bears/markdown/MarkdownBear.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class MarkdownBear:
below.
"""

LANGUAGES = ("Markdown",)
LANGUAGES = "Markdown"

@staticmethod
def create_arguments(filename, file, config_file,
Expand Down
2 changes: 1 addition & 1 deletion bears/ruby/RuboCopBear.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class RuboCopBear:
See <https://github.com/bbatsov/rubocop#cops> for more information.
"""

LANGUAGES = ("Ruby",)
LANGUAGES = "Ruby"

severity_map = {"error": RESULT_SEVERITY.MAJOR,
"warning": RESULT_SEVERITY.NORMAL,
Expand Down
2 changes: 1 addition & 1 deletion bears/scala/ScalaLintBear.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ScalaLintBear:
e.g. cyclomatic complexity.
"""

LANGUAGES = ("Scala",)
LANGUAGES = "Scala"

@staticmethod
def create_arguments(filename, file, config_file,
Expand Down
2 changes: 1 addition & 1 deletion bears/scss/SCSSLintBear.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class SCSSLintBear:
More information is available at <https://github.com/brigade/scss-lint>.
"""

LANGUAGES = ("SCSS",)
LANGUAGES = "SCSS"

@staticmethod
def create_arguments(filename, file, config_file):
Expand Down
2 changes: 1 addition & 1 deletion bears/sql/SQLintBear.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class SQLintBear:
<https://github.com/purcell/sqlint> for more detailed information.
"""

LANGUAGES = ("SQL",)
LANGUAGES = "SQL"

@staticmethod
def create_arguments(filename, file, config_file):
Expand Down
2 changes: 1 addition & 1 deletion bears/typescript/TSLintBear.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class TSLintBear:
<https://github.com/palantir/tslint#core-rules>.
"""

LANGUAGES = ("TypeScript",)
LANGUAGES = "TypeScript"

@staticmethod
def create_arguments(filename, file, config_file,
Expand Down
2 changes: 1 addition & 1 deletion bears/yaml/YAMLLintBear.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class YAMLLintBear:
<http://yamllint.readthedocs.org/en/latest/rules.html>.
"""

LANGUAGES = ("YAML",)
LANGUAGES = "YAML"

@staticmethod
def create_arguments(filename, file, config_file, yamllint_config: str=''):
Expand Down

0 comments on commit 5f6d160

Please sign in to comment.