Skip to content

Commit 88adb68

Browse files
committed
chore: fixed nimalyzer errors
FossilOrigin-Name: ccdb513c07df24894047be49c71a355b7b776856615cc73fc58ea9f09fe4bc7b
1 parent f107cb2 commit 88adb68

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/nish.nim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import std/[os, osproc, paths, parseopt, strutils, tables, terminal, unicode]
3131
when compileOption(option = "profiler"):
3232
import nimprof
3333
# External modules imports
34-
import ansiparse, contracts, nancy, termstyle
34+
import ansiparse, contracts, nancy, nimalyzer, termstyle
3535
import norm/sqlite
3636
# Internal imports
3737
import aliases, commands, commandslist, completion, constants, db, help,
@@ -396,6 +396,7 @@ proc main() {.sideEffect, raises: [], tags: [ReadIOEffect, WriteIOEffect,
396396
## The main procedure of the shell
397397
body:
398398
startLogging()
399+
{.ruleOff: "objects".}
399400
var
400401
userInput: OptParser = initOptParser()
401402
commandName, lastCommand: CommandName = ""
@@ -411,6 +412,7 @@ proc main() {.sideEffect, raises: [], tags: [ReadIOEffect, WriteIOEffect,
411412
DirSep & "nish.db").Path
412413
cursorPosition: Natural = 0
413414
commands: ref Table[string, CommandData] = newTable[string, CommandData]()
415+
{.ruleOn: "objects".}
414416

415417
# On Unix systems, load various users' configurations for shells
416418
when not defined(windows):

0 commit comments

Comments
 (0)