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
@@ -1,6 +1,6 @@
#include "battery_test_app.h"
#include <notification/notification-messages.h>
#include <notification/notification_messages.h>
void battery_test_dialog_callback(DialogExResult result, void* context) {
furi_assert(context);
+1 -1
View File
@@ -2,7 +2,7 @@
#include <power/power_service/power.h>
#include <cli/cli.h>
#include <furi-hal.h>
#include <furi_hal.h>
void power_cli_poweroff(Cli* cli, string_t args, void* context) {
Power* power = furi_record_open("power");
+1 -1
View File
@@ -2,7 +2,7 @@
#include "views/power_off.h"
#include <furi.h>
#include <furi-hal.h>
#include <furi_hal.h>
#include <gui/view_port.h>
#include <gui/view.h>
+2 -2
View File
@@ -1,8 +1,8 @@
#include "power_i.h"
#include <furi.h>
#include "furi-hal-power.h"
#include "furi-hal-bootloader.h"
#include "furi_hal_power.h"
#include "furi_hal_bootloader.h"
void power_off(Power* power) {
furi_hal_power_off();
+1 -1
View File
@@ -9,7 +9,7 @@
#include <gui/modules/popup.h>
#include "views/power_off.h"
#include <notification/notification-messages.h>
#include <notification/notification_messages.h>
#define POWER_BATTERY_HEALTHY_LEVEL 70