Align codebase with DUNE-DAQ C++ Style Guide#358
Open
Conversation
- Changed ValidationReport::Severity enum to enum class with k prefix - Updated all enumerators: Fatal -> kFatal, Error -> kError, etc. - Fixed TLVL_ enum constants to use k prefix (kTlvlSession, etc.) - Updated all usages throughout the codebase Co-authored-by: eflumerf <61473357+eflumerf@users.noreply.github.com>
- Changed typedef to using declaration in DAQModuleManager.hpp - Fixed typo: "implementataion" -> "implementation" in Application.cpp - Fixed typo: "implementataion" -> "implementation" in DAQModuleManager.cpp - Fixed typo: "convinience" -> "convenience" in ConfigurationManager.hpp - Fixed typo: "mdoule" -> "module" in DAQModule.hpp Co-authored-by: eflumerf <61473357+eflumerf@users.noreply.github.com>
Co-authored-by: eflumerf <61473357+eflumerf@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Review code against DUNE-DAQ styleguide
Align codebase with DUNE-DAQ C++ Style Guide
Jan 7, 2026
Member
|
@copilot revert the changes to ConfigurationManager.cpp |
Keep original TLVL_SESSION, TLVL_APP, TLVL_MODULE, TLVL_QUEUE, TLVL_ACTION_PLAN naming. Only maintain the necessary update to use ValidationReport::Severity::kFatal for compatibility. Co-authored-by: eflumerf <61473357+eflumerf@users.noreply.github.com>
Author
Reverted the enum naming changes to ConfigurationManager.cpp. The TLVL constants now use their original all-caps naming (TLVL_SESSION, TLVL_APP, etc.). Only kept the necessary update to ValidationReport::Severity::kFatal for compatibility with the enum class change. (4ddeb76) |
eflumerf
approved these changes
Jan 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Style compliance review identified violations of the DUNE-DAQ C++ Style Guide. Changes modernize code and fix naming conventions without altering functionality.
Changes Made
Enumerator naming (§2.7)
ValidationReport::Severity: converted toenum classwithkprefixFatal→kFatal,Error→kError,Warning→kWarning, etc.Anonymous enum inREVERTED - TLVL constants kept in original all-caps format per maintainer feedbackConfigurationManager.cpp:TLVL_SESSION→kTlvlSession, etc.Type declarations (§7.7)
DAQModuleManager.hpp: replaced C-styletypedefwithusingdeclarationDocumentation
Example of enum changes:
Note: Changes to
ConfigurationManager.cppenum constants were reverted to maintain the original TLVL naming convention (TLVL_SESSION, TLVL_APP, etc.) while keeping the necessary compatibility update for ValidationReport::Severity enum values.Type of change
Testing checklist
dbt-build --unittest)pytest -s minimal_system_quick_test.py)daqsystemtest_integtest_bundle.sh)python -m pytest)pre-commit run --all-files)Automated code review and security scan completed with no issues found.
Further checks
dbt-build --lint, and/or see https://dune-daq-sw.readthedocs.io/en/latest/packages/styleguide/)Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.