Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ci/clang tidy checks init variables #5436

Merged
merged 7 commits into from
Feb 22, 2023
Merged

Conversation

mgallien
Copy link
Collaborator

No description provided.

@codecov
Copy link

codecov bot commented Feb 14, 2023

Codecov Report

Merging #5436 (151d17a) into master (41a24b4) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5436      +/-   ##
==========================================
- Coverage   57.83%   57.82%   -0.01%     
==========================================
  Files         141      141              
  Lines       18146    18147       +1     
==========================================
- Hits        10495    10494       -1     
- Misses       7651     7653       +2     
Impacted Files Coverage Δ
src/common/filesystembase.cpp 76.43% <ø> (ø)
src/csync/vio/csync_vio_local_win.cpp 81.39% <ø> (ø)
src/libsync/owncloudpropagator.cpp 86.60% <ø> (ø)
src/csync/std/c_time.cpp 76.00% <100.00%> (ø)
src/libsync/progressdispatcher.h 44.44% <100.00%> (+6.94%) ⬆️
src/libsync/propagateremotemkdir.h 50.00% <0.00%> (-25.00%) ⬇️
src/libsync/propagateremotemove.cpp 81.60% <0.00%> (-0.58%) ⬇️

@mgallien mgallien force-pushed the ci/clangTidyChecksInitVariables branch 2 times, most recently from ab1a438 to bff04bc Compare February 15, 2023 10:54
src/gui/filedetails/shareemodel.h Outdated Show resolved Hide resolved
@mgallien mgallien force-pushed the ci/clangTidyChecksInitVariables branch from bff04bc to 3e6fcb6 Compare February 21, 2023 13:26
@mgallien mgallien force-pushed the ci/clangTidyChecksInitVariables branch 3 times, most recently from 4adfab0 to 94c6f20 Compare February 22, 2023 08:17
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
done with clang-tidy

run-clang-tidy -p build -header-filter='.*' -config="{Checks: '*', CheckOptions: [{key: UseAssignment, value: true}]}" -checks='-*,modernize-use-auto' -fix

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
using a static_cast like this means that the compiler will not check the
validity of the cast

this could lead now or later to crash and other issues if the real type
is not the one in the cast

done with clang-tidy

run-clang-tidy -p build -header-filter='.*' -config="{Checks: '*', CheckOptions: [{key: UseAssignment, value: true}]}" -checks='-*,cppcoreguidelines-pro-type-static-cast-downcast' -fix

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
fix windows specific code compilation warnings

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
@mgallien mgallien force-pushed the ci/clangTidyChecksInitVariables branch from 94c6f20 to 151d17a Compare February 22, 2023 15:50
@nextcloud-desktop-bot
Copy link

AppImage file: nextcloud-PR-5436-151d17aed4554971e3d223a5ba54856c1f8098ef-x86_64.AppImage

To test this change/fix you can simply download above AppImage file and test it.

Please make sure to quit your existing Nextcloud app and backup your data.

@sonarcloud
Copy link

sonarcloud bot commented Feb 22, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@mgallien mgallien merged commit 73ae8a1 into master Feb 22, 2023
@mgallien mgallien deleted the ci/clangTidyChecksInitVariables branch February 22, 2023 16:53
@mgallien
Copy link
Collaborator Author

mgallien commented Mar 2, 2023

/backport to stable-3.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants