From 560a51b78b31516ecc450c016820a306d74062e9 Mon Sep 17 00:00:00 2001 From: Isaac Marovitz Date: Tue, 26 Sep 2023 18:42:43 -0400 Subject: [PATCH] Swiftlint File Header --- .swiftlint.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.swiftlint.yml b/.swiftlint.yml index 9d2a897e7..597ebfdbe 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -1,5 +1,26 @@ opt_in_rules: - force_unwrapping + - file_header excluded: - .build + +file_header: + severity: error + required_pattern: | + \/\/ .*?\.swift + \/\/ .*? + \/\/ + \/\/ This file is part of Whisky\. + \/\/ + \/\/ Whisky is free software: you can redistribute it and\/or modify it under the terms + \/\/ of the GNU General Public License as published by the Free Software Foundation, + \/\/ either version 3 of the License, or \(at your option\) any later version\. + \/\/ + \/\/ Whisky 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 General Public License for more details\. + \/\/ + \/\/ You should have received a copy of the GNU General Public License along with Whisky\. + \/\/ If not, see https:\/\/www\.gnu\.org\/licenses\/\. + \/\/