Skip to content

Add code formatting, linting, and style configs#12

Merged
Geenz merged 7 commits intomainfrom
geenz/linting
Dec 31, 2025
Merged

Add code formatting, linting, and style configs#12
Geenz merged 7 commits intomainfrom
geenz/linting

Conversation

@Geenz
Copy link
Owner

@Geenz Geenz commented Dec 31, 2025

Introduce .clang-format, .clang-tidy, .editorconfig, and .pre-commit-config.yaml for consistent code style and linting. Add linting integration to CMake and supporting scripts in tools/. Apply formatting and minor style cleanups across examples, source, and test files to match new standards.

Introduce .clang-format, .clang-tidy, .editorconfig, and .pre-commit-config.yaml for consistent code style and linting. Add linting integration to CMake and supporting scripts in tools/. Apply formatting and minor style cleanups across examples, source, and test files to match new standards.
@Geenz Geenz requested a review from Copilot December 31, 2025 00:11
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces comprehensive code formatting, linting, and style tooling to ensure consistent code quality across the codebase. Configuration files for clang-format, clang-tidy, editorconfig, and pre-commit hooks are added, along with supporting shell scripts in the tools/ directory. The changes apply automated formatting across C++ source files, headers, and shell scripts, standardizing include order, namespace formatting, brace placement, and switch statement structure. The formatting updates affect virtual file system components, logging subsystems, type system utilities, concurrency primitives, and debug facilities, ensuring uniform style throughout the project.

Key changes:

  • Added tooling configuration files (.clang-format, .clang-tidy, .editorconfig, .pre-commit-config.yaml)
  • Introduced shell scripts for code formatting, linting, and pre-commit hook setup
  • Applied consistent formatting and style cleanups across all source and header files

Reviewed changes

Copilot reviewed 144 out of 144 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tools/setup_hooks.sh Script to install and configure pre-commit hooks with auto-detection of clang-tidy
tools/lint_code.sh Script to run clang-tidy on source files using compile commands
tools/format_code.sh Script to format C/C++ source files using clang-format
src/entropy/*.cpp Applied formatting to C API implementations (include order, function signatures, whitespace)
src/VirtualFileSystem/*.{h,cpp} Standardized formatting for VFS components (namespaces, includes, braces)
src/TypeSystem/*.h Formatted type system headers (namespace braces, include order)
src/Logging/*.{h,cpp} Applied consistent style to logging subsystem (switch statements, namespaces)
src/Graph/*.h Formatted graph utilities (namespace structure, comments)
src/Debug/*.h Standardized debug utilities formatting
src/Core/*.{h,cpp} Applied formatting to core object model and service infrastructure
src/Concurrency/*.cpp Formatted concurrency implementation files

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Geenz Geenz merged commit 614fcbd into main Dec 31, 2025
10 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