Showing 429 of 903 total issues
Method parsePictureCode
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private async void parsePictureCode()
{
try
{
ZXing.MultiFormatReader reader = new ZXing.MultiFormatReader();
Method LaunchRecognition
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void LaunchRecognition()
{
_pictureByte = imageToByteArray(_currentImage);
List<ParsingPicture.DetectZone> detection = ParsingPicture.ProcessAll(_pictureByte);
if (detection != null && detection.Count > 0) Console.WriteLine("found");
Method parsePictureCode
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private async void parsePictureCode()
{
try
{
ZXing.MultiFormatReader reader = new ZXing.MultiFormatReader();
Method GetImage
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static byte[] GetImage(string url)
{
try
{
if (!string.IsNullOrEmpty(url))
Method LaunchApplyMask
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void LaunchApplyMask()
{
if (_currentImage != null && _mask != null)
{
Bitmap original = new Bitmap(_currentImage); ;
Function attr
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
attr: function( elem, name, value ) {
var hooks, ret,
nType = elem.nodeType;
// don't get/set attributes on text, comment and attribute nodes
Function handlers
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
handlers: function( event, handlers ) {
var i, matches, sel, handleObj,
handlerQueue = [],
delegateCount = handlers.delegateCount,
cur = event.target;
Method AddImage
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void AddImage()
{
try
{
if (CurrentImage != null)
Method OffsetToImage
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static Point OffsetToImage(PictureBox pbox, Point p)
{
// Calculer les taux d'étirement/compression de l'image
double xRatio = 1;
double yRatio = 1;
Function toggleClass
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
toggleClass: function( value, stateVal ) {
var type = typeof value;
if ( typeof stateVal === "boolean" && type === "string" ) {
return stateVal ? this.addClass( value ) : this.removeClass( value );
Function attr
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
attr: function( elem, name, value ) {
var ret, hooks,
nType = elem.nodeType;
// Don't get/set attributes on text, comment and attribute nodes
Function attr
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
attr: function( elem, name, value ) {
var ret, hooks,
nType = elem.nodeType;
// Don't get/set attributes on text, comment and attribute nodes
Method BuildPanelParsing
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void BuildPanelParsing()
{
_ts_code_qr = new RibbonButton("QR code");
_ts_code_qr.Click += new EventHandler(tsb_Click);
_ts_code_qr.Image = Tools.Utilities.Resources.ResourceIconSet32Default.qrcode;
Method LaunchRecognition
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void LaunchRecognition()
{
_pictureByte = imageToByteArray(_currentImage);
List<ParsingPicture.DetectZone> detection = ParsingPicture.ProcessAll(_pictureByte);
if (detection != null && detection.Count > 0) Console.WriteLine("found");
Method tsb_Click
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void tsb_Click(object sender, EventArgs e)
{
try
{
if (sender.GetType().Name.Equals("RibbonButton"))
Method Generate
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static Bitmap Generate(int Width, int Height, int MaxRGBValue, int MinRGBValue, float Frequency, float Amplitude, float Persistance, int Octaves, int Seed)
Method GetValue
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private static float GetValue(int X, int Y, int Width, int Height, float Frequency, float Amplitude, float Persistance, int Octaves, float[,] Noise)
Function finish
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
finish: function( type ) {
if ( type !== false ) {
type = type || "fx";
}
return this.each(function() {
Function getWidthOrHeight
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getWidthOrHeight( elem, name, extra ) {
// Start with offset property, which is equivalent to the border-box value
var val,
valueIsBorderBox = true,
Function parseHTML
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
jQuery.parseHTML = function( data, context, keepScripts ) {
if ( typeof data !== "string" ) {
return [];
}
if ( typeof context === "boolean" ) {