From 7d4f3a1d86f11713562fdea502aa434ad613c571 Mon Sep 17 00:00:00 2001 From: Falk Werner Date: Wed, 25 Jan 2023 21:22:51 +0100 Subject: [PATCH] add newline at end of file --- .gitignore | 2 +- CMakeLists.txt | 2 +- doc/concept.uml | 2 +- doc/webfuse.md | 2 +- script/requirements.txt | 2 +- src/main.cpp | 2 +- src/provider_main.cpp | 2 +- src/webfuse/filesystem.cpp | 2 +- src/webfuse/filesystem/accessmode.cpp | 2 +- src/webfuse/filesystem/empty_filesystem.cpp | 3 +-- src/webfuse/filesystem/filemode.cpp | 2 +- src/webfuse/filesystem/filesystem_statistics.cpp | 2 +- src/webfuse/filesystem/openflags.cpp | 2 +- src/webfuse/filesystem/status.cpp | 2 +- src/webfuse/filesystem/status.hpp | 2 +- src/webfuse/fuse.cpp | 2 +- src/webfuse/provider.cpp | 2 +- src/webfuse/request_type.cpp | 2 +- src/webfuse/request_type.hpp | 2 +- src/webfuse/response_type.cpp | 2 +- src/webfuse/response_type.hpp | 2 +- src/webfuse/util/authenticator.cpp | 3 +-- src/webfuse/util/commandline_args.cpp | 2 +- src/webfuse/util/commandline_reader.cpp | 2 +- src/webfuse/version.cpp.in | 2 +- src/webfuse/webfuse.cpp | 2 +- src/webfuse/webfuse.hpp | 2 +- src/webfuse/ws/client.cpp | 2 +- src/webfuse/ws/config.cpp | 2 +- src/webfuse/ws/messagereader.cpp | 2 +- src/webfuse/ws/messagewriter.cpp | 2 +- src/webfuse/ws/server.cpp | 2 +- src/webfuse/ws/server_handler.cpp | 2 +- src/webfuse/ws/url.cpp | 2 +- test-src/integration/test_unlink.cpp | 2 +- test-src/integration/webfuse/test/daemon.cpp | 2 +- test-src/integration/webfuse/test/fixture.cpp | 2 +- test-src/integration/webfuse/test/process.cpp | 2 +- test-src/integration/webfuse/test/tempdir.cpp | 2 +- test-src/unit/webfuse/filesystem/test_filemode.cpp | 2 +- test-src/unit/webfuse/filesystem/test_openflags.cpp | 2 +- test-src/unit/webfuse/test_request_type.cpp | 2 +- test-src/unit/webfuse/test_response_type.cpp | 2 +- 43 files changed, 43 insertions(+), 45 deletions(-) diff --git a/.gitignore b/.gitignore index d431297..c07155d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ /build/ /.vscode/ -*.pem \ No newline at end of file +*.pem diff --git a/CMakeLists.txt b/CMakeLists.txt index d35e8c9..75525b9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -126,4 +126,4 @@ if(NOT(WITHOUT_TEST)) add_custom_target(memcheck COMMAND valgrind --leak-check=full --error-exitcode=1 ./unit_tests) endif() -endif() \ No newline at end of file +endif() diff --git a/doc/concept.uml b/doc/concept.uml index e4dcb20..eb2737a 100644 --- a/doc/concept.uml +++ b/doc/concept.uml @@ -23,4 +23,4 @@ service --> user : [., ..] end ... -@enduml \ No newline at end of file +@enduml diff --git a/doc/webfuse.md b/doc/webfuse.md index 1f2e23e..a23589c 100644 --- a/doc/webfuse.md +++ b/doc/webfuse.md @@ -71,4 +71,4 @@ filesystem via fuse and exposes it's API via websockets. `webfuse -f --wf-cert /path/to/cert --wf-key /path/to/key /path/to/mountpoint` - run webfuse using authentication via `X-Auth-Token` header: `webfuse -f --wf-authenticator /path/to/authenticator \` - ` --wf-auth-header X-Auth-Token /path/to/mountpoint` \ No newline at end of file + ` --wf-auth-header X-Auth-Token /path/to/mountpoint` diff --git a/script/requirements.txt b/script/requirements.txt index 707d0d3..2da5042 100644 --- a/script/requirements.txt +++ b/script/requirements.txt @@ -1 +1 @@ -websockets==10.4 \ No newline at end of file +websockets==10.4 diff --git a/src/main.cpp b/src/main.cpp index f582bd2..4467a6a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4,4 +4,4 @@ int main(int argc, char* argv[]) { webfuse::app app; return app.run(argc, argv); -} \ No newline at end of file +} diff --git a/src/provider_main.cpp b/src/provider_main.cpp index c1bcddf..e9f63e3 100644 --- a/src/provider_main.cpp +++ b/src/provider_main.cpp @@ -485,4 +485,4 @@ int main(int argc, char* argv[]) } return ctx.exit_code; -} \ No newline at end of file +} diff --git a/src/webfuse/filesystem.cpp b/src/webfuse/filesystem.cpp index 6904f29..d326a70 100644 --- a/src/webfuse/filesystem.cpp +++ b/src/webfuse/filesystem.cpp @@ -426,4 +426,4 @@ std::string filesystem::get_credentials() } -} \ No newline at end of file +} diff --git a/src/webfuse/filesystem/accessmode.cpp b/src/webfuse/filesystem/accessmode.cpp index 6753a5c..50abab4 100644 --- a/src/webfuse/filesystem/accessmode.cpp +++ b/src/webfuse/filesystem/accessmode.cpp @@ -38,4 +38,4 @@ int access_mode::to_int() const } -} \ No newline at end of file +} diff --git a/src/webfuse/filesystem/empty_filesystem.cpp b/src/webfuse/filesystem/empty_filesystem.cpp index f89f416..b5ce3f5 100644 --- a/src/webfuse/filesystem/empty_filesystem.cpp +++ b/src/webfuse/filesystem/empty_filesystem.cpp @@ -137,5 +137,4 @@ std::string empty_filesystem::get_credentials() } - -} \ No newline at end of file +} diff --git a/src/webfuse/filesystem/filemode.cpp b/src/webfuse/filesystem/filemode.cpp index 14d54e8..0b962eb 100644 --- a/src/webfuse/filesystem/filemode.cpp +++ b/src/webfuse/filesystem/filemode.cpp @@ -47,4 +47,4 @@ mode_t filemode::to_mode() const } -} \ No newline at end of file +} diff --git a/src/webfuse/filesystem/filesystem_statistics.cpp b/src/webfuse/filesystem/filesystem_statistics.cpp index 5422b80..f1bd09b 100644 --- a/src/webfuse/filesystem/filesystem_statistics.cpp +++ b/src/webfuse/filesystem/filesystem_statistics.cpp @@ -40,4 +40,4 @@ void filesystem_statistics::copy_to(struct statvfs & other) const other.f_namemax = f_namemax; } -} \ No newline at end of file +} diff --git a/src/webfuse/filesystem/openflags.cpp b/src/webfuse/filesystem/openflags.cpp index 3547eaa..4700e8d 100644 --- a/src/webfuse/filesystem/openflags.cpp +++ b/src/webfuse/filesystem/openflags.cpp @@ -76,4 +76,4 @@ int openflags::to_int() const } -} \ No newline at end of file +} diff --git a/src/webfuse/filesystem/status.cpp b/src/webfuse/filesystem/status.cpp index 9864380..4ba6e50 100644 --- a/src/webfuse/filesystem/status.cpp +++ b/src/webfuse/filesystem/status.cpp @@ -119,4 +119,4 @@ bool status::is_good() const } -} \ No newline at end of file +} diff --git a/src/webfuse/filesystem/status.hpp b/src/webfuse/filesystem/status.hpp index 5b3f6af..e946221 100644 --- a/src/webfuse/filesystem/status.hpp +++ b/src/webfuse/filesystem/status.hpp @@ -61,4 +61,4 @@ private: } -#endif \ No newline at end of file +#endif diff --git a/src/webfuse/fuse.cpp b/src/webfuse/fuse.cpp index f2432b0..89c49ea 100644 --- a/src/webfuse/fuse.cpp +++ b/src/webfuse/fuse.cpp @@ -301,4 +301,4 @@ void fuse::print_usage() } -} \ No newline at end of file +} diff --git a/src/webfuse/provider.cpp b/src/webfuse/provider.cpp index 26fc1be..257aadc 100644 --- a/src/webfuse/provider.cpp +++ b/src/webfuse/provider.cpp @@ -434,4 +434,4 @@ void provider::set_connection_listener(std::function listener) d->set_connection_listener(listener); } -} \ No newline at end of file +} diff --git a/src/webfuse/request_type.cpp b/src/webfuse/request_type.cpp index f8ebe9a..6c35893 100644 --- a/src/webfuse/request_type.cpp +++ b/src/webfuse/request_type.cpp @@ -35,4 +35,4 @@ request_type get_request_type(uint8_t value) } } -} \ No newline at end of file +} diff --git a/src/webfuse/request_type.hpp b/src/webfuse/request_type.hpp index 6a61119..0016b65 100644 --- a/src/webfuse/request_type.hpp +++ b/src/webfuse/request_type.hpp @@ -38,4 +38,4 @@ request_type get_request_type(uint8_t value); } -#endif \ No newline at end of file +#endif diff --git a/src/webfuse/response_type.cpp b/src/webfuse/response_type.cpp index a7bb02e..9142ea4 100644 --- a/src/webfuse/response_type.cpp +++ b/src/webfuse/response_type.cpp @@ -36,4 +36,4 @@ response_type get_response_type(request_type value) } -} \ No newline at end of file +} diff --git a/src/webfuse/response_type.hpp b/src/webfuse/response_type.hpp index 6d86715..d413714 100644 --- a/src/webfuse/response_type.hpp +++ b/src/webfuse/response_type.hpp @@ -39,4 +39,4 @@ response_type get_response_type(request_type value); } -#endif \ No newline at end of file +#endif diff --git a/src/webfuse/util/authenticator.cpp b/src/webfuse/util/authenticator.cpp index 013ec7f..dd6fb38 100644 --- a/src/webfuse/util/authenticator.cpp +++ b/src/webfuse/util/authenticator.cpp @@ -51,5 +51,4 @@ bool authenticator::authenticate(std::string const & token) } - -} \ No newline at end of file +} diff --git a/src/webfuse/util/commandline_args.cpp b/src/webfuse/util/commandline_args.cpp index b97266d..a31fab9 100644 --- a/src/webfuse/util/commandline_args.cpp +++ b/src/webfuse/util/commandline_args.cpp @@ -53,4 +53,4 @@ char ** commandline_args::get_argv() } -} \ No newline at end of file +} diff --git a/src/webfuse/util/commandline_reader.cpp b/src/webfuse/util/commandline_reader.cpp index e4b07a9..db5430f 100644 --- a/src/webfuse/util/commandline_reader.cpp +++ b/src/webfuse/util/commandline_reader.cpp @@ -27,4 +27,4 @@ char const * commandline_reader::current() const } -} \ No newline at end of file +} diff --git a/src/webfuse/version.cpp.in b/src/webfuse/version.cpp.in index b9f7137..f77e3cf 100644 --- a/src/webfuse/version.cpp.in +++ b/src/webfuse/version.cpp.in @@ -8,4 +8,4 @@ char const * get_version() return "@webfuse_VERSION@"; } -} \ No newline at end of file +} diff --git a/src/webfuse/webfuse.cpp b/src/webfuse/webfuse.cpp index cdedd04..742fea6 100644 --- a/src/webfuse/webfuse.cpp +++ b/src/webfuse/webfuse.cpp @@ -44,4 +44,4 @@ WEBFUSE options: return config.exit_code; } -} \ No newline at end of file +} diff --git a/src/webfuse/webfuse.hpp b/src/webfuse/webfuse.hpp index 6e76c1e..8738cc6 100644 --- a/src/webfuse/webfuse.hpp +++ b/src/webfuse/webfuse.hpp @@ -12,4 +12,4 @@ public: } -#endif \ No newline at end of file +#endif diff --git a/src/webfuse/ws/client.cpp b/src/webfuse/ws/client.cpp index 87dae9d..1f488fb 100644 --- a/src/webfuse/ws/client.cpp +++ b/src/webfuse/ws/client.cpp @@ -237,4 +237,4 @@ void ws_client::set_connection_listener(std::function listener) d->set_connection_listener(listener); } -} \ No newline at end of file +} diff --git a/src/webfuse/ws/config.cpp b/src/webfuse/ws/config.cpp index c3e3925..df2b737 100644 --- a/src/webfuse/ws/config.cpp +++ b/src/webfuse/ws/config.cpp @@ -111,4 +111,4 @@ ws_config::ws_config(int argc, char * argv[]) } -} \ No newline at end of file +} diff --git a/src/webfuse/ws/messagereader.cpp b/src/webfuse/ws/messagereader.cpp index 4c261ad..c78aa6d 100644 --- a/src/webfuse/ws/messagereader.cpp +++ b/src/webfuse/ws/messagereader.cpp @@ -192,4 +192,4 @@ int messagereader::read_openflags() } -} \ No newline at end of file +} diff --git a/src/webfuse/ws/messagewriter.cpp b/src/webfuse/ws/messagewriter.cpp index fe565ed..37328ce 100644 --- a/src/webfuse/ws/messagewriter.cpp +++ b/src/webfuse/ws/messagewriter.cpp @@ -220,4 +220,4 @@ unsigned char * messagewriter::get_data(size_t &size) } -} \ No newline at end of file +} diff --git a/src/webfuse/ws/server.cpp b/src/webfuse/ws/server.cpp index 51bd70c..50ba599 100644 --- a/src/webfuse/ws/server.cpp +++ b/src/webfuse/ws/server.cpp @@ -176,4 +176,4 @@ messagereader ws_server::perform(messagewriter writer) } -} \ No newline at end of file +} diff --git a/src/webfuse/ws/server_handler.cpp b/src/webfuse/ws/server_handler.cpp index 2475047..72e1cd6 100644 --- a/src/webfuse/ws/server_handler.cpp +++ b/src/webfuse/ws/server_handler.cpp @@ -305,4 +305,4 @@ void server_handler::finish_authentication(lws * wsi, messagereader reader) } -} \ No newline at end of file +} diff --git a/src/webfuse/ws/url.cpp b/src/webfuse/ws/url.cpp index f024265..6209564 100644 --- a/src/webfuse/ws/url.cpp +++ b/src/webfuse/ws/url.cpp @@ -67,4 +67,4 @@ ws_url::ws_url(std::string const & url) } -} \ No newline at end of file +} diff --git a/test-src/integration/test_unlink.cpp b/test-src/integration/test_unlink.cpp index 2d14ea5..8b4f488 100644 --- a/test-src/integration/test_unlink.cpp +++ b/test-src/integration/test_unlink.cpp @@ -41,4 +41,4 @@ TEST(unlink, success) auto const path = fixture.get_path() + "/some_file"; ASSERT_EQ(0, ::unlink(path.c_str())); -} \ No newline at end of file +} diff --git a/test-src/integration/webfuse/test/daemon.cpp b/test-src/integration/webfuse/test/daemon.cpp index 31d17b2..b4e0c09 100644 --- a/test-src/integration/webfuse/test/daemon.cpp +++ b/test-src/integration/webfuse/test/daemon.cpp @@ -34,4 +34,4 @@ daemon::~daemon() p.kill(SIGINT); } -} \ No newline at end of file +} diff --git a/test-src/integration/webfuse/test/fixture.cpp b/test-src/integration/webfuse/test/fixture.cpp index 1e286fc..7b377a6 100644 --- a/test-src/integration/webfuse/test/fixture.cpp +++ b/test-src/integration/webfuse/test/fixture.cpp @@ -60,4 +60,4 @@ std::string const & fixture::get_path() const } -} \ No newline at end of file +} diff --git a/test-src/integration/webfuse/test/process.cpp b/test-src/integration/webfuse/test/process.cpp index b40b61e..2866565 100644 --- a/test-src/integration/webfuse/test/process.cpp +++ b/test-src/integration/webfuse/test/process.cpp @@ -90,4 +90,4 @@ int process::wait() return exit_code; } -} \ No newline at end of file +} diff --git a/test-src/integration/webfuse/test/tempdir.cpp b/test-src/integration/webfuse/test/tempdir.cpp index 33701b6..5be4f0f 100644 --- a/test-src/integration/webfuse/test/tempdir.cpp +++ b/test-src/integration/webfuse/test/tempdir.cpp @@ -20,4 +20,4 @@ std::string const & tempdir::name() const return path; } -} \ No newline at end of file +} diff --git a/test-src/unit/webfuse/filesystem/test_filemode.cpp b/test-src/unit/webfuse/filesystem/test_filemode.cpp index 7c72af8..9330d4c 100644 --- a/test-src/unit/webfuse/filesystem/test_filemode.cpp +++ b/test-src/unit/webfuse/filesystem/test_filemode.cpp @@ -22,4 +22,4 @@ INSTANTIATE_TEST_CASE_P(filemode_value, filemode_test, S_IFREG | 0644, S_IFDIR | 0755 ) -); \ No newline at end of file +); diff --git a/test-src/unit/webfuse/filesystem/test_openflags.cpp b/test-src/unit/webfuse/filesystem/test_openflags.cpp index f36d9e1..db9b74c 100644 --- a/test-src/unit/webfuse/filesystem/test_openflags.cpp +++ b/test-src/unit/webfuse/filesystem/test_openflags.cpp @@ -21,4 +21,4 @@ INSTANTIATE_TEST_CASE_P(openflags_values, openflags_test, O_NDELAY, O_SYNC, O_WRONLY | O_CREAT | O_TRUNC ) -); \ No newline at end of file +); diff --git a/test-src/unit/webfuse/test_request_type.cpp b/test-src/unit/webfuse/test_request_type.cpp index 23134ad..4f49639 100644 --- a/test-src/unit/webfuse/test_request_type.cpp +++ b/test-src/unit/webfuse/test_request_type.cpp @@ -34,4 +34,4 @@ TEST(request_type, unknown_values) ASSERT_EQ(expected, webfuse::get_request_type(0x80)); ASSERT_EQ(expected, webfuse::get_request_type(0x42)); ASSERT_EQ(expected, webfuse::get_request_type(0xff)); -} \ No newline at end of file +} diff --git a/test-src/unit/webfuse/test_response_type.cpp b/test-src/unit/webfuse/test_response_type.cpp index 6e20b21..13e1744 100644 --- a/test-src/unit/webfuse/test_response_type.cpp +++ b/test-src/unit/webfuse/test_response_type.cpp @@ -35,4 +35,4 @@ TEST(respones_type, unknown_values) ASSERT_EQ(expected, webfuse::get_response_type(static_cast(80))); ASSERT_EQ(expected, webfuse::get_response_type(static_cast(0x42))); ASSERT_EQ(expected, webfuse::get_response_type(static_cast(0xff))); -} \ No newline at end of file +}