Skip to content

test: fix format string lint runner#360

Open
nexicturbo wants to merge 1 commit into
BitgesellOfficial:masterfrom
nexicturbo:codex/fix-lint-format-runner
Open

test: fix format string lint runner#360
nexicturbo wants to merge 1 commit into
BitgesellOfficial:masterfrom
nexicturbo:codex/fix-lint-format-runner

Conversation

@nexicturbo

Copy link
Copy Markdown

Bounty submission for #32.

This makes test/lint/lint-format-strings.py runnable and green in this repository.

Changes:

  • Invoke run-lint-format-strings.py through the active Python interpreter so the lint works on Windows as well as Unix-like shells.
  • Move the excluded-file regex into a named pattern.
  • Update the tidy example exclusion for Bitgesell's contrib/devtools/BGL-tidy/example_logprintf.cpp path.
  • Exclude src/precompute_ecmult_gen.c, whose generated secp precompute formatter uses PRIx32 literal concatenation plus macro-expanded comma-separated arguments that this static checker cannot model.

Verification:

  • python test\lint\lint-format-strings.py
  • python -m py_compile test\lint\lint-format-strings.py test\lint\run-lint-format-strings.py
  • git diff --check

Payment details can be provided after maintainer approval.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant