Skip to content

Nim stdlib style issues with --styleCheck:error #12687

Closed
@ghost

Description

Summary

Nim's stdlib currently errors in several places when compiling with --styleCheck:error. This can cause errors when compiling code that uses certain parts of the standard library.

Description

Add a config.nims file in the root of nim's repository that contains --styleCheck:error, and fix any style issues within the standard library.

Alternatives

Alternatively, we can get rid of styleCheck completely. As it stands, it's completely useless in many cases simply because the standard library will cause style check errors. I've had several projects fail to compile because I've imported a stdlib module, despite compiling fine without the config.nims file.

Additional Information

Currently both nim and nimble fail to compile due to stdlib issues. Nim's is several places (I haven't found all of them), while nimble's issues lie in lib/pure/net.nim.

I understand this may seem like a nitpick, but I think the compiler shouldn't provide a style checking option that causes the compiler to fail to compile itself.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions