-
Notifications
You must be signed in to change notification settings - Fork 177
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
chore(core): CNX-7435 Core warning reduction #3082
Conversation
* fix(core): IDE0005 Redundant Using statements * fix(ci): GenerateDocumentationFile is required for IDE0005 to run on CI * fix(ci): Allow warnings on all CI jobs
* fix(gh): IDE0005 for Grasshopper connector * fix(rhino): IDE0005 for Rhino connector * fix(rh/gh): IDE0005 for Rhino/Grasshopper shared converter
I want to give this some quick testing in some connectors and automate. All the changes I've made should be pretty innocent, but there's so many, it's worth being cautious. |
2343309
to
5ca04e8
Compare
5ca04e8
to
8449062
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added some single comments before this review by accident, and a couple more within this 👇🏼
private const int BATCH_SIZE_GET_OBJECTS = 10000; | ||
private const int BATCH_SIZE_HAS_OBJECTS = 100000; | ||
|
||
private const int MAX_MULTIPART_COUNT = 5; | ||
private const int MAX_MULTIPART_SIZE = 25_000_000; | ||
private const int MAX_OBJECT_SIZE = 25_000_000; | ||
|
||
private const int MAX_REQUEST_SIZE = 100_000_000; | ||
|
||
private const int RETRY_COUNT = 3; | ||
private static readonly HashSet<int> s_retryCodes = new() { 408, 502, 503, 504 }; | ||
private static readonly char[] s_separator = { '\t' }; | ||
private static readonly string[] s_filenameSeparator = { "filename=" }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should consider moving these to a "magic numbers" class at some point, as ideally all these values should be defined by the server.
Resolves many warnings in Core
Merge first: