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:
@@ -1,4 +1,4 @@
|
||||
#include "filesystem-api-defines.h"
|
||||
#include "filesystem_api_defines.h"
|
||||
|
||||
const char* filesystem_api_error_get_desc(FS_Error error_id) {
|
||||
const char* result = "unknown error";
|
||||
@@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
#include <furi.h>
|
||||
#include "filesystem-api-defines.h"
|
||||
#include "filesystem_api_defines.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -1,10 +1,10 @@
|
||||
#include "storage.h"
|
||||
#include "storage-i.h"
|
||||
#include "storage-message.h"
|
||||
#include "storage-processing.h"
|
||||
#include "storage/storage-glue.h"
|
||||
#include "storages/storage-int.h"
|
||||
#include "storages/storage-ext.h"
|
||||
#include "storage_i.h"
|
||||
#include "storage_message.h"
|
||||
#include "storage_processing.h"
|
||||
#include "storage/storage_glue.h"
|
||||
#include "storages/storage_int.h"
|
||||
#include "storages/storage_ext.h"
|
||||
|
||||
#define STORAGE_TICK 1000
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
#include <furi.h>
|
||||
#include "filesystem-api-defines.h"
|
||||
#include "storage-sd-api.h"
|
||||
#include "filesystem_api_defines.h"
|
||||
#include "storage_sd_api.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
#include <furi.h>
|
||||
#include <furi-hal.h>
|
||||
#include <furi_hal.h>
|
||||
|
||||
#include <cli/cli.h>
|
||||
#include <lib/toolbox/args.h>
|
||||
#include <lib/toolbox/md5.h>
|
||||
#include <storage/storage.h>
|
||||
#include <storage/storage-sd-api.h>
|
||||
#include <storage/storage_sd_api.h>
|
||||
#include <power/power_service/power.h>
|
||||
|
||||
#define MAX_NAME_LENGTH 255
|
||||
@@ -1,8 +1,8 @@
|
||||
#include <furi/record.h>
|
||||
#include <m-string.h>
|
||||
#include "storage.h"
|
||||
#include "storage-i.h"
|
||||
#include "storage-message.h"
|
||||
#include "storage_i.h"
|
||||
#include "storage_message.h"
|
||||
|
||||
#define MAX_NAME_LENGTH 256
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include "storage-glue.h"
|
||||
#include <furi-hal.h>
|
||||
#include "storage_glue.h"
|
||||
#include <furi_hal.h>
|
||||
|
||||
/****************** storage file ******************/
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <furi.h>
|
||||
#include "filesystem-api-internal.h"
|
||||
#include "filesystem_api_internal.h"
|
||||
#include <m-string.h>
|
||||
#include <m-array.h>
|
||||
#include <m-list.h>
|
||||
@@ -1,9 +1,9 @@
|
||||
#pragma once
|
||||
#include <furi.h>
|
||||
#include <gui/gui.h>
|
||||
#include "storage-glue.h"
|
||||
#include "storage-sd-api.h"
|
||||
#include "filesystem-api-internal.h"
|
||||
#include "storage_glue.h"
|
||||
#include "storage_sd_api.h"
|
||||
#include "filesystem_api_internal.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "storage-processing.h"
|
||||
#include "storage_processing.h"
|
||||
|
||||
#define FS_CALL(_storage, _fn) \
|
||||
storage_data_lock(_storage); \
|
||||
@@ -414,7 +414,7 @@ static FS_Error storage_process_common_fs_info(
|
||||
|
||||
/****************** Raw SD API ******************/
|
||||
// TODO think about implementing a custom storage API to split that kind of api linkage
|
||||
#include "storages/storage-ext.h"
|
||||
#include "storages/storage_ext.h"
|
||||
|
||||
static FS_Error storage_process_sd_format(Storage* app) {
|
||||
FS_Error ret = FSE_OK;
|
||||
@@ -1,9 +1,9 @@
|
||||
#pragma once
|
||||
#include <furi.h>
|
||||
#include "storage.h"
|
||||
#include "storage-i.h"
|
||||
#include "storage-message.h"
|
||||
#include "storage-glue.h"
|
||||
#include "storage_i.h"
|
||||
#include "storage_message.h"
|
||||
#include "storage_glue.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "storage-sd-api.h"
|
||||
#include "storage_sd_api.h"
|
||||
|
||||
const char* sd_api_get_fs_type_text(SDFsType fs_type) {
|
||||
switch(fs_type) {
|
||||
@@ -1,8 +1,8 @@
|
||||
#pragma once
|
||||
#include <furi.h>
|
||||
#include "filesystem-api-defines.h"
|
||||
#include "filesystem_api_defines.h"
|
||||
#include <fatfs.h>
|
||||
#include "storage-glue.h"
|
||||
#include "storage_glue.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -1,5 +1,5 @@
|
||||
#include <furi.h>
|
||||
#include <furi-hal.h>
|
||||
#include <furi_hal.h>
|
||||
#include <storage/storage.h>
|
||||
|
||||
#define TAG "StorageTest"
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "sd-notify.h"
|
||||
#include "sd_notify.h"
|
||||
|
||||
static const NotificationSequence sd_sequence_success = {
|
||||
&message_green_255,
|
||||
@@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
#include <furi.h>
|
||||
#include <notification/notification-messages.h>
|
||||
#include <notification/notification_messages.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -1,9 +1,9 @@
|
||||
#include "fatfs.h"
|
||||
#include "../filesystem-api-internal.h"
|
||||
#include "storage-ext.h"
|
||||
#include <furi-hal.h>
|
||||
#include "sd-notify.h"
|
||||
#include <furi-hal-sd.h>
|
||||
#include "../filesystem_api_internal.h"
|
||||
#include "storage_ext.h"
|
||||
#include <furi_hal.h>
|
||||
#include "sd_notify.h"
|
||||
#include <furi_hal_sd.h>
|
||||
|
||||
typedef FIL SDFile;
|
||||
typedef DIR SDDir;
|
||||
@@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
#include <furi.h>
|
||||
#include "../storage-glue.h"
|
||||
#include "../storage-sd-api.h"
|
||||
#include "../storage_glue.h"
|
||||
#include "../storage_sd_api.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "storage-int.h"
|
||||
#include "storage_int.h"
|
||||
#include <lfs.h>
|
||||
#include <furi-hal.h>
|
||||
#include <furi_hal.h>
|
||||
|
||||
#define TAG "StorageInt"
|
||||
#define STORAGE_PATH "/int"
|
||||
@@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
#include <furi.h>
|
||||
#include "../storage-glue.h"
|
||||
#include "../storage_glue.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
Reference in New Issue
Block a user