From 88adb68e703098ac369c369ef5cd9f3e95946ea1 Mon Sep 17 00:00:00 2001 From: thindil Date: Sat, 26 Oct 2024 03:44:43 +0000 Subject: [PATCH] chore: fixed nimalyzer errors FossilOrigin-Name: ccdb513c07df24894047be49c71a355b7b776856615cc73fc58ea9f09fe4bc7b --- src/nish.nim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/nish.nim b/src/nish.nim index 25215b37..a60f34c4 100644 --- a/src/nish.nim +++ b/src/nish.nim @@ -31,7 +31,7 @@ import std/[os, osproc, paths, parseopt, strutils, tables, terminal, unicode] when compileOption(option = "profiler"): import nimprof # External modules imports -import ansiparse, contracts, nancy, termstyle +import ansiparse, contracts, nancy, nimalyzer, termstyle import norm/sqlite # Internal imports import aliases, commands, commandslist, completion, constants, db, help, @@ -396,6 +396,7 @@ proc main() {.sideEffect, raises: [], tags: [ReadIOEffect, WriteIOEffect, ## The main procedure of the shell body: startLogging() + {.ruleOff: "objects".} var userInput: OptParser = initOptParser() commandName, lastCommand: CommandName = "" @@ -411,6 +412,7 @@ proc main() {.sideEffect, raises: [], tags: [ReadIOEffect, WriteIOEffect, DirSep & "nish.db").Path cursorPosition: Natural = 0 commands: ref Table[string, CommandData] = newTable[string, CommandData]() + {.ruleOn: "objects".} # On Unix systems, load various users' configurations for shells when not defined(windows):