mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-07-11 23:38:11 -07:00
Change sonar disable method
This commit is contained in:
@@ -1,13 +1,11 @@
|
||||
#pragma warning disable c:S796
|
||||
|
||||
#include "../spi_mem_app_i.h"
|
||||
#include "../lib/spi/spi_mem_chip.h"
|
||||
|
||||
#define SPI_MEM_VERSION_APP "0.1.0"
|
||||
#define SPI_MEM_DEVELOPER "DrunkBatya"
|
||||
#define SPI_MEM_GITHUB "https://github.com/flipperdevices/flipperzero-firmware"
|
||||
#define SPI_MEM_NAME "\e#\e! SPI Mem Manager \e!\n"
|
||||
#define SPI_MEM_BLANK_INV "\e#\e! \e!\n"
|
||||
#define SPI_MEM_NAME "\e#\e! SPI Mem Manager \e!\n" // NOSONAR
|
||||
#define SPI_MEM_BLANK_INV "\e#\e! \e!\n" // NOSONAR
|
||||
|
||||
void spi_mem_scene_about_on_enter(void* context) {
|
||||
SPIMemApp* app = context;
|
||||
@@ -17,11 +15,11 @@ void spi_mem_scene_about_on_enter(void* context) {
|
||||
app->widget, 0, 0, 128, 14, AlignCenter, AlignBottom, SPI_MEM_BLANK_INV, false);
|
||||
widget_add_text_box_element(
|
||||
app->widget, 0, 2, 128, 14, AlignCenter, AlignBottom, SPI_MEM_NAME, false);
|
||||
furi_string_printf(tmp_string, "\e#%s\n", "Information");
|
||||
furi_string_printf(tmp_string, "\e#%s\n", "Information"); // NOSONAR
|
||||
furi_string_cat_printf(tmp_string, "Version: %s\n", SPI_MEM_VERSION_APP);
|
||||
furi_string_cat_printf(tmp_string, "Developed by: %s\n", SPI_MEM_DEVELOPER);
|
||||
furi_string_cat_printf(tmp_string, "Github: %s\n\n", SPI_MEM_GITHUB);
|
||||
furi_string_cat_printf(tmp_string, "\e#%s\n", "Description");
|
||||
furi_string_cat_printf(tmp_string, "\e#%s\n", "Description"); // NOSONAR
|
||||
furi_string_cat_printf(
|
||||
tmp_string,
|
||||
"SPI memory dumper\n"
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
#pragma warning disable c:S796
|
||||
|
||||
#include "../spi_mem_app_i.h"
|
||||
#include "../spi_mem_files.h"
|
||||
|
||||
@@ -18,7 +16,7 @@ void spi_mem_scene_delete_confirm_on_enter(void* context) {
|
||||
FuriString* file_name = furi_string_alloc();
|
||||
FuriString* message = furi_string_alloc();
|
||||
path_extract_filename(app->file_path, file_name, true);
|
||||
furi_string_printf(message, "\e#Delete %s?\e#", furi_string_get_cstr(file_name));
|
||||
furi_string_printf(message, "\e#Delete %s?\e#", furi_string_get_cstr(file_name)); // NOSONAR
|
||||
widget_add_text_box_element(
|
||||
app->widget, 0, 0, 128, 27, AlignCenter, AlignCenter, furi_string_get_cstr(message), true);
|
||||
widget_add_button_element(
|
||||
|
||||
Reference in New Issue
Block a user