diff --git a/.github/.linkspector.yml b/.github/.linkspector.yml new file mode 100644 index 0000000..56b8433 --- /dev/null +++ b/.github/.linkspector.yml @@ -0,0 +1,17 @@ +dirs: + - . +excludedDirs: + - workflows + - animation + - scripts +aliveStatusCodes: + - 200 + - 206 + - 403 +ignorePatterns: + - pattern: "^https://bazel.build" + - pattern: "^https://makefiletutorial.com" +modifiedFilesOnly: true +replacementPatterns: + - pattern: "" + replacement: "[blah](https://blah.blah)" diff --git a/.github/mcl_config.json b/.github/mcl_config.json deleted file mode 100644 index e6d168e..0000000 --- a/.github/mcl_config.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "aliveStatusCodes": [200, 206, 403], - "ignorePatterns": [ - { - "bazel": "^https://bazel.build", - "make": "^https://makefiletutorial.com" - } - ] -} diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 3ecb439..a0fb8c7 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -7,10 +7,13 @@ jobs: name: All Markdown links are valid runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: gaurav-nelson/github-action-markdown-link-check@v1 - with: - config-file: '.github/mcl_config.json' + - uses: actions/checkout@v4 + - name: Run linkspector + uses: umbrelladocs/action-linkspector@v1 + with: + reporter: github-pr-review + fail_level: any + config_file: .github/.linkspector.yml check-snippet-compilation: name: All code snippets compile diff --git a/lectures/compilation_debugging.md b/lectures/compilation_debugging.md index 408488a..9e4ec66 100644 --- a/lectures/compilation_debugging.md +++ b/lectures/compilation_debugging.md @@ -35,7 +35,7 @@ Style (🎨) and software design (πŸŽ“) recommendations mostly come from [Google ```cmd c++ -std=c++17 -o test test.cpp ``` -- βœ… Enable **most** [warnings](https://gcc.gnu.org/onlinedocs/gcc/gcc-command-options/options-to-request-or-suppress-warnings.html#cmdoption-Wall), treat them as errors: +- βœ… Enable **most** [warnings](https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wall), treat them as errors: `-Wall`, `-Wextra`, `-Wpedantic`, `-Werror` - Other warnings possible too: `-Wimplicit-fallthrough`, `-Wsign-conversion`, etc. diff --git a/lectures/cpp_basic_types_and_variables.md b/lectures/cpp_basic_types_and_variables.md index fc42429..7c6da40 100644 --- a/lectures/cpp_basic_types_and_variables.md +++ b/lectures/cpp_basic_types_and_variables.md @@ -148,7 +148,7 @@ int main() { --- -# Always initialize all variables! 🚨 +# Always initialize all variables! (unless measured slow, stay tuned to a later point in the course)