This commit is contained in:
Roberto Alsina 2024-07-02 13:33:29 -03:00
parent 9997cdaeaf
commit 72c519a23a
3 changed files with 5 additions and 4 deletions

View File

@ -1,5 +1,5 @@
# This configuration file was generated by `ameba --gen-config` # 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 # The point is for the user to remove these configuration records
# one by one as the reported problems are removed from the code base. # one by one as the reported problems are removed from the code base.
@ -21,7 +21,7 @@ Documentation/DocumentationAdmonition:
Enabled: true Enabled: true
Severity: Warning Severity: Warning
# Problems found: 1 # Problems found: 3
# Run `ameba --only Naming/BlockParameterName` for details # Run `ameba --only Naming/BlockParameterName` for details
Naming/BlockParameterName: Naming/BlockParameterName:
Description: Disallows non-descriptive block parameter names Description: Disallows non-descriptive block parameter names
@ -29,6 +29,7 @@ Naming/BlockParameterName:
AllowNamesEndingInNumbers: true AllowNamesEndingInNumbers: true
Excluded: Excluded:
- src/faaso.cr - src/faaso.cr
- src/daemon/funkos.cr
AllowedNames: AllowedNames:
- _ - _
- e - e

View File

@ -23,7 +23,7 @@ module Funkos
funkos.sort! { |a, b| a.name <=> b.name } funkos.sort! { |a, b| a.name <=> b.name }
if env.params.query.fetch("format", "json") == "html" if env.params.query.fetch("format", "json") == "html"
render "src/views/funkos.ecr" render "src/views/funkos.ecr"
else else
funkos.to_json funkos.to_json
end end

View File

@ -174,7 +174,7 @@ class Funko
source: secrets_mount, source: secrets_mount,
target: "/secrets", target: "/secrets",
type: "bind" type: "bind"
) ),
] ]
) )
) )