Skip to content

Prevent run multiply copies golangci-lint with same params #108

Closed
@rekby

Description

@rekby

When I edit files Goland can save many files same time (Ctrl+S after rename refactor or after manual changes few files).

If I add golangci-lint as filewatcher with project dir param - golangci-lint start many times - once for every saved file.

I think it will good for use some lock for prevent do work multiply times. For example - create lock-file/lock-dir flag with hash of current args and env.

If lock file existed - exit with code 0.

Check lock flag for old file (for example - ignore it after a hour) - for prevent forever lock in some mistakes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or improvementno decisionNo decision to fix or not

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions