Skip to content

Conversation

@rozukke
Copy link
Owner

@rozukke rozukke commented Apr 3, 2025

Overdue. Also needs a vibe check.

@rozukke rozukke added the documentation Improvements or additions to documentation label Apr 3, 2025
@rozukke rozukke self-assigned this Apr 3, 2025
github-actions[bot]

This comment was marked as outdated.

@github-actions github-actions bot dismissed their stale review April 3, 2025 06:40

outdated suggestion

github-actions[bot]

This comment was marked as outdated.

@github-actions github-actions bot dismissed their stale review April 3, 2025 06:46

outdated suggestion

github-actions[bot]

This comment was marked as outdated.

@github-actions
Copy link
Contributor

github-actions bot commented Apr 3, 2025

Cpp-Linter Report ⚠️

Some files did not pass the configured checks!

clang-format (v14.0.6) reports: 2 file(s) not formatted
  • example/pyramid.cpp
  • include/mcpp/block.h

Have any feedback or feature suggestions? Share it here.

@github-actions github-actions bot dismissed their stale review April 3, 2025 06:49

outdated suggestion

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Cpp-linter Review

Used clang-format v14.0.6

Click here for the full clang-format patch
diff --git a/example/pyramid.cpp b/example/pyramid.cpp
index 9e9249c..d28bfb9 100644
--- a/example/pyramid.cpp
+++ b/example/pyramid.cpp
@@ -13 +13,2 @@ void make_ring(mcpp::Coordinate base_pt, int side_len) {
-  mc.set_blocks(base_pt, base_pt + mcpp::Coordinate(side_len, 0, side_len), mcpp::Blocks::SANDSTONE);
+  mc.set_blocks(base_pt, base_pt + mcpp::Coordinate(side_len, 0, side_len),
+                mcpp::Blocks::SANDSTONE);
@@ -18 +19 @@ void make_ring(mcpp::Coordinate base_pt, int side_len) {
-               mcpp::Blocks::AIR);
+                mcpp::Blocks::AIR);
diff --git a/include/mcpp/block.h b/include/mcpp/block.h
index dc9ce79..747ae11 100644
--- a/include/mcpp/block.h
+++ b/include/mcpp/block.h
@@ -17 +17 @@ public:
-  constexpr BlockType(uint8_t id = 0, uint8_t mod = 0) : id(id), mod(mod) {};
+  constexpr BlockType(uint8_t id = 0, uint8_t mod = 0) : id(id), mod(mod){};

Have any feedback or feature suggestions? Share it here.

void make_ring(mcpp::Coordinate base_pt, int side_len) {
// Flat plane
mc.setBlocks(base_pt, base_pt + mcpp::Coordinate(side_len, 0, side_len), mcpp::Blocks::SANDSTONE);
mc.set_blocks(base_pt, base_pt + mcpp::Coordinate(side_len, 0, side_len), mcpp::Blocks::SANDSTONE);
Copy link
Contributor

Choose a reason for hiding this comment

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

clang-format suggestion

Suggested change
mc.set_blocks(base_pt, base_pt + mcpp::Coordinate(side_len, 0, side_len), mcpp::Blocks::SANDSTONE);
mc.set_blocks(base_pt, base_pt + mcpp::Coordinate(side_len, 0, side_len),
mcpp::Blocks::SANDSTONE);

base_pt = base_pt + mcpp::Coordinate(1, 0, 1);
mc.setBlocks(base_pt, base_pt + mcpp::Coordinate(side_len - 2, 0, side_len - 2),
mc.set_blocks(base_pt, base_pt + mcpp::Coordinate(side_len - 2, 0, side_len - 2),
mcpp::Blocks::AIR);
Copy link
Contributor

Choose a reason for hiding this comment

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

clang-format suggestion

Suggested change
mcpp::Blocks::AIR);
mcpp::Blocks::AIR);


// NOLINTNEXTLINE
constexpr BlockType(uint8_t id = 0, uint8_t mod = 0) : id(id), mod(mod){};
constexpr BlockType(uint8_t id = 0, uint8_t mod = 0) : id(id), mod(mod) {};
Copy link
Contributor

Choose a reason for hiding this comment

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

clang-format suggestion

Suggested change
constexpr BlockType(uint8_t id = 0, uint8_t mod = 0) : id(id), mod(mod) {};
constexpr BlockType(uint8_t id = 0, uint8_t mod = 0) : id(id), mod(mod){};

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

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants