Skip to content

[styleCheck] --styleCheck:error inconsistent with --styleCheck:hint : doesn't respect package boundaries #10201

@timotheecour

Description

@timotheecour

--styleCheck:hint inconsistent with --styleCheck:error:
i would expect --styleCheck:hint to report exact same issues as --styleCheck:error but treating them as hints instead of errors, however:

proc main_bar() = discard
nim c --styleCheck:hint $timn_D/bugs/all/t0104.nim
Hint: used config file '/Users/timothee/git_clone/nim/Nim/config/nim.cfg' [Conf]
Hint: used config file '/Users/timothee/.config/nim/nim.cfg' [Conf]
Hint: used config file '/Users/timothee/git_clone/nim/timn/nim.cfg' [Conf]
Hint: used config file '/Users/timothee/git_clone/nim/Nim/config/config.nims' [Conf]
/Users/timothee/git_clone/nim/timn/bugs/all/t0104.nim(9, 6) Hint: name should be: 'mainBar' [Name]
  proc main_bar() = discard
       ^
Hint: operation successful (29804 lines compiled; 0.363 sec total; 25.137MiB peakmem; Debug Build) [SuccessX]
nim c --styleCheck:error $timn_D/bugs/all/t0104.nim
Hint: used config file '/Users/timothee/git_clone/nim/Nim/config/nim.cfg' [Conf]
Hint: used config file '/Users/timothee/.config/nim/nim.cfg' [Conf]
Hint: used config file '/Users/timothee/git_clone/nim/timn/nim.cfg' [Conf]
Hint: used config file '/Users/timothee/git_clone/nim/Nim/config/config.nims' [Conf]
../../../Nim/lib/system/ansi_c.nim(110, 6) Error: name should be: 'CSighandlerT'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions