From 94d94cda9c55a7368cc3c73af991e7fe875959cb Mon Sep 17 00:00:00 2001 From: Hau Nguyen Date: Fri, 21 Jul 2023 16:15:46 +0700 Subject: [PATCH] feat: add qmk lint --- Makefile | 2 ++ README.md | 1 + dztech_dz60rgb_wkl/keymaps/haunt98/config.h | 16 ++++++++++++++++ dztech_dz60rgb_wkl/keymaps/haunt98/info.json | 3 --- dztech_dz60rgb_wkl/keymaps/haunt98/keymap.c | 16 ++++++++++++++++ 5 files changed, 35 insertions(+), 3 deletions(-) delete mode 100644 dztech_dz60rgb_wkl/keymaps/haunt98/info.json diff --git a/Makefile b/Makefile index 588bb08..9cc1be5 100644 --- a/Makefile +++ b/Makefile @@ -15,6 +15,8 @@ dztech_dz60rgb_wkl: # Copy rm -rf ~/qmk_firmware/keyboards/dztech/dz60rgb_wkl/keymaps/haunt98 cp -rf dztech_dz60rgb_wkl/keymaps/haunt98 ~/qmk_firmware/keyboards/dztech/dz60rgb_wkl/keymaps/ + # Lint + qmk lint -kb dztech/dz60rgb_wkl/v2_1 -km haunt98 # Compile qmk compile -j 8 -kb dztech/dz60rgb_wkl/v2_1 -km haunt98 # JSON diff --git a/README.md b/README.md index 20cbe78..8573851 100644 --- a/README.md +++ b/README.md @@ -75,3 +75,4 @@ Build/Optimize - [x] How to flash - [x] Add stock firmware/docs +- [x] Add qmk lint diff --git a/dztech_dz60rgb_wkl/keymaps/haunt98/config.h b/dztech_dz60rgb_wkl/keymaps/haunt98/config.h index 41f7784..8836c05 100644 --- a/dztech_dz60rgb_wkl/keymaps/haunt98/config.h +++ b/dztech_dz60rgb_wkl/keymaps/haunt98/config.h @@ -1,3 +1,19 @@ +/* Copyright 2023 haunt98 + * + * This program 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 2 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + // VIA #define DYNAMIC_KEYMAP_LAYER_COUNT 3 diff --git a/dztech_dz60rgb_wkl/keymaps/haunt98/info.json b/dztech_dz60rgb_wkl/keymaps/haunt98/info.json deleted file mode 100644 index 1cab749..0000000 --- a/dztech_dz60rgb_wkl/keymaps/haunt98/info.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "debounce": 5 -} diff --git a/dztech_dz60rgb_wkl/keymaps/haunt98/keymap.c b/dztech_dz60rgb_wkl/keymaps/haunt98/keymap.c index e93f011..1b7b495 100644 --- a/dztech_dz60rgb_wkl/keymaps/haunt98/keymap.c +++ b/dztech_dz60rgb_wkl/keymaps/haunt98/keymap.c @@ -1,3 +1,19 @@ +/* Copyright 2023 haunt98 + * + * This program 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 2 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #include QMK_KEYBOARD_H const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {