Showing 122 of 240 total issues
Method InvokeMember
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public override object? InvokeMember(string name, BindingFlags invokeAttr, Binder? binder, object? target, object?[]? args, ParameterModifier[]? modifiers, CultureInfo? culture, string[]? namedParameters) => null;
Method InvokeMember
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public override object? InvokeMember(string name, BindingFlags invokeAttr, Binder? binder, object? target, object?[]? args, ParameterModifier[]? modifiers, CultureInfo? culture, string[]? namedParameters) => null;
Method SaveUserDataPostfix
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[SuppressMessage("Style", "IDE0059:Unnecessary assignment of a value", Justification = "<Pending>")]
[SuppressMessage("CodeQuality", "IDE0079:Remove unnecessary suppression", Justification = "For Resharper")]
[SuppressMessage("ReSharper", "InconsistentNaming")]
[SuppressMessage("ReSharper", "RedundantAssignment")]
[MethodImpl(MethodImplOptions.NoInlining)]
Method ReadLineDepth
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void ReadLineDepth(SimpleBinaryStream input, PipelineWriter output, float[] depth, byte[] stencil)
{
switch (format)
{
case TextureFormat.D24_UNORM_S8_UINT:
Method DecodeTextureDataToWriter
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static void DecodeTextureDataToWriter(byte[] data, int width, int height, TextureFormat format, PipelineWriter writer, bool silentlyFail = false)
{
if (!format.IsSupported())
{
if (!silentlyFail)
Method ExecuteImport
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[BUTRDataSourceMethod]
public void ExecuteImport()
{
if (ViewModel is null || _launcherModsVMMixin is null || UpdateAndSaveUserModsDataMethod is null) return;
Method GenerateBaseTable
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static ushort[] GenerateBaseTable()
{
var baseTable = new ushort[512];
for (var i = 0; i < 256; ++i)
{
Method ShowDialog
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public override bool ShowDialog()
{
var fileName = Marshal.ReAllocCoTaskMem(Marshal.StringToCoTaskMemUni(FileName ?? string.Empty), MAX_FILE_LENGTH);
//using var fileName = new SafeCoTaskMemString(FileName ?? string.Empty, MAX_FILE_LENGTH);
//using var fileTitle = new SafeCoTaskMemString(MAX_FILE_LENGTH);
Method GenerateShiftTable
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static sbyte[] GenerateShiftTable()
{
var shiftTable = new sbyte[512];
for (var i = 0; i < 256; ++i)
{
Method ToSeparateWords
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[return: NotNullIfNotNull("value")]
private static string? ToSeparateWords(string? value)
{
if (value == null) return null;
if (value.Length <= 1) return value;
Method CheckSteam
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static void CheckSteam()
{
static void Exit()
{
MessageBoxDialog.Show("""
Method SetState
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void SetState()
{
if (ViewModel is null) return;
OnPropertyChanged(nameof(IsSingleplayer2));
Method InnerGet
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static unsafe string? InnerGet()
{
var handle = (HGLOBAL) IntPtr.Zero;
var pointer = IntPtr.Zero;
Method TryResolveHarmonyAssembliesFileFromSteam
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static HarmonyDiscoveryResult TryResolveHarmonyAssembliesFileFromSteam(AssemblyName assemblyName, out string? path)
{
path = null;
var assemblyNameFull = $"{assemblyName.Name}.dll";
Method ReadBC3AlphaBlock
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static void ReadBC3AlphaBlock(long block, byte[][] cache, int posX, GetPixelMask writeMask)
{
writeMask(out var maskR, out var maskG, out var maskB, out var maskA,
out var addR, out var addG, out var addB, out var addA);
var alpha0 = (int) (block & 0xFF);
Method RegisterPatch
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static void RegisterPatch(string movie, string? xpath, PrefabExtensionInsertAsSiblingPatch patch)
{
RegisterPatch(movie, xpath, node =>
{
var ownerDocument = node as XmlDocument ?? node.OwnerDocument;
Method TryResolveHarmonyAssembliesFile
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static HarmonyDiscoveryResult TryResolveHarmonyAssembliesFile(AssemblyName assemblyName, out string? path)
{
path = null;
var assemblyNameFull = $"{assemblyName.Name}.dll";
Method TexImage2D2
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private static extern void TexImage2D2(uint target, int level, uint pixelInternalformat, int width, int height, int border, PixelFormat format, uint type, IntPtr pixels);
Method TexImage2D
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private static extern void TexImage2D(uint target, int level, uint pixelInternalformat, int width, int height, int border, PixelFormat format, uint type, byte[] pixels);
Method Enable
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static bool Enable(Harmony harmony)
{
_harmony = harmony;
var res1 = harmony.TryPatch(