chore(sonar): change NOSONAR comment style (#5410)

This commit is contained in:
Dave Lane
2026-07-13 17:31:55 -04:00
committed by GitHub
parent 0d1dfe4c81
commit 24cbf6f833
6 changed files with 10 additions and 11 deletions
+4 -4
View File
@@ -89,7 +89,7 @@ X4wnh1bwdiidqpcgyuKossLOPxbS786WmsesaAWPnpoY6M8aija+ALwNNuWWmyMg
*
* This fixture creates a real server to test the actual confighttp functions.
*/
class ConfigHttpTest: public BaseTest { // NOSONAR(cpp:S3656) - protected members are intentional for test fixture subclassing
class ConfigHttpTest: public BaseTest { // NOSONAR(cpp:S3656): protected members are intentional for test fixture subclassing
protected:
std::unique_ptr<SimpleWeb::Server<SimpleWeb::HTTPS>> server;
std::unique_ptr<SimpleWeb::Client<SimpleWeb::HTTPS>> client;
@@ -132,7 +132,7 @@ protected:
};
// Create test web directory in temp
test_web_dir = std::filesystem::temp_directory_path() / "sunshine_test_confighttp"; // NOSONAR(cpp:S5443) - safe for tests
test_web_dir = std::filesystem::temp_directory_path() / "sunshine_test_confighttp"; // NOSONAR(cpp:S5443): safe for tests
std::filesystem::create_directories(test_web_dir / "web");
// Create test HTML file in WEB_DIR, creating parent directories with proper permissions
@@ -753,14 +753,14 @@ TEST_F(ConfigHttpTest, GetLocaleReturnsJson) {
* ├── file_beta.txt
* └── test_exec[.exe] (executable file)
*/
class BrowseDirectoryTest: public ConfigHttpTest { // NOSONAR(cpp:S3656) - protected members are intentional for test fixture subclassing
class BrowseDirectoryTest: public ConfigHttpTest { // NOSONAR(cpp:S3656): protected members are intentional for test fixture subclassing
protected:
std::filesystem::path browse_test_dir;
void SetUp() override {
ConfigHttpTest::SetUp();
browse_test_dir = std::filesystem::temp_directory_path() / "sunshine_browse_test"; // NOSONAR(cpp:S5443) - safe for tests
browse_test_dir = std::filesystem::temp_directory_path() / "sunshine_browse_test"; // NOSONAR(cpp:S5443): safe for tests
// Remove any leftover directory from a previous interrupted run
if (std::filesystem::exists(browse_test_dir)) {
+1 -1
View File
@@ -19,7 +19,7 @@ protected:
void SetUp() override {
BaseTest::SetUp();
// Create test directory
test_dir = fs::temp_directory_path() / "sunshine_process_png_test"; // NOSONAR(cpp:S5443) - safe for tests
test_dir = fs::temp_directory_path() / "sunshine_process_png_test"; // NOSONAR(cpp:S5443): safe for tests
fs::create_directories(test_dir);
}