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)