Skip to content

Commit 32bc857

Browse files
committed
Add Agent Instructions
1 parent d2e4f17 commit 32bc857

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/copilot-instructions.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,8 @@ artdaq is built using CMake and the Spack package manager. A build environment i
1919
## Coding Standards
2020

2121
All C++ source files must be formatted with `clang-format`. C/C++ header files should be formatted with `clang-format` using the `.clang-format-hpp` instruction file if it exists, `.clang-format` otherwise. All python files must be formatted with `black`. The project uses the Google C++ Style Guide as a reference for coding standards, with some modifications to fit the specific needs of the artdaq framework. Developers are encouraged to follow these guidelines to maintain consistency and readability across the codebase.
22+
23+
24+
## Agent Instructions
25+
26+
When using GitHub Copilot, please ensure that the generated code adheres to the project's coding standards and guidelines. Review the generated code carefully and make any necessary adjustments to ensure it fits well within the existing codebase. Additionally, consider the context of the code being generated and how it interacts with other parts of the project to maintain overall coherence and functionality. Keep changes to a minimum, prefer removing older code and replacing with new and more efficient code. Use modern C++ standards. Be critical of existing code and suggest improvements where possible. Always prioritize readability and maintainability in the generated code.

0 commit comments

Comments
 (0)