From 461289e116289576f11bd6b365341ae5355a2269 Mon Sep 17 00:00:00 2001 From: Anton Maminov Date: Fri, 29 Mar 2024 14:41:42 +0200 Subject: [PATCH] add ameba config --- .ameba.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .ameba.yml diff --git a/.ameba.yml b/.ameba.yml new file mode 100644 index 0000000..23ebf93 --- /dev/null +++ b/.ameba.yml @@ -0,0 +1,36 @@ +# This configuration file was generated by `ameba --gen-config` +# on 2024-03-29 12:41:29 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. + +# Problems found: 4 +# Run `ameba --only Naming/BlockParameterName` for details +Naming/BlockParameterName: + Description: Disallows non-descriptive block parameter names + MinNameLength: 3 + AllowNamesEndingInNumbers: true + Excluded: + - src/kd_tree.cr + AllowedNames: + - _ + - e + - i + - j + - k + - v + - x + - y + - ex + - io + - ws + - op + - tx + - id + - ip + - k1 + - k2 + - v1 + - v2 + ForbiddenNames: [] + Enabled: true + Severity: Convention