-
Notifications
You must be signed in to change notification settings - Fork 234
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
Clean up some warnings and errors #1894
base: master
Are you sure you want to change the base?
Conversation
Download the artifacts for this pull request here: GUI:
CLI: |
UndertaleModTool/Windows/FindReferencesTypesDialog/UndertaleResourceReferenceMethodsMap.cs
Show resolved
Hide resolved
/// <param name="scriptFile">The path to the script file where <see cref="code"/> was executed from. | ||
/// Leave as null, if it wasn't executed from a script file</param> | ||
/// <param name="scriptFile">The path to the script file where <paramref name="code"/> was loaded from. | ||
/// Leave as null, if it wasn't executed from a script file.</param> | ||
private void RunCSharpCode(string code, string scriptFile = null) |
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.
isnt scriptfile supposed to be a nullable? or is that disabled for the cli project
public Task ClickableSearchOutput(string title, string query, int resultsCount, IOrderedEnumerable<KeyValuePair<string, List<(int lineNum, string codeLine)>>> resultsDict, bool showInDecompiledView, IOrderedEnumerable<string> failedList = null) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public Task ClickableSearchOutput(string title, string query, int resultsCount, IDictionary<string, List<(int lineNum, string codeLine)>> resultsDict, bool showInDecompiledView, IEnumerable<string> failedList = null) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public void ChangeSelection(object newSelection, bool inNewTab = false) | ||
{ | ||
} |
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.
whats the use of these?
@@ -1,3 +1,5 @@ | |||
#pragma warning disable CA1416 // Validate platform compatibility |
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.
instead of throwing this into every file, wonder if it makes more sense to put itinto the project.
Description
PR checks have been plagued with tons of warning messages at the end (at least with GitHub's beta "Unchanged files with check annotations"), so this PR aims to get rid of a bunch of them.
Caveats
WebClient
was replaced withHttpClient
, so there may be slight behavioral differences. I did test the updater, though, and it functioned fine.Some files now have
#pragma
directives to disable cross-platform compatibility warnings, but I limited this specifically to GUI, which is already Windows-only, at least as it stands.Notes
Starting this as a draft to make sure the warnings no longer show up in the build pipeline.This seems to have worked.