From 6e01839185d82b9ff0c16e927a428aad40bd5bb5 Mon Sep 17 00:00:00 2001 From: MAUsova <89969509+MAUsova@users.noreply.github.com> Date: Wed, 18 Oct 2023 13:57:51 +0300 Subject: [PATCH 1/4] fix 7 line --- lib_example/example.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib_example/example.cpp b/lib_example/example.cpp index 4423470..96f54c7 100644 --- a/lib_example/example.cpp +++ b/lib_example/example.cpp @@ -4,6 +4,8 @@ #include "../lib_example/example.h" float division(int a, int b) { - if (b == 0) throw std::invalid_argument("Input Error: can't divide by zero!"); + if (b == 0) { + throw std::invalid_argument("Input Error: can't divide by zero!"); + } return static_cast(a) / b; } From 776048e8560f17b6e879b7c5a8bc0f8037fa8adf Mon Sep 17 00:00:00 2001 From: MAUsova <89969509+MAUsova@users.noreply.github.com> Date: Wed, 18 Oct 2023 14:11:50 +0300 Subject: [PATCH 2/4] Update example.h --- lib_example/example.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib_example/example.h b/lib_example/example.h index ce81346..6933aa1 100644 --- a/lib_example/example.h +++ b/lib_example/example.h @@ -7,15 +7,16 @@ #include #include -/********************************* ****************************/ +/********************************* ÏÐÈÌÅÐ ÔÓÍÊÖÈÉ ****************************/ float division(int a, int b); /*****************************************************************************/ -/************************* **************************/ +/************************* ÏÐÈÌÅÐ ØÀÁËÎÍÍÛÕ ÊËÀÑÑÎÂ **************************/ template class ExampleClass; template -std::ostream& operator<<(std::ostream& out, const ExampleClass& obj) noexcept; +std::ostream& operator<<(std::ostream& out, + const ExampleClass& obj) noexcept; template class ExampleClass { From c6114a6eb6acb42be96b0602cfeb180bba7727f9 Mon Sep 17 00:00:00 2001 From: MAUsova <89969509+MAUsova@users.noreply.github.com> Date: Wed, 18 Oct 2023 14:13:34 +0300 Subject: [PATCH 3/4] Update cpplint.yml --- .github/workflows/cpplint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cpplint.yml b/.github/workflows/cpplint.yml index c1552dc..3a469d4 100644 --- a/.github/workflows/cpplint.yml +++ b/.github/workflows/cpplint.yml @@ -2,7 +2,7 @@ # https://github.com/cpplint/GitHub-Action-for-cpplint name: cpplint -on: [push, pull_request, pull_request_target, fork] +on: [push, pull_request] jobs: cpplint: runs-on: ubuntu-latest From 1d7e592897ef36ec5592f9d6b9fa86b87d29a84f Mon Sep 17 00:00:00 2001 From: MAUsova <89969509+MAUsova@users.noreply.github.com> Date: Wed, 18 Oct 2023 14:13:48 +0300 Subject: [PATCH 4/4] Update cpplint_modified_files.yml --- .github/workflows/cpplint_modified_files.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cpplint_modified_files.yml b/.github/workflows/cpplint_modified_files.yml index 01e9ba9..adda0b2 100644 --- a/.github/workflows/cpplint_modified_files.yml +++ b/.github/workflows/cpplint_modified_files.yml @@ -6,7 +6,7 @@ # From: https://github.com/cpplint/GitHub-Action-for-cpplint name: cpplint -on: [push, pull_request, pull_request_target, fork] +on: [push, pull_request] jobs: cpplint: runs-on: ubuntu-latest