elimina NOLINT(cognitive-complexity) obsolets en editor/console

This commit is contained in:
2026-05-17 17:32:29 +02:00
parent 973bfa80bf
commit 9e3b960939
3 changed files with 12 additions and 12 deletions
+4 -4
View File
@@ -497,7 +497,7 @@ static auto cmdSound(const std::vector<std::string>& args) -> std::string {
#ifdef _DEBUG
// DEBUG [MODE [ON|OFF]|START [HERE|ROOM|POS|SCENE <name>]]
static auto cmdDebug(const std::vector<std::string>& args) -> std::string { // NOLINT(readability-function-cognitive-complexity)
static auto cmdDebug(const std::vector<std::string>& args) -> std::string {
// --- START subcommands (START SCENE works from any scene) ---
if (!args.empty() && args[0] == "START") {
// START SCENE [<name>] — works from any scene
@@ -611,7 +611,7 @@ static auto changeRoomWithEditor(const std::string& room_file) -> std::string {
return std::string("Room: ") + room_file;
}
static auto cmdRoom(const std::vector<std::string>& args) -> std::string { // NOLINT(readability-function-cognitive-complexity)
static auto cmdRoom(const std::vector<std::string>& args) -> std::string {
if (SceneManager::current != SceneManager::Scene::GAME) { return "Only available in GAME scene"; }
if (args.empty()) { return "usage: room <1-60>|next|prev|left|right|up|down"; }
@@ -704,7 +704,7 @@ static auto cmdScene(const std::vector<std::string>& args) -> std::string {
}
// EDIT [ON|OFF|REVERT]
static auto cmdEdit(const std::vector<std::string>& args) -> std::string { // NOLINT(readability-function-cognitive-complexity)
static auto cmdEdit(const std::vector<std::string>& args) -> std::string {
if (args.empty()) {
// Toggle: si está activo → off, si no → on
if ((MapEditor::get() != nullptr) && MapEditor::get()->isActive()) {
@@ -987,7 +987,7 @@ static auto cmdSize(const std::vector<std::string>& /*unused*/) -> std::string {
// ── CommandRegistry ──────────────────────────────────────────────────────────
void CommandRegistry::registerHandlers() { // NOLINT(readability-function-cognitive-complexity)
void CommandRegistry::registerHandlers() {
handlers_["cmd_ss"] = cmdSs;
handlers_["cmd_shader"] = cmdShader;
handlers_["cmd_border"] = cmdBorder;