From 9d40b41a5e2c097be0279725b9e1a6ea58bbf655 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 1 Apr 2026 09:58:18 -0500 Subject: [PATCH] JCF: test out Andrew's work on differential linting by intentionally writing some bad code --- .github/workflows/dunedaq-develop-cpp-ci.yml | 2 +- include/cmdlib/CommandFacility.hpp | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dunedaq-develop-cpp-ci.yml b/.github/workflows/dunedaq-develop-cpp-ci.yml index 8a52577..eac49b3 100644 --- a/.github/workflows/dunedaq-develop-cpp-ci.yml +++ b/.github/workflows/dunedaq-develop-cpp-ci.yml @@ -25,4 +25,4 @@ on: jobs: build_develop_dispatch: name: Build against the development release - uses: DUNE-DAQ/.github/.github/workflows/dunedaq-develop-cpp-ci.yml@develop \ No newline at end of file + uses: DUNE-DAQ/.github/.github/workflows/dunedaq-develop-cpp-ci.yml@amogan/single_package_linting \ No newline at end of file diff --git a/include/cmdlib/CommandFacility.hpp b/include/cmdlib/CommandFacility.hpp index 28fb443..825ced2 100644 --- a/include/cmdlib/CommandFacility.hpp +++ b/include/cmdlib/CommandFacility.hpp @@ -8,6 +8,8 @@ #ifndef CMDLIB_INCLUDE_CMDLIB_COMMANDFACILITY_HPP_ #define CMDLIB_INCLUDE_CMDLIB_COMMANDFACILITY_HPP_ +#include + #include "cmdlib/cmd/Nljs.hpp" #include "CommandedObject.hpp" #include "Issues.hpp" @@ -49,7 +51,11 @@ namespace dunedaq::cmdlib { class CommandFacility { public: - explicit CommandFacility(std::string /*uri*/) {} + explicit CommandFacility(std::string /*uri*/) { + /* These next two lines are designed to upset our linter */ + uint8_t* blob_of_raw_memory = new uint8_t[1000]; + std::cout << "The blob of raw memory starts at " << (void*)blob_of_raw_memory; + } virtual ~CommandFacility(); CommandFacility(const CommandFacility&) = delete; ///< CommandFacility is not copy-constructible