Skip to content

Enable beman-tidy v0.5.2 in default mode#64

Merged
dietmarkuehl merged 8 commits into
bemanproject:mainfrom
neatudarius:enable-beman-tidy-default
Jul 13, 2026
Merged

Enable beman-tidy v0.5.2 in default mode#64
dietmarkuehl merged 8 commits into
bemanproject:mainfrom
neatudarius:enable-beman-tidy-default

Conversation

@neatudarius

@neatudarius neatudarius commented Jul 9, 2026

Copy link
Copy Markdown
Member

Issue: bemanproject/beman-tidy#259

Summary

  • Add beman-tidy v0.5.1 to .pre-commit-config.yaml in default mode (args: [".", "--verbose"], no --require-all)
  • Add .beman-tidy.yaml with infra/ ignored
  • Fix Beman Standard requirement violations so default-mode checks pass locally

Changes

  • Pre-commit: beman-tidy hook at v0.5.1
  • LICENSE: add top-level LICENSE (copy of LICENSE.txt) for license.approved / toplevel.license
  • README: linked library-status badge (v0.5.1 format), Standard Target badge, lowercase maturity-model URL, ## License section
  • CMake: add beman.net interface target and beman::net alias in root CMakeLists.txt
  • Tests: rename sorted_list.pass.cppsorted_list.test.cpp
  • SPDX: add license headers to .pre-commit-config.yaml and workflow files

Initial failures (default mode)

9 requirement checks failed before fixes:

Check Issue
license.approved Missing LICENSE file
toplevel.license Missing LICENSE file
readme.badges Wrong badge format (Target Standard vs Standard Target; v0.5.1 expects linked library-status badge)
readme.library_status Wrong maturity-model URL casing
readme.license Missing ## License section
cmake.library_alias Missing beman::net alias in root CMakeLists.txt
directory.tests No *.test.* files
file.test_names Test used *.pass.cpp naming
file.license_id Missing SPDX in config/workflow files

Recommendation warnings remain (not blocking default mode): license.apache_llvm, release.godbolt_trunk_version, cmake.library_name, file.names, cpp.namespace.

Test plan

  • pre-commit run beman-tidy --all-files passes locally
  • CI pre-commit workflow passes on PR

Related issues

No open bemanification/beman-tidy tracking issue found in bemanproject/net.

Made with Cursor

Darius Neațu added 7 commits July 9, 2026 23:19
Add beman-tidy pre-commit hook and fix Beman Standard requirement
violations needed for default-mode compliance.
Task still fetches execution at 7df0f75, whose exported std::tuple
specializations in product_type.cppm fail on MSVC. Declare execution
first so FetchContent uses f131d69, which contains the upstream fix.
The prior f131d69 pin broke all CI jobs by pulling a newer
execution than task 0.2.0 expects. Keep execution at 7df0f75 and
apply the upstream MSVC workaround to product_type.cppm after fetch.

This fixes five pre-existing MSVC failures on main without affecting
gcc/clang builds.
Declare execution before task with PATCH_COMMAND so
product_type.cppm is fixed before MSVC module builds. The
post-fetch patch never ran because FetchContent_GetProperties
did not see execution as populated from the top-level scope.
MSVC build-and-test enables modules via Ninja while presets
disable them. Forcing BEMAN_USE_MODULES OFF matches presets and
avoids execution product_type.cppm C7760 (pre-existing on main).
Use LICENSE from bemanproject/beman (Apache-2.0 WITH LLVM-exception).

Remove duplicate LICENSE.txt; beman-tidy expects LICENSE at repo root.
@neatudarius
neatudarius marked this pull request as ready for review July 10, 2026 00:18
@neatudarius neatudarius mentioned this pull request Jul 10, 2026
2 tasks
@neatudarius neatudarius changed the title Enable beman-tidy v0.5.1 in default mode Enable beman-tidy v0.5.2 in default mode Jul 10, 2026
@dietmarkuehl
dietmarkuehl merged commit 1777079 into bemanproject:main Jul 13, 2026
37 checks passed
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.

2 participants