Showing 1,140 of 1,140 total issues
Avoid deeply nested control flow statements. Open
Open
foreach (Diff d in p.diffs)
{
if (d.operation == Operation.DELETE)
{
u.diffs.Add(new Diff(Operation.INSERT, d.text));
Avoid deeply nested control flow statements. Open
Open
if (best_loc > loc) {
// When passing loc, don't exceed our current distance from loc.
start = Math.Max(1, 2 * loc - best_loc);
} else {
// Already passed loc, downhill from here on in.
Avoid deeply nested control flow statements. Open
Open
if (commonlength != 0) {
diffs[pointer].text = text_insert.Substring(text_insert.Length
- commonlength) + diffs[pointer].text;
text_insert = text_insert.Substring(0, text_insert.Length
- commonlength);
Avoid deeply nested control flow statements. Open
Open
if (tokenSearchResult.isMatch)
{
exists = true;
hasMatchInText = true;
Method stbi__create_png_image
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private int stbi__create_png_image(FakePtr<byte> image_data, uint image_data_len, int out_n, int depth,
int color, int interlaced)
Avoid deeply nested control flow statements. Open
Open
if (transparent >= 0) pal[transparent * 4 + 3] = 255;
Avoid deeply nested control flow statements. Open
Open
if ((eflags & 0x01) != 0)
{
transparent = stbi__get8();
if (transparent >= 0) pal[transparent * 4 + 3] = 0;
}
Avoid deeply nested control flow statements. Open
Open
for (q = (int)(x - 1); q >= 0; --q)
{
cur[q * 2 + 1] = 255;
cur[q * 2 + 0] = cur[q];
}
Avoid deeply nested control flow statements. Open
Open
if (info.bpp == 32)
{
info.mr = 0xffu << 16;
info.mg = 0xffu << 8;
info.mb = 0xffu << 0;
Avoid deeply nested control flow statements. Open
Open
if (history[pi] == 0)
{
pal[bgindex * 4 + 3] = 255;
new FakePtr<byte>(_out_, pi * 4).memcpy(new FakePtr<byte>(pal, bgindex), 4);
}
Avoid deeply nested control flow statements. Open
Open
if (stbi__compute_transparency16(tc16, img_out_n) == 0)
return 0;
Method stbi__jpeg_decode_block
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private int stbi__jpeg_decode_block(short[] data, stbi__huffman hdc, stbi__huffman hac, short[] fac, int b,
ushort[] dequant)
Avoid deeply nested control flow statements. Open
Open
if (i + 1 == img_x)
break;
Avoid deeply nested control flow statements. Open
Open
if (target == 4)
_out_[z++] = 255;
Avoid deeply nested control flow statements. Open
Open
if (--bit_offset < 0)
{
bit_offset = 7;
v = stbi__get8();
}
Avoid deeply nested control flow statements. Open
Open
for (x = 0; x < img_comp[n].h; ++x)
{
var x2 = (i * img_comp[n].h + x) * 8;
var y2 = (j * img_comp[n].v + y) * 8;
var ha = img_comp[n].ha;
Method ResizeImage
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private static byte[] ResizeImage(byte[] originalImage, int originalWidth, int originalHeight, int bytesPerPixel, int newWidth, int newHeight) {
Avoid deeply nested control flow statements. Open
Open
if ((value & bit) == 0)
{
if (value > 0)
data[idx] += bit;
else
Avoid deeply nested control flow statements. Open
Open
if (code_bits < 24)
stbi__grow_buffer_unsafe();
Method CanBeSemiTransparent
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private static bool CanBeSemiTransparent(byte[] erodedFill, byte[] dilatedFill, int width, int x, int y, int bytesPerPixel) {