From b2c7584b55a6851939bfb9bffad75e6715e891d2 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 23 Sep 2024 04:27:47 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/addon/compiler.cpp | 2 +- src/addon/sandbox.cpp | 2 +- src/atom/algorithm/base.hpp | 2 +- src/atom/async/daemon.cpp | 2 +- src/atom/async/eventstack.hpp | 2 +- src/atom/async/message_bus.hpp | 2 +- src/atom/async/message_queue.hpp | 2 +- src/atom/async/pool.hpp | 2 +- src/atom/components/package.hpp | 2 +- src/atom/connection/sshclient.cpp | 2 +- src/atom/connection/sshclient.hpp | 2 +- src/atom/function/anymeta.hpp | 2 +- src/atom/type/iter.hpp | 2 +- src/atom/type/rjson.cpp | 2 +- src/atom/type/rjson.hpp | 2 +- src/atom/type/ryaml.hpp | 2 +- src/atom/type/static_string.hpp | 2 +- src/atom/type/trackable.hpp | 2 +- src/atom/utils/to_string.hpp | 2 +- src/target/engine.cpp | 2 +- tests/atom/connection/sshclient_mock.hpp | 2 +- tests/atom/search/lru.cpp | 2 +- tests/build_and_test.ps1 | 2 +- 23 files changed, 23 insertions(+), 23 deletions(-) diff --git a/src/addon/compiler.cpp b/src/addon/compiler.cpp index 37dc6806..0ddfac6c 100644 --- a/src/addon/compiler.cpp +++ b/src/addon/compiler.cpp @@ -369,4 +369,4 @@ void Compiler::generateCompileCommands(const std::string &sourceDir) { impl_->generateCompileCommands(sourceDir); } -} // namespace lithium \ No newline at end of file +} // namespace lithium diff --git a/src/addon/sandbox.cpp b/src/addon/sandbox.cpp index 239f3388..d45bf608 100644 --- a/src/addon/sandbox.cpp +++ b/src/addon/sandbox.cpp @@ -327,4 +327,4 @@ auto SandboxImpl::run() -> bool { #endif } -} // namespace lithium \ No newline at end of file +} // namespace lithium diff --git a/src/atom/algorithm/base.hpp b/src/atom/algorithm/base.hpp index 45c0c35b..5394ac2c 100644 --- a/src/atom/algorithm/base.hpp +++ b/src/atom/algorithm/base.hpp @@ -209,4 +209,4 @@ constexpr auto cbase64Decode(const StaticString &input) { } } // namespace atom::algorithm -#endif \ No newline at end of file +#endif diff --git a/src/atom/async/daemon.cpp b/src/atom/async/daemon.cpp index 964eaefe..5c1f34b4 100644 --- a/src/atom/async/daemon.cpp +++ b/src/atom/async/daemon.cpp @@ -210,4 +210,4 @@ auto checkPidFile() -> bool { return kill(pid, 0) != -1 || errno != ESRCH; #endif } -} // namespace atom::async \ No newline at end of file +} // namespace atom::async diff --git a/src/atom/async/eventstack.hpp b/src/atom/async/eventstack.hpp index ea56c7d5..cd07bd78 100644 --- a/src/atom/async/eventstack.hpp +++ b/src/atom/async/eventstack.hpp @@ -377,4 +377,4 @@ auto EventStack::allEvents(std::function predicate) const } } // namespace atom::async -#endif // ATOM_ASYNC_EVENTSTACK_HPP \ No newline at end of file +#endif // ATOM_ASYNC_EVENTSTACK_HPP diff --git a/src/atom/async/message_bus.hpp b/src/atom/async/message_bus.hpp index c70c6058..d16aaee4 100644 --- a/src/atom/async/message_bus.hpp +++ b/src/atom/async/message_bus.hpp @@ -281,4 +281,4 @@ class MessageBus { }; } // namespace atom::async -#endif // ATOM_ASYNC_MESSAGE_BUS_HPP \ No newline at end of file +#endif // ATOM_ASYNC_MESSAGE_BUS_HPP diff --git a/src/atom/async/message_queue.hpp b/src/atom/async/message_queue.hpp index 536b6bc6..58b61a74 100644 --- a/src/atom/async/message_queue.hpp +++ b/src/atom/async/message_queue.hpp @@ -251,4 +251,4 @@ void MessageQueue::processMessages() { } // namespace atom::async -#endif \ No newline at end of file +#endif diff --git a/src/atom/async/pool.hpp b/src/atom/async/pool.hpp index 6d4eb817..9b21e26a 100644 --- a/src/atom/async/pool.hpp +++ b/src/atom/async/pool.hpp @@ -391,4 +391,4 @@ class ThreadPool { }; } // namespace atom::async -#endif // ATOM_ASYNC_POOL_HPP \ No newline at end of file +#endif // ATOM_ASYNC_POOL_HPP diff --git a/src/atom/components/package.hpp b/src/atom/components/package.hpp index e4445a1f..61e451f3 100644 --- a/src/atom/components/package.hpp +++ b/src/atom/components/package.hpp @@ -212,4 +212,4 @@ constexpr void SplitArrayElements( } } -#endif // ATOM_COMPONENTS_PACKAGE_HPP \ No newline at end of file +#endif // ATOM_COMPONENTS_PACKAGE_HPP diff --git a/src/atom/connection/sshclient.cpp b/src/atom/connection/sshclient.cpp index f565f85d..f634c464 100644 --- a/src/atom/connection/sshclient.cpp +++ b/src/atom/connection/sshclient.cpp @@ -305,4 +305,4 @@ void SSHClient::uploadDirectory(const std::string &local_path, } } } -} // namespace atom::connection \ No newline at end of file +} // namespace atom::connection diff --git a/src/atom/connection/sshclient.hpp b/src/atom/connection/sshclient.hpp index 764182c3..3bd17e8b 100644 --- a/src/atom/connection/sshclient.hpp +++ b/src/atom/connection/sshclient.hpp @@ -192,4 +192,4 @@ class SSHClient { } // namespace atom::connection #endif -#endif \ No newline at end of file +#endif diff --git a/src/atom/function/anymeta.hpp b/src/atom/function/anymeta.hpp index 131851fa..2c8dffa3 100644 --- a/src/atom/function/anymeta.hpp +++ b/src/atom/function/anymeta.hpp @@ -299,4 +299,4 @@ class TypeRegistrar { } // namespace atom::meta -#endif // ATOM_META_ANYMETA_HPP \ No newline at end of file +#endif // ATOM_META_ANYMETA_HPP diff --git a/src/atom/type/iter.hpp b/src/atom/type/iter.hpp index bef1fff7..f2660231 100644 --- a/src/atom/type/iter.hpp +++ b/src/atom/type/iter.hpp @@ -564,4 +564,4 @@ auto makeZipIterator(Iterators... its) -> ZipIterator { return ZipIterator(its...); } -#endif // ATOM_EXPERIMENTAL_ITERATOR_HPP \ No newline at end of file +#endif // ATOM_EXPERIMENTAL_ITERATOR_HPP diff --git a/src/atom/type/rjson.cpp b/src/atom/type/rjson.cpp index 64c3b08e..fb3644e9 100644 --- a/src/atom/type/rjson.cpp +++ b/src/atom/type/rjson.cpp @@ -300,4 +300,4 @@ void JsonParser::skipWhitespace(const std::string& str, size_t& index) { } } -} // namespace atom::type \ No newline at end of file +} // namespace atom::type diff --git a/src/atom/type/rjson.hpp b/src/atom/type/rjson.hpp index dda0aa1c..f5abb392 100644 --- a/src/atom/type/rjson.hpp +++ b/src/atom/type/rjson.hpp @@ -227,4 +227,4 @@ class JsonParser { } // namespace atom::type -#endif // ATOM_TYPE_RJSON_HPP \ No newline at end of file +#endif // ATOM_TYPE_RJSON_HPP diff --git a/src/atom/type/ryaml.hpp b/src/atom/type/ryaml.hpp index 053bdc6a..8d5e61c7 100644 --- a/src/atom/type/ryaml.hpp +++ b/src/atom/type/ryaml.hpp @@ -245,4 +245,4 @@ class YamlParser { } // namespace atom::type -#endif // ATOM_TYPE_RYAML_HPP \ No newline at end of file +#endif // ATOM_TYPE_RYAML_HPP diff --git a/src/atom/type/static_string.hpp b/src/atom/type/static_string.hpp index 2d96703c..e5eee41e 100644 --- a/src/atom/type/static_string.hpp +++ b/src/atom/type/static_string.hpp @@ -254,4 +254,4 @@ constexpr auto operator+(const StaticString& lhs, return result; } -#endif // ATOM_EXPERIMENT_SSTRING_HPP \ No newline at end of file +#endif // ATOM_EXPERIMENT_SSTRING_HPP diff --git a/src/atom/type/trackable.hpp b/src/atom/type/trackable.hpp index f31df24f..10d2ed51 100644 --- a/src/atom/type/trackable.hpp +++ b/src/atom/type/trackable.hpp @@ -247,4 +247,4 @@ class Trackable { } }; -#endif // ATOM_TYPE_TRACKABLE_HPP \ No newline at end of file +#endif // ATOM_TYPE_TRACKABLE_HPP diff --git a/src/atom/utils/to_string.hpp b/src/atom/utils/to_string.hpp index 906beaa2..b1a59ff1 100644 --- a/src/atom/utils/to_string.hpp +++ b/src/atom/utils/to_string.hpp @@ -266,4 +266,4 @@ auto toString(const std::array& array) -> std::string { } // namespace atom::utils -#endif // ATOM_UTILS_TO_STRING_HPP \ No newline at end of file +#endif // ATOM_UTILS_TO_STRING_HPP diff --git a/src/target/engine.cpp b/src/target/engine.cpp index 8e98a00a..245bcf79 100644 --- a/src/target/engine.cpp +++ b/src/target/engine.cpp @@ -168,4 +168,4 @@ auto levenshteinDistance(const std::string& str1, return distanceMatrix[STR1_SIZE][STR2_SIZE]; } -} // namespace lithium::target \ No newline at end of file +} // namespace lithium::target diff --git a/tests/atom/connection/sshclient_mock.hpp b/tests/atom/connection/sshclient_mock.hpp index 3fbfe7dc..7056b9c5 100644 --- a/tests/atom/connection/sshclient_mock.hpp +++ b/tests/atom/connection/sshclient_mock.hpp @@ -159,4 +159,4 @@ extern "C" { } } -#endif // SSHCLIENT_MOCK_HPP \ No newline at end of file +#endif // SSHCLIENT_MOCK_HPP diff --git a/tests/atom/search/lru.cpp b/tests/atom/search/lru.cpp index c534db49..1925f76c 100644 --- a/tests/atom/search/lru.cpp +++ b/tests/atom/search/lru.cpp @@ -203,4 +203,4 @@ TEST(LRUCacheTest, ConcurrentAccess) { EXPECT_EQ(cache.get(1).value_or("not found"), "one"); EXPECT_EQ(cache.get(2).value_or("not found"), "two"); -} \ No newline at end of file +} diff --git a/tests/build_and_test.ps1 b/tests/build_and_test.ps1 index 529a33f4..4852b223 100644 --- a/tests/build_and_test.ps1 +++ b/tests/build_and_test.ps1 @@ -119,4 +119,4 @@ ctest --output-on-failure # Return to the original directory Set-Location -Path .. -Write-Output "Build and test process completed successfully." \ No newline at end of file +Write-Output "Build and test process completed successfully."