Skip to content

Fix beman-tidy lint failures#238

Merged
steve-downey merged 3 commits into
bemanproject:mainfrom
steve-downey:fix/beman-tidy-lint
Jul 1, 2026
Merged

Fix beman-tidy lint failures#238
steve-downey merged 3 commits into
bemanproject:mainfrom
steve-downey:fix/beman-tidy-lint

Conversation

@steve-downey

Copy link
Copy Markdown
Member

Summary

  • Add missing SPDX-License-Identifier headers, a beman::optional CMake alias target, and the required README badge link so beman-tidy's Requirement checks pass.
  • Rename tests/beman/optional/detail/iterator.t.cpp and tests/beman/optional/test_constructor_fail.cpp to the *.test.cpp naming convention required by beman-tidy.
  • Add .build/, .cache/, .venv/, infra/, papers/, and the vendored include/beman/optional/detail/stl_interfaces/ directory to ignored_paths in .beman-tidy.yaml, so beman-tidy doesn't scan generated/vendored/subtree content it was never meant to check. The stl_interfaces/ exclusion matches how bemanproject/iterator_interface (the upstream source of this vendored code) handles the same file.copyright check.

Test plan

  • pre-commit run --all-files passes cleanly (all hooks, including beman-tidy)
  • cmake --preset gcc-debug configures and builds beman.optional.test and constructor_fails
  • Full test suite (108 tests) passes

Add missing SPDX-License-Identifier headers, a beman::optional CMake
alias target, and the required README badge link so beman-tidy's
Requirement checks pass. Rename two test files to the *.test.cpp
convention. Also exclude build/cache/venv/infra/papers directories in
.beman-tidy.yaml so local pre-commit runs aren't swamped by false
positives from generated or vendored content.
The vendored Boost stl_interfaces headers carry an upstream copyright
notice required by the Boost Software License, which trips
beman-tidy's file.copyright check. Ignore that directory in
.beman-tidy.yaml, matching how bemanproject/iterator_interface (the
upstream source of this vendored code) handles the same check.
Now that the include/beman/optional/detail/stl_interfaces/ directory
is excluded from beman-tidy entirely, there's no need to bolt an
Apache-2.0 SPDX identifier onto files that are actually under the
Boost Software License. Leave them as vendored upstream.
@steve-downey steve-downey mentioned this pull request Jul 1, 2026
@steve-downey steve-downey merged commit 03507d7 into bemanproject:main Jul 1, 2026
79 checks passed
@steve-downey steve-downey deleted the fix/beman-tidy-lint branch July 1, 2026 04:05
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