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(quota): protect local files from deletion when quota blocked upload. #10001
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?
fix(quota): protect local files from deletion when quota blocked upload. #10001
Changes from all commits
6f05a8ccb01eb1File 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 32 in src/libsync/discovery.cpp
Rename this identifier to be shorter or equal to 31 characters.
Check warning on line 33 in src/libsync/discovery.cpp
Rename this identifier to be shorter or equal to 31 characters.
Check warning on line 34 in src/libsync/discovery.cpp
Rename this identifier to be shorter or equal to 31 characters.
Check warning on line 64 in src/libsync/discovery.cpp
This function has 8 parameters, which is greater than the 7 authorized.
Check warning on line 235 in src/libsync/discovery.cpp
Use the init-statement to declare "willBeExcluded" inside the if statement.
Check warning on line 280 in src/libsync/discovery.cpp
Rename this identifier to be shorter or equal to 31 characters.
Check warning on line 284 in src/libsync/discovery.cpp
Use the init-statement to declare "leadingAndTrailingSpacesFilesAllowed" inside the if statement.
Check failure on line 407 in src/libsync/discovery.cpp
Refactor this code to not nest more than 3 if|for|do|while|switch statements.
Check warning on line 429 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 436 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 443 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 471 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 516 in src/libsync/discovery.cpp
Use "contains" member function.
Check warning on line 697 in src/libsync/discovery.cpp
Unmodified variable "result" of type "_Bool" should be const-qualified.
Check failure on line 697 in src/libsync/discovery.cpp
Explicitly capture the required scope variables.
Check failure on line 697 in src/libsync/discovery.cpp
Explicitly capture all local variables required in this lambda.
Check warning on line 757 in src/libsync/discovery.cpp
Capture variables by reference, it is safe in this context.
Check failure on line 1064 in src/libsync/discovery.cpp
Explicitly capture the required scope variables.
Check failure on line 1064 in src/libsync/discovery.cpp
Explicitly capture all local variables required in this lambda.
Check warning on line 1141 in src/libsync/discovery.cpp
Use the init-statement to declare "dirItemDbRecord" inside the if statement.
Check warning on line 1193 in src/libsync/discovery.cpp
This lambda has 71 lines, which is greater than the 20 lines authorized. Split it into several lambdas or functions, or make it a named function.
Check warning on line 1486 in src/libsync/discovery.cpp
Extract this nested conditional operator into an independent statement.
Check warning on line 1486 in src/libsync/discovery.cpp
Extract this nested conditional operator into an independent statement.
Check failure on line 1602 in src/libsync/discovery.cpp
Refactor this code to not nest more than 3 if|for|do|while|switch statements.
Check warning on line 1618 in src/libsync/discovery.cpp
Use the init-statement to declare "movePerms" inside the if statement.
Check warning on line 1642 in src/libsync/discovery.cpp
Replace this declaration by a structured binding declaration.
Check warning on line 1659 in src/libsync/discovery.cpp
Replace this declaration by a structured binding declaration.
Check failure on line 1703 in src/libsync/discovery.cpp
Explicitly capture all local variables required in this lambda.
Check failure on line 1703 in src/libsync/discovery.cpp
Explicitly capture the required scope variables.
Check warning on line 1749 in src/libsync/discovery.cpp
Unmodified variable "isConflict" of type "_Bool" should be const-qualified.
Check warning on line 1905 in src/libsync/discovery.cpp
Extract this nested code block into a separate function.
Check warning on line 2126 in src/libsync/discovery.cpp
Capture variables by reference, it is safe in this context.
Check warning on line 2128 in src/libsync/discovery.cpp
Replace with the version of "std::ranges::find_if" that takes a range.
Check warning on line 2130 in src/libsync/discovery.cpp
Use the init-statement to declare "isMatchingFileExtension" inside the if statement.
Check warning on line 2139 in src/libsync/discovery.cpp
Capture variables by reference, it is safe in this context.
Check warning on line 2141 in src/libsync/discovery.cpp
Replace with the version of "std::ranges::find_if" that takes a range.
Check failure on line 2278 in src/libsync/discovery.cpp
Refactor this function to reduce its Cognitive Complexity from 27 to the 25 allowed.
Check warning on line 2373 in src/libsync/discovery.cpp
Unmodified variable "localJob" of type "class OCC::DiscoverySingleLocalDirectoryJob *" should be const-qualified.
Check warning on line 2461 in src/libsync/discovery.cpp
This function should be declared "const".
Check warning on line 2461 in src/libsync/discovery.cpp
Rename this identifier to be shorter or equal to 31 characters.
Check warning on line 2466 in src/libsync/discovery.cpp
Rename this identifier to be shorter or equal to 31 characters.
Check warning on line 2467 in src/libsync/discovery.cpp
Use the init-statement to declare "leadingAndTrailingSpacesFilesAllowed" inside the if statement.
Check failure on line 2472 in src/libsync/discovery.cpp
Add a "default" case to this switch statement.
Check warning on line 2490 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 2492 in src/libsync/discovery.cpp
Remove the redundant return type of this lambda.
Check warning on line 2493 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 21 it currently has.
Check warning on line 252 in src/libsync/discovery.h
Rename this identifier to be shorter or equal to 31 characters.
Check failure on line 11 in test/testsyncdelete.cpp
test/testsyncdelete.cpp:11:10 [clang-diagnostic-error]
Uh oh!
There was an error while loading. Please reload this page.