This repository has been archived by the owner on Dec 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 148
/
dangerfile.ts
29 lines (25 loc) · 1.34 KB
/
dangerfile.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// dangerfile.ts
// Copyright (C) 2020 Presidenza del Consiglio dei Ministri.
// Please refer to the AUTHORS file for more information.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
import { message } from "danger";
import commitLint from "./ci/danger/commitlint";
import kotlinLint from "./ci/danger/ktlint";
export default async () => {
message(
"Thank you for submitting a pull request! The team will review your submission as soon as possible."
);
await commitLint({ enabled: true, allowedScopes: [] });
await kotlinLint("app/src/main/java/it/ministerodellasalute/immuni");
await kotlinLint("debugmenu/src/main/java/it/ministerodellasalute/immuni");
await kotlinLint("extensions/src/main/java/it/ministerodellasalute/immuni");
};