Skip to content

Commit

Permalink
fix: Coderabbit suggestions part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
acgetchell committed Nov 1, 2024
1 parent 26a6058 commit 8daf99c
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 22 deletions.
29 changes: 11 additions & 18 deletions .coderabbit.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
language: en-US
tone_instructions: ''
tone_instructions: 'Be constructive and professional. Focus on technical accuracy while maintaining a friendly tone.'
early_access: true
enable_free_tier: true
reviews:
Expand All @@ -15,8 +15,16 @@ reviews:
sequence_diagrams: true
changed_files_summary: true
labeling_instructions: []
path_filters: []
path_instructions: []
path_filters:
- 'src/**/*.cpp'
- 'include/**/*.hpp'
path_instructions:
- path: 'src/**/*.cpp'
instructions: 'Focus on performance, memory management, and RAII principles'
- path: 'include/**/*.hpp'
instructions: 'Focus on design patterns, interfaces, and encapsulation'
- path: 'test/**/*.cpp'
instructions: 'Ensure comprehensive test coverage and proper test organization'
abort_on_close: true
auto_review:
enabled: true
Expand All @@ -28,8 +36,6 @@ reviews:
tools:
shellcheck:
enabled: true
ruff:
enabled: true
markdownlint:
enabled: true
github-checks:
Expand All @@ -43,25 +49,12 @@ reviews:
enabled: true
hadolint:
enabled: true
swiftlint:
enabled: true
phpstan:
enabled: true
level: default
golangci-lint:
enabled: true
yamllint:
enabled: true
gitleaks:
enabled: true
checkov:
enabled: true
detekt:
enabled: true
eslint:
enabled: true
rubocop:
enabled: true
buf:
enabled: true
regal:
Expand Down
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@ include(CMakeDependentOption)
# Set CGAL_DATA_DIR to the location of the CGAL data files
set(ENV{CGAL_DATA_DIR} CMAKE_BINARY_DIR/Data)

if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS "19.34")
message(FATAL_ERROR "MSVC 19.34 or higher required for C++23 support")
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS "12.2")
message(FATAL_ERROR "GCC 12.2 or higher required for C++23 support")
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS "16.0")
message(FATAL_ERROR "Clang 16.0 or higher required for C++23 support")
endif()

# Set NOMINMAX to avoid min/max macro errors on Windows in date.h
#if(WIN32)
# # Workaround for https://github.com/CGAL/cgal/issues/4665 and https://github.com/microsoft/vcpkg/issues/23572
Expand Down
1 change: 0 additions & 1 deletion cmake/StandardProjectSettings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,3 @@ if (MSVC)
else()
add_compile_options(-finput-charset=UTF-8)
endif()

4 changes: 2 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ target_compile_features(cdt PRIVATE cxx_std_23)
# spdlog::spdlog_header_only
# TBB::tbb
# CGAL::CGAL_Basic_viewer)
# target_compile_features(cdt-viewer PRIVATE cxx_std_20)
# target_compile_features(cdt-viewer PRIVATE cxx_std_23)
#endif()

# Build bistellar-flip locally, but not in CI since QT takes more than an hour to build there
Expand All @@ -69,7 +69,7 @@ target_compile_features(cdt PRIVATE cxx_std_23)
# spdlog::spdlog_header_only
# TBB::tbb)
# CGAL::CGAL_Basic_viewer)
# target_compile_features(bistellar-flip PRIVATE cxx_std_20)
# target_compile_features(bistellar-flip PRIVATE cxx_std_23)
#endif()

#
Expand Down
2 changes: 1 addition & 1 deletion src/bistellar-flip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ try
manifolds::Manifold_3 const manifold{
foliated_triangulations::FoliatedTriangulation_3{dt, 0, 1}
};
// CGAL::draw(manifold.get_delaunay());
// CGAL::draw(manifold.get_delaunay());
fmt::print("After bistellar flip.\n");
manifold.print_cells();
utilities::print_delaunay(dt);
Expand Down

0 comments on commit 8daf99c

Please sign in to comment.