Skip to content

Some nix linters will remove unused arguments, causing context problems #47

@vic

Description

@vic

Also I think I will move to simpler direction contexts, instead of { fromUser, toHost } -> { userToHost } and we could access userToHost.user and userToHost.host (similarly a { hostToUser }).

This change would help in situations where you don't need to use both arguments, like my examples above, only use toHost and not fromUser, and I have to use # deadnix: skip so my nix linter knows it cannot remove the fromUser argument, because if it is removed the context will never match!, so I dont need formatters causing problems because of unused vars.

Originally posted by @vic in #46 (reply in thread)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions