From 72c519a23a59efbb4d7e7d51e69982fc56f73597 Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Tue, 2 Jul 2024 13:33:29 -0300 Subject: [PATCH] lint --- .ameba.yml | 5 +++-- src/daemon/funkos.cr | 2 +- src/funko.cr | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.ameba.yml b/.ameba.yml index 1a6a517..32237db 100644 --- a/.ameba.yml +++ b/.ameba.yml @@ -1,5 +1,5 @@ # This configuration file was generated by `ameba --gen-config` -# on 2024-07-01 18:57:31 UTC using Ameba version 1.6.1. +# on 2024-07-02 16:33:24 UTC using Ameba version 1.6.1. # The point is for the user to remove these configuration records # one by one as the reported problems are removed from the code base. @@ -21,7 +21,7 @@ Documentation/DocumentationAdmonition: Enabled: true Severity: Warning -# Problems found: 1 +# Problems found: 3 # Run `ameba --only Naming/BlockParameterName` for details Naming/BlockParameterName: Description: Disallows non-descriptive block parameter names @@ -29,6 +29,7 @@ Naming/BlockParameterName: AllowNamesEndingInNumbers: true Excluded: - src/faaso.cr + - src/daemon/funkos.cr AllowedNames: - _ - e diff --git a/src/daemon/funkos.cr b/src/daemon/funkos.cr index a414917..59bf52a 100644 --- a/src/daemon/funkos.cr +++ b/src/daemon/funkos.cr @@ -23,7 +23,7 @@ module Funkos funkos.sort! { |a, b| a.name <=> b.name } if env.params.query.fetch("format", "json") == "html" - render "src/views/funkos.ecr" + render "src/views/funkos.ecr" else funkos.to_json end diff --git a/src/funko.cr b/src/funko.cr index a6b1a56..f97f94e 100644 --- a/src/funko.cr +++ b/src/funko.cr @@ -174,7 +174,7 @@ class Funko source: secrets_mount, target: "/secrets", type: "bind" - ) + ), ] ) )