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