You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
145 | std::shared_ptr<RateLimit> _rateLimitFactory(std::string_view domain) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
| auto -> std::shared_ptr<RateLimit>
/home/runner/work/Firmware/Firmware/src/http/HTTPRequestManager.cpp:149:23: warning: 1000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
149 | rateLimit->addLimit(1000, 5); // 5 per second
| ^
/home/runner/work/Firmware/Firmware/src/http/HTTPRequestManager.cpp:149:29: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
149 | rateLimit->addLimit(1000, 5); // 5 per second
| ^
3 adjacent parameters of '_doGetStream' of similar type are easily swapped by mistake
444 | std::string_view url,
| ^~~~~~~~~~~~~~~~~~~~~
445 | const std::map<String, String>& headers,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
446 | const std::vector<int>& acceptedCodes,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/runner/work/Firmware/Firmware/src/http/HTTPRequestManager.cpp:444:20: note: the first parameter in the range is 'url'444 | std::string_view url,
| ^~~
/home/runner/work/Firmware/Firmware/src/http/HTTPRequestManager.cpp:446:27: note: the last parameter in the range is 'acceptedCodes'446 | const std::vector<int>& acceptedCodes,
| ^~~~~~~~~~~~~
/home/runner/work/Firmware/Firmware/src/http/HTTPRequestManager.cpp:445:3: note: 'int'and'const int &' parameters accept and bind the same kind of values
445 | const std::map<String, String>& headers,
| ^
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
No description provided.