Skip to content

Conversation

@lefticus
Copy link
Member

  • additional tool support
  • strict settings on lizard

* Add AI_GUIDELINES.md with framework-agnostic instructions for AI tools
* Add HUMAN_GUIDELINES.md with project philosophy and best practices
* Implement Lizard code complexity analyzer with configurable thresholds
* Add consistent missing tool warnings with option to treat as errors
* Set up HTML and XML report generation for Lizard
* Improve CMake warnings handling with myproject_WARNING_TYPE variable
* Ensure clang-format is used to maintain consistent code style
* Add detailed Modern C++ Coding Guidelines section
* Add guidelines for ensuring code quality with project tools
* Implement copy-paste detection in Lizard
* Add missing tools detection guidance
* Include preferred build configuration
* Add development workflow recommendations
* Update guidelines with C++23 Best Practices book chapters

These updates provide comprehensive guidance for AI assistants
working with the project while encouraging proper tool usage.
* Add Bloaty.cmake module with comprehensive binary analysis targets
* Create per-executable analysis targets and global target
* Support CSV reports, baselines, and specialized template analysis
* Disable by default since it's not available on all systems
* Update AI_GUIDELINES.md with Bloaty usage instructions
* Add Bloaty to the list of optional tools in guidelines

This helps developers identify binary size issues like template
bloat and large static data, which is valuable for performance
optimization and embedded systems development.
@lefticus lefticus requested a review from Copilot April 30, 2025 16:07
Copy link

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 enhances the project documentation by introducing separate guidelines for human developers and AI agents, ensuring that best practices and strict analysis rules are clearly communicated.

  • Adds comprehensive human developer guidelines including C++ best practices, static analysis, and CI/CD setup.
  • Introduces AI agent guidelines that outline project configuration, testing workflows, dependency management, and modern C++ standards.

Reviewed Changes

Copilot reviewed 2 out of 9 changed files in this pull request and generated 1 comment.

File Description
HUMAN_GUIDELINES.md New human-centric guidelines detailing project purpose, best practices, and tool usage.
AI_GUIDELINES.md New AI-centric guidelines outlining project overview, testing, dependency management, and workflows.
Files not reviewed (7)
  • CMakeLists.txt: Language not supported
  • ProjectOptions.cmake: Language not supported
  • cmake/Bloaty.cmake: Language not supported
  • cmake/Cache.cmake: Language not supported
  • cmake/Lizard.cmake: Language not supported
  • cmake/Sanitizers.cmake: Language not supported
  • cmake/StaticAnalyzers.cmake: Language not supported

@codecov
Copy link

codecov bot commented Apr 30, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 20.33%. Comparing base (1015c6b) to head (f664e15).
⚠️ Report is 13 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #112      +/-   ##
==========================================
- Coverage   20.50%   20.33%   -0.17%     
==========================================
  Files           5        5              
  Lines         239      236       -3     
  Branches      112       86      -26     
==========================================
- Hits           49       48       -1     
- Misses        179      186       +7     
+ Partials       11        2       -9     
Flag Coverage Δ
Linux ?
Windows 20.85% <ø> (-0.18%) ⬇️
macOS 19.07% <ø> (+0.97%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@lefticus lefticus changed the title Enhanced guidelines for AI and Humands Enhanced guidelines for AI and Humans May 1, 2025
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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