neteja NOLINT obsolets (de 29 a 10)

This commit is contained in:
2026-05-17 19:51:11 +02:00
parent f3371c33b0
commit 6b6d5f1f6d
11 changed files with 19 additions and 19 deletions
+2 -2
View File
@@ -64,7 +64,7 @@ class GamepadConfigManager {
// Escribir al archivo
std::ofstream file(filename);
if (!file.is_open()) {
return false; // NOLINT(readability-simplify-boolean-expr)
return false;
}
file << j.dump(4); // Formato con indentación de 4 espacios
@@ -92,7 +92,7 @@ class GamepadConfigManager {
configs.clear();
if (!j.contains("gamepads") || !j["gamepads"].is_array()) {
return false; // NOLINT(readability-simplify-boolean-expr)
return false;
}
for (const auto& gamepad_json : j["gamepads"]) {
+2 -2
View File
@@ -20,11 +20,11 @@ class PauseManager {
// --- Operadores friend ---
friend auto operator|(Source a, Source b) -> Source {
return static_cast<Source>(static_cast<uint8_t>(a) | static_cast<uint8_t>(b)); // NOLINT(readability-redundant-casting)
return static_cast<Source>(static_cast<uint8_t>(a) | static_cast<uint8_t>(b));
}
friend auto operator&(Source a, Source b) -> Source {
return static_cast<Source>(static_cast<uint8_t>(a) & static_cast<uint8_t>(b)); // NOLINT(readability-redundant-casting)
return static_cast<Source>(static_cast<uint8_t>(a) & static_cast<uint8_t>(b));
}
friend auto operator~(Source a) -> uint8_t {
+1 -1
View File
@@ -218,7 +218,7 @@ void Screen::handleCanvasResized() {
// Registra los callbacks nativos de Emscripten que restauran el canvas cuando
// SDL3 no emite los events equivalentes. Fuera de Emscripten es un no-op.
void Screen::registerEmscriptenEventCallbacks() { // NOLINT(readability-convert-member-functions-to-static)
void Screen::registerEmscriptenEventCallbacks() {
#ifdef __EMSCRIPTEN__
emscripten_set_fullscreenchange_callback(EMSCRIPTEN_EVENT_TARGET_DOCUMENT, nullptr, EM_TRUE, onEmFullscreenChange);
emscripten_set_orientationchange_callback(nullptr, EM_TRUE, onEmOrientationChange);
@@ -429,7 +429,7 @@ namespace Rendering {
return shader;
}
auto SDL3GPUShader::createShaderSPIRV(SDL_GPUDevice* device, // NOLINT(readability-convert-member-functions-to-static)
auto SDL3GPUShader::createShaderSPIRV(SDL_GPUDevice* device,
const uint8_t* spv_code,
size_t spv_size,
const char* entrypoint,
+1 -1
View File
@@ -155,7 +155,7 @@ auto ResourcePack::addFile(const std::string& filename, const std::string& filep
auto ResourcePack::addDirectory(const std::string& directory) -> bool {
if (!std::filesystem::exists(directory)) {
std::cerr << "Error: Directory does not exist: " << directory << '\n';
return false; // NOLINT(readability-simplify-boolean-expr)
return false;
}
return std::ranges::all_of(std::filesystem::recursive_directory_iterator(directory),