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

[stable-3.7] Ci/clang tidy checks init variables #5490

Merged
merged 7 commits into from
Mar 2, 2023

Conversation

backportbot-nextcloud[bot]
Copy link

backport of #5436

mgallien added 7 commits March 2, 2023 13:03
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>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 2, 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

@codecov
Copy link

codecov bot commented Mar 2, 2023

Codecov Report

Merging #5490 (fb732c8) into stable-3.7 (df54ba3) will increase coverage by 0.00%.
The diff coverage is 80.00%.

Additional details and impacted files
@@             Coverage Diff             @@
##           stable-3.7    #5490   +/-   ##
===========================================
  Coverage       57.83%   57.83%           
===========================================
  Files             141      141           
  Lines           18148    18149    +1     
===========================================
+ Hits            10496    10497    +1     
  Misses           7652     7652           
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/libsync/account.cpp 36.19% <50.00%> (ø)
src/csync/std/c_time.cpp 76.00% <100.00%> (ø)
src/libsync/owncloudpropagator.h 65.87% <100.00%> (+0.79%) ⬆️
src/libsync/progressdispatcher.h 44.44% <100.00%> (+6.94%) ⬆️
src/libsync/propagateremotemkdir.h 50.00% <0.00%> (-25.00%) ⬇️

@nextcloud-desktop-bot
Copy link

AppImage file: nextcloud-PR-5490-fb732c866f0e7313fca4b6d2170990bff1cce3cf-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.

@mgallien mgallien merged commit 9e635b4 into stable-3.7 Mar 2, 2023
@mgallien mgallien deleted the backport/5436/stable-3.7 branch March 2, 2023 14:34
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