Showing 122 of 240 total issues
Method GetConstructorImpl
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
protected override ConstructorInfo? GetConstructorImpl(BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[] types, ParameterModifier[]? modifiers) => null;
Consider simplifying this complex logical expression. Open
Open
if (FieldMapX is null || FieldMapY is null || FieldWidth is null || FieldHeight is null || FieldHorizontalFlip is null || FieldVerticalFlip is null)
return null!;
Method TryOrderByLoadOrderTW
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public new bool TryOrderByLoadOrderTW(IEnumerable<string> loadOrder, Func<string, bool> isModuleSelected, [NotNullWhen(false)] out IReadOnlyList<string>? issues,
out IReadOnlyList<IModuleViewModel> orderedModules, bool overwriteWhenFailure = false)
Method RegOpenKeyEx
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
internal static extern int RegOpenKeyEx(RegistryHandle hKey, string lpSubKey, int ulOptions, int samDesired, out RegistryHandle? hkResult);
Method Show
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static MessageBoxResult Show(string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton button) =>
Method Show
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static MessageBoxResult Show(string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton button) =>
Method Show
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static MessageBoxResult Show(string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton button) =>
Method SendDialog
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public void SendDialog(DialogType type, string title, string message, IReadOnlyList<DialogFileFilter> filters, Action<string> onResult)
Method Read
has a Cognitive Complexity of 22 (exceeds 20 allowed). Consider refactoring. Open
Open
public override void Read(PipelineWriter output)
{
var blockWidth = Math.Max((width + 3) / 4, 1);
var blockHeight = Math.Max((height + 3) / 4, 1);
var cache0 = new byte[4][];
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method RefreshState
has a Cognitive Complexity of 22 (exceeds 20 allowed). Consider refactoring. Open
Open
protected override void RefreshState()
{
base.RefreshState();
if (!OverrideDefaultStateSwitchingEnabled)
{
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Avoid too many return
statements within this method. Open
Open
return true;
Avoid too many return
statements within this method. Open
Open
return;
Avoid too many return
statements within this method. Open
Open
return ResolveLauncherExAssemblies(assemblyName);
Avoid too many return
statements within this method. Open
Open
return true;
Avoid too many return
statements within this method. Open
Open
return null;
Avoid too many return
statements within this method. Open
Open
return true;
Avoid too many return
statements within this method. Open
Open
return null;
Avoid too many return
statements within this method. Open
Open
return false;
Avoid too many return
statements within this method. Open
Open
return null;
Avoid too many return
statements within this method. Open
Open
return assembly;