Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fix(discovery): check quota before upload (during discovery) #9777
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
base: master
Are you sure you want to change the base?
Uh oh!
There was an error while loading. Please reload this page.
fix(discovery): check quota before upload (during discovery) #9777
Changes from all commits
dcb2b54c72a6c3File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
Check warning on line 31 in src/libsync/discovery.cpp
Use "std::array" or "std::vector" instead of a C-style array.
Check warning on line 32 in src/libsync/discovery.cpp
Use "std::array" or "std::vector" instead of a C-style array.
Check warning on line 63 in src/libsync/discovery.cpp
Unmodified variable "basePinState" of type "enum OCC::PinState" should be const-qualified.
Check warning on line 63 in src/libsync/discovery.cpp
Unmodified variable "data" of type "class OCC::DiscoveryPhase *" should be const-qualified.
Check warning on line 63 in src/libsync/discovery.cpp
Unmodified variable "lastSyncTimestamp" of type "long long" should be const-qualified.
Check warning on line 234 in src/libsync/discovery.cpp
Use the init-statement to declare "willBeExcluded" inside the if statement.
Check failure on line 255 in src/libsync/discovery.cpp
Refactor this function to reduce its Cognitive Complexity from 105 to the 25 allowed.
Check warning on line 329 in src/libsync/discovery.cpp
Replace with the version of "std::ranges::any_of" that takes a range.
Check warning on line 431 in src/libsync/discovery.cpp
Reduce this switch case number of lines from 6 to at most 5, for example by extracting code into methods.
Check warning on line 459 in src/libsync/discovery.cpp
Reduce this switch case number of lines from 20 to at most 5, for example by extracting code into methods.
Check warning on line 504 in src/libsync/discovery.cpp
Use "contains" member function.
Check failure on line 685 in src/libsync/discovery.cpp
Explicitly capture the required scope variables.
Check failure on line 1052 in src/libsync/discovery.cpp
Explicitly capture all local variables required in this lambda.
Check warning on line 1510 in src/libsync/discovery.cpp
Extract this nested conditional operator into an independent statement.
Check failure on line 1626 in src/libsync/discovery.cpp
Refactor this code to not nest more than 3 if|for|do|while|switch statements.
Check warning on line 1642 in src/libsync/discovery.cpp
Use the init-statement to declare "movePerms" inside the if statement.
Check failure on line 1727 in src/libsync/discovery.cpp
Explicitly capture all local variables required in this lambda.
Check warning on line 2161 in src/libsync/discovery.cpp
Replace with the version of "std::ranges::find_if" that takes a range.
Check warning on line 2163 in src/libsync/discovery.cpp
Use the init-statement to declare "isMatchingFileExtension" inside the if statement.
Check failure on line 2311 in src/libsync/discovery.cpp
Refactor this function to reduce its Cognitive Complexity from 27 to the 25 allowed.
Check warning on line 2406 in src/libsync/discovery.cpp
Unmodified variable "localJob" of type "class OCC::DiscoverySingleLocalDirectoryJob *" should be const-qualified.
Check warning on line 2522 in src/libsync/discovery.cpp
Reduce this switch case number of lines from 14 to at most 5, for example by extracting code into methods.
Check warning on line 2525 in src/libsync/discovery.cpp
implicit conversion loses integer precision: 'qsizetype' (aka 'long long') to 'int'
Check failure on line 9 in src/libsync/discovery.h
src/libsync/discovery.h:9:10 [clang-diagnostic-error]
Check warning on line 42 in src/libsync/discovery.h
Refactor this structure so it has no more than 20 fields, rather than the 22 it currently has.
Check failure on line 7 in src/libsync/propagateupload.cpp
src/libsync/propagateupload.cpp:7:10 [clang-diagnostic-error]
Check warning on line 74 in src/libsync/propagateupload.cpp
Unmodified variable "bytesTotal" of type "long long" should be const-qualified.
Check warning on line 162 in src/libsync/propagateupload.cpp
Merge this "if" statement with the enclosing one.
Check warning on line 185 in src/libsync/propagateupload.cpp
Do not use the constructor's initializer list for data member "_finished". Use the in-class initializer instead.
Check warning on line 773 in src/libsync/propagateupload.cpp
implicit conversion from 'qint64' (aka 'long long') to 'double' may lose precision
Check warning on line 781 in src/libsync/propagateupload.cpp
Replace with the version of "std::ranges::remove" that takes a range.
Check failure on line 248 in src/libsync/syncengine.cpp
Replace the use of "new" with an operation that automatically manages the memory.
Check failure on line 386 in src/libsync/syncengine.cpp
Refactor this code to not nest more than 3 if|for|do|while|switch statements.
Check warning on line 504 in src/libsync/syncengine.cpp
Replace this declaration by a structured binding declaration.
Check warning on line 505 in src/libsync/syncengine.cpp
Avoid this unnecessary copy by using a "const" reference.
Check failure on line 508 in src/libsync/syncengine.cpp
Refactor this code to not nest more than 3 if|for|do|while|switch statements.
Check warning on line 512 in src/libsync/syncengine.cpp
Complete the task associated to this "TODO" comment.
Check failure on line 513 in src/libsync/syncengine.cpp
Replace the use of "new" with an operation that automatically manages the memory.
Check warning on line 641 in src/libsync/syncengine.cpp
Use the init-statement to declare "excludeFilePath" inside the if statement.
Check warning on line 874 in src/libsync/syncengine.cpp
Extract this nested code block into a separate function.
Check warning on line 919 in src/libsync/syncengine.cpp
Unmodified variable "status" of type "enum OCC::SyncFileItem::Status" should be const-qualified.
Check failure on line 1184 in src/libsync/syncengine.cpp
Refactor this function to reduce its Cognitive Complexity from 33 to the 25 allowed.
Check failure on line 1194 in src/libsync/syncengine.cpp
Refactor this code to not nest more than 3 if|for|do|while|switch statements.
Check failure on line 1217 in src/libsync/syncengine.cpp
"std::forward" is never called on this forwarding reference argument.
Check warning on line 1242 in src/libsync/syncengine.cpp
Unmodified unnamed variable of type "_Bool" should be const-qualified.
Check warning on line 1259 in src/libsync/syncengine.cpp
Remove the redundant return type of this lambda.
Check warning on line 1259 in src/libsync/syncengine.cpp
Unmodified variable "cancel" of type "_Bool" should be const-qualified.
Check warning on line 1309 in src/libsync/syncengine.cpp
Rename this identifier to be shorter or equal to 31 characters.
Check warning on line 1353 in src/libsync/syncengine.cpp
Replace this loop with a "std::erase_if" call.
Check warning on line 1366 in src/libsync/syncengine.cpp
Rename this identifier to be shorter or equal to 31 characters.
Check warning on line 1605 in src/libsync/syncengine.cpp
Avoid this unnecessary copy by using a "const" reference.
Check failure on line 9 in src/libsync/syncengine.h
src/libsync/syncengine.h:9:10 [clang-diagnostic-error]
Check warning on line 411 in src/libsync/syncengine.h
Rename this identifier to be shorter or equal to 31 characters.
Check failure on line 11 in test/testlocaldiscovery.cpp
test/testlocaldiscovery.cpp:11:10 [clang-diagnostic-error]
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.