Skip to content

Add examples directory#9

Merged
neatudarius merged 14 commits intobemanproject:mainfrom
Dragosh-C:issue/253-2
Apr 25, 2026
Merged

Add examples directory#9
neatudarius merged 14 commits intobemanproject:mainfrom
Dragosh-C:issue/253-2

Conversation

@Dragosh-C
Copy link
Copy Markdown
Contributor

@Dragosh-C Dragosh-C commented Apr 25, 2026

Issue: bemanproject/beman-tidy#253

beman-tidy before:

[error][directory.examples]: The directory 'examples' does not exist.
	check [Requirement][directory.examples] ... failed

beman-tidy after:

Running check [Requirement][directory.examples] ... 
	check [Requirement][directory.examples] ... passed

Comment thread README.md
Copy link
Copy Markdown
Member

@ednolan ednolan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the project doesn't have examples, don't add empty files just to make the check pass. Either it should have real examples or the beman-tidy check is correct to fail.

@Dragosh-C Dragosh-C marked this pull request as draft April 25, 2026 12:51
Comment thread CMakeLists.txt Outdated
Comment thread examples/CMakeLists.txt Outdated
@neatudarius
Copy link
Copy Markdown
Member

If the project doesn't have examples, don't add empty files just to make the check pass. Either it should have real examples or the beman-tidy check is correct to fail.

Real examples were added - I agree that must be!

@ednolan , it seems that main fails to build before this PR - can you help here?

@neatudarius neatudarius marked this pull request as ready for review April 25, 2026 12:53
Copy link
Copy Markdown
Member

@ednolan ednolan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please address the clang-format suggestions and rebase this commit onto the latest main (that should remove the failing markdownlint checks).

Comment thread examples/sample_usage.cpp Outdated
int operator()() const noexcept { return 43; }
};

int main()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[pre-commit] reported by reviewdog 🐶

Suggested change
int main()
int x = f();

Copy link
Copy Markdown
Member

@neatudarius neatudarius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now tests pass. I will do admin merge.

Comment thread examples/sample_usage.cpp Outdated
@neatudarius neatudarius merged commit 2423d78 into bemanproject:main Apr 25, 2026
65 of 67 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.

3 participants