From 818d4266a73b2522e7a617bdc2278228a341aff4 Mon Sep 17 00:00:00 2001 From: Sijawusz Pur Rahnama Date: Sun, 11 Jan 2026 23:20:13 +0100 Subject: [PATCH] Fix `Naming/AccessorMethodName` type of Ameba issues --- .ameba.yml | 3 --- src/invidious/routes/api/v1/authenticated.cr | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.ameba.yml b/.ameba.yml index 2da18f655..31b94c8c2 100644 --- a/.ameba.yml +++ b/.ameba.yml @@ -38,9 +38,6 @@ Style/ParenthesesAroundCondition: Naming/QueryBoolMethods: Enabled: false -Naming/AccessorMethodName: - Enabled: false - Naming/BlockParameterName: Enabled: false diff --git a/src/invidious/routes/api/v1/authenticated.cr b/src/invidious/routes/api/v1/authenticated.cr index b8b049f28..e51bffa1d 100644 --- a/src/invidious/routes/api/v1/authenticated.cr +++ b/src/invidious/routes/api/v1/authenticated.cr @@ -17,6 +17,7 @@ module Invidious::Routes::API::V1::Authenticated user.preferences.to_json end + # ameba:disable Naming/AccessorMethodName def self.set_preferences(env) env.response.content_type = "application/json" user = env.get("user").as(User)