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 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 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; } 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 {