15 Commits

Author SHA1 Message Date
Kacper Donat
e8a0ffcd3f CI: Disable implicit bool conversion linter warning
Implicit conversion from integer to boolean and vice versa is very
common in FreeCAD due to SbBool (from coin) being defined as int. This
creates a lot of false positives that should not be addressed in code
reviews. We also use such implicit coversions in FreeCAD often in
general so that warning is usually ignored.
2025-09-08 17:18:51 -05:00
Chris Hennes
eb9b4e44ee Update clang-tidy checks to remove avoid-do-while
While the advice is good, the overwhelming majority of "do-while" warnings that come up in our codebase are macros using a standard pattern using a do-while loop to encapsulate the macro's work.
2025-09-01 17:51:51 +02:00
Chris Hennes
7056b1c122 Clang-Tidy: Remove AnalyzeTemporaryDtors
Deprecated in clang-tidy 16 and removed in clang-tidy 18.
2024-12-23 18:23:58 +01:00
Chris Hennes
664a0a49e7 CI: Remove readability-identifier-length check (#18403) 2024-12-13 16:23:50 -03:00
Chris Hennes
7edf30a578 CI: Update clang-tidy linter exclusion filter
Don't show an error on unknown NOLINT lines (presuming that someone is using a
newer version, etc.), nor formatting issues (which are handled outside the
linter). Clean up clazy checks to remove non-pod-static check, and to do the
Qt6 checks on main (instead of master)
2024-08-05 10:49:14 -05:00
wmayer
8b8f2647d0 Base: fix bugprone reserved identifier 2023-11-20 20:30:15 +01:00
wmayer
365e7136cd fix bugprone-*
* bugprone-throw-keyword-missing
* bugprone-unhandled-self-assignment
* bugprone-suspicious-string-compare
* bugprone-reserved-identifier
* bugprone-narrowing-conversions
* bugprone-macro-parentheses
* bugprone-implicit-widening-of-multiplication-result
* bugprone-exception-escape
* bugprone-copy-constructor-init
2023-11-16 01:22:09 +01:00
wmayer
d6e6847038 Clang-tidy: enable check google-explicit-constructor
Currently this check isn't enabled but when pushing a PR then the lint checker warns about non-explicit constructors which is
a bit annoying because the PR must be updated to fix the warning or in most cases it won't be fixed at all.

By enabling this check the developer already sees the warning before pushing a PR.
2023-10-04 18:09:58 -05:00
Chris Hennes
d05be2d4f2 Clang-Tidy: Remove readability-qualified-auto 2023-04-03 17:11:19 +02:00
wmayer
e9017bdf4a clang-tidy: disable 'readability-redundant-access-specifiers' because clang-tidy fails to distinguish between 'public' vs. 'public Q_SLOTS' 2022-11-13 16:50:15 +01:00
berniev
282fa8bc3b disable nodiscard 2022-09-09 07:32:41 +02:00
wmayer
1658dd99a9 Clang: [skip ci] set minimum name length to 2 2022-09-02 13:42:42 +02:00
wmayer
cd52c344f8 Clang-tidy: [skip ci] set value of parameter readability-implicit-bool-conversion.AllowPointerConditions to true
Forum discussion: https://forum.freecadweb.org/viewtopic.php?f=10&t=71355
2022-08-24 11:15:06 +02:00
wmayer
ea233be212 clang-tidy: [skip ci] Disable modernize-use-trailing-return-type 2022-08-02 12:12:58 +02:00
Floriansimmer
9bdd6d9ce9 Ci v2 (#7282)
* Github: Build and Test

Build and Test:
- ccache
- build
- Unittest
- install
- Unittest of install
- report

misc:
- use .clang-tidy file to configure Clang-tidy checks
- use use .pylintrc to configure Pylint checks
- Update changed-files Action
- better regex for file extension filter
- show enabled clang-tidy checks in Step Report
- show enabled Pylint Checks
- cpplint filter documentation
- modified cpplint filters recomended by https://github.com/sider/runners/blob/HEAD/images/cpplint/sider_recommended_CPPLINT.cfg
- fixed Branch filter for Clazy QT6 checks --> has only worked on pull requests
- fail the CI only on Build  errors, Unittest errors and misspellings

* Github: remove Codespell action as it is now integrated into the check workflow
2022-07-30 22:29:29 +02:00