Skip to content

make lint fails on shellcheck style and info warnings #167

Description

@ekalinin

Steps

make lint

Actual

shellcheck -e SC2008 gh-md-toc exits with code 1 on master (c386c7b, shellcheck 0.11.0):

  • SC2006 (style): legacy backticks instead of $(...) - lines 170, 187, 246, 305-308, 371
  • SC2181 (style): exit code checked indirectly with $? - line 89
  • SC2016 (info): expressions in single quotes - lines 249, 258

Expected

make lint passes.

Notes

  • CI (ci.yml) runs only make test, so the failure is not visible there.
  • Lines 249 and 258 start the awk scripts, which are single-quoted on purpose so that
    $0 reaches awk unexpanded. SC2016 there likely needs a disable directive rather
    than a code change.

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions