8000 staticcheck: log.Fatal("x:", err) -> log.Fatalln · Issue #686 · dominikh/go-tools · GitHub
[go: up one dir, main page]

Skip to content

staticcheck: log.Fatal("x:", err) -> log.Fatalln #686

Open

Description

@dominikh

log.Fatal will not add spaces between its arguments, but the presence of a colon suggests that a space was desired. See if we run into any false positives.

Activity

  1. added
    aggressiveA set of checks that is more prone to false positives but is helpful during code review
    on Nov 6, 2021
  2. added this to the Staticcheck 2022.2 milestone on Jan 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    aggressiveA set of checks that is more prone to false positives but is helpful during code reviewneeds-decisionWe have to decide if this check is feasible and desirablenew-check

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0