mirror of
https://github.com/TheAlgorithms/C.git
synced 2026-02-13 13:54:36 +00:00
[PR #564] [MERGED] [enhancement] Added Clang tidy based static code analysis and formatting #989
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/TheAlgorithms/C/pull/564
Author: @kvedala
Created: 7/10/2020
Status: ✅ Merged
Merged: 7/11/2020
Merged by: @kvedala
Base:
master← Head:clang-tidy📝 Commits (10+)
caf5e91added clang-tidy config file26322e0update workflow to use clang-tidy checks and apply necessary fixes61998c0fix config syntax & disable rand errorb6270eatreat warnings as errorsf261bf5fix file for clang-tidy errors38f88dedisable all insecureAPI warnings08aae08disable auto-fixfd2c883enable errors when clang-tidy cannot auto-fix22202f0test passing multiple filesf13781ftest commit📊 Changes
3 files changed (+144 additions, -71 deletions)
View changed files
➕
.clang-tidy(+6 -0)📝
.github/workflows/awesome_workflow.yml(+110 -65)📝
numerical_methods/qr_eigen_values.c(+28 -6)📄 Description
Description of Change
Benefits of clang-tidy:
Moved git-push to after all checks.
References
Similar implementation for C++ repo:
https://github.com/TheAlgorithms/C-Plus-Plus/pull/943 and
https://github.com/TheAlgorithms/C-Plus-Plus/pull/947
List of all checks available: https://clang.llvm.org/extra/clang-tidy/checks/list.html
Checklist
Notes:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.