Changeset View
Changeset View
Standalone View
Standalone View
addons/project/tools/kateprojectcodeanalysistoolshellcheck.h
- This file was copied from addons/project/tools/kateprojectcodeanalysistoolflake8.h.
1 | /* This file is part of the Kate project. | 1 | /* This file is part of the Kate project. | ||
---|---|---|---|---|---|
2 | * | 2 | * | ||
3 | * Copyright (C) 2017 Héctor Mesa Jiménez <hector@lcc.uma.es> | 3 | * Copyright (C) 2018 Gregor Mi <codestruct@posteo.org> | ||
4 | * | 4 | * | ||
5 | * This library is free software; you can redistribute it and/or | 5 | * This library is free software; you can redistribute it and/or | ||
6 | * modify it under the terms of the GNU Library General Public | 6 | * modify it under the terms of the GNU Library General Public | ||
7 | * License as published by the Free Software Foundation; either | 7 | * License as published by the Free Software Foundation; either | ||
8 | * version 2 of the License, or (at your option) any later version. | 8 | * version 2 of the License, or (at your option) any later version. | ||
9 | * | 9 | * | ||
10 | * This library is distributed in the hope that it will be useful, | 10 | * This library is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
13 | * Library General Public License for more details. | 13 | * Library General Public License for more details. | ||
14 | * | 14 | * | ||
15 | * You should have received a copy of the GNU Library General Public License | 15 | * You should have received a copy of the GNU Library General Public License | ||
16 | * along with this library; see the file COPYING.LIB. If not, write to | 16 | * along with this library; see the file COPYING.LIB. If not, write to | ||
17 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
18 | * Boston, MA 02110-1301, USA. | 18 | * Boston, MA 02110-1301, USA. | ||
19 | */ | 19 | */ | ||
20 | 20 | | |||
21 | #ifndef KATE_PROJECT_CODE_ANALYSIS_TOOL_FLAKE8_H | 21 | #pragma once | ||
22 | #define KATE_PROJECT_CODE_ANALYSIS_TOOL_FLAKE8_H | | |||
23 | 22 | | |||
24 | #include "../kateprojectcodeanalysistool.h" | 23 | #include "../kateprojectcodeanalysistool.h" | ||
25 | 24 | | |||
26 | /** | 25 | /** | ||
27 | * Information provider for flake8 | 26 | * Information provider for shellcheck | ||
28 | */ | 27 | */ | ||
29 | class KateProjectCodeAnalysisToolFlake8: public KateProjectCodeAnalysisTool | 28 | class KateProjectCodeAnalysisToolShellcheck : public KateProjectCodeAnalysisTool | ||
30 | { | 29 | { | ||
31 | public: | 30 | public: | ||
32 | explicit KateProjectCodeAnalysisToolFlake8(QObject *parent = nullptr); | 31 | explicit KateProjectCodeAnalysisToolShellcheck(QObject *parent = nullptr); | ||
33 | 32 | | |||
34 | virtual ~KateProjectCodeAnalysisToolFlake8() override; | 33 | virtual ~KateProjectCodeAnalysisToolShellcheck() override; | ||
35 | 34 | | |||
36 | virtual QString name() override; | 35 | virtual QString name() override; | ||
37 | 36 | | |||
37 | virtual QString description() const override; | ||||
38 | | ||||
38 | virtual QString fileExtensions() override; | 39 | virtual QString fileExtensions() override; | ||
39 | 40 | | |||
40 | virtual QStringList filter(const QStringList &files) override; | 41 | virtual QStringList filter(const QStringList &files) override; | ||
41 | 42 | | |||
42 | virtual QString path() override; | 43 | virtual QString path() override; | ||
43 | 44 | | |||
44 | virtual QStringList arguments() override; | 45 | virtual QStringList arguments() override; | ||
45 | 46 | | |||
46 | virtual QString notInstalledMessage() override; | 47 | virtual QString notInstalledMessage() override; | ||
47 | 48 | | |||
48 | virtual QStringList parseLine(const QString &line) override; | 49 | virtual QStringList parseLine(const QString &line) override; | ||
49 | 50 | | |||
51 | virtual bool isSuccessfulExitCode(int exitCode) override; | ||||
52 | | ||||
50 | virtual QString stdinMessages() override; | 53 | virtual QString stdinMessages() override; | ||
51 | }; | 54 | }; | ||
52 | | ||||
53 | #endif // KATE_PROJECT_CODE_ANALYSIS_TOOL_FLAKE8_H | |