Naming and coding style convention, new linter tool. (#945)

* Makefile, Scripts: new linter
* About: remove ID from IC
* Firmware: remove double define for DIVC/DIVR
* Scripts: check folder names too. Docker: replace syntax check with make lint.
* Reformat Sources and Migrate to new file naming convention
* Docker: symlink clang-format-12 to clang-format
* Add coding style guide
This commit is contained in:
あく
2022-01-05 19:10:18 +03:00
committed by GitHub
parent c98e54da10
commit 389ff92cc1
899 changed files with 379245 additions and 373421 deletions
+3 -3
View File
@@ -92,7 +92,7 @@ C_SOURCES += \
# BLE glue
CFLAGS += \
-I$(TARGET_DIR)/ble-glue \
-I$(TARGET_DIR)/ble_glue \
-I$(CUBE_DIR)/Middlewares/ST/STM32_WPAN \
-I$(CUBE_DIR)/Middlewares/ST/STM32_WPAN/ble \
-I$(CUBE_DIR)/Middlewares/ST/STM32_WPAN/ble/core \
@@ -102,7 +102,7 @@ CFLAGS += \
-I$(CUBE_DIR)/Middlewares/ST/STM32_WPAN/interface/patterns/ble_thread/tl \
-I$(CUBE_DIR)/Middlewares/ST/STM32_WPAN/interface/patterns/ble_thread/shci
C_SOURCES += \
$(wildcard $(TARGET_DIR)/ble-glue/*.c) \
$(wildcard $(TARGET_DIR)/ble_glue/*.c) \
$(CUBE_DIR)/Middlewares/ST/STM32_WPAN/utilities/otp.c \
$(CUBE_DIR)/Middlewares/ST/STM32_WPAN/utilities/stm_list.c \
$(CUBE_DIR)/Middlewares/ST/STM32_WPAN/utilities/dbg_trace.c \
@@ -144,7 +144,7 @@ ifeq ($(INVERT_RFID_IN), 1)
CFLAGS += -DINVERT_RFID_IN
endif
FURI_HAL_DIR = $(TARGET_DIR)/furi-hal
FURI_HAL_DIR = $(TARGET_DIR)/furi_hal
CFLAGS += -I$(FURI_HAL_DIR)
C_SOURCES += $(wildcard $(FURI_HAL_DIR)/*.c)