teco-kit/PointAndControl

View on GitHub

Showing 77 of 172 total issues

Similar blocks of code found in 12 locations. Consider refactoring.
Open

        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("129.13.170.9")]
        public string PWHost {
            get {
Severity: Major
Found in IGS/Properties/Settings.Designer.cs and 11 other locations - About 1 hr to fix
IGS/Properties/Settings.Designer.cs on lines 38..48
IGS/Properties/Settings.Designer.cs on lines 50..60
IGS/Properties/Settings.Designer.cs on lines 62..72
IGS/Properties/Settings.Designer.cs on lines 74..84
IGS/Properties/Settings.Designer.cs on lines 86..96
IGS/Properties/Settings.Designer.cs on lines 98..108
IGS/Properties/Settings.Designer.cs on lines 110..120
IGS/Properties/Settings.Designer.cs on lines 122..132
IGS/Properties/Settings.Designer.cs on lines 134..144
IGS/Properties/Settings.Designer.cs on lines 146..156
IGS/Properties/Settings.Designer.cs on lines 158..168

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 92.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 20 locations. Consider refactoring.
Open

            Point3D right_wrist = transformator.TransformPoint3D(new Point3D(body.Joints[JointType.WristRight].Position.X, body.Joints[JointType.WristRight].Position.Y, body.Joints[JointType.WristRight].Position.Z));
Severity: Major
Found in IGS/Room3DView.xaml.cs and 19 other locations - About 1 hr to fix
IGS/Room3DView.xaml.cs on lines 433..433
IGS/Room3DView.xaml.cs on lines 434..434
IGS/Room3DView.xaml.cs on lines 436..436
IGS/Room3DView.xaml.cs on lines 437..437
IGS/Room3DView.xaml.cs on lines 438..438
IGS/Room3DView.xaml.cs on lines 439..439
IGS/Room3DView.xaml.cs on lines 440..440
IGS/Room3DView.xaml.cs on lines 441..441
IGS/Room3DView.xaml.cs on lines 442..442
IGS/Room3DView.xaml.cs on lines 443..443
IGS/Room3DView.xaml.cs on lines 444..444
IGS/Room3DView.xaml.cs on lines 445..445
IGS/Room3DView.xaml.cs on lines 446..446
IGS/Room3DView.xaml.cs on lines 447..447
IGS/Room3DView.xaml.cs on lines 448..448
IGS/Room3DView.xaml.cs on lines 449..449
IGS/Room3DView.xaml.cs on lines 450..450
IGS/Room3DView.xaml.cs on lines 451..451
IGS/Room3DView.xaml.cs on lines 452..452

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 90.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 20 locations. Consider refactoring.
Open

            Point3D left_foot = transformator.TransformPoint3D(new Point3D(body.Joints[JointType.FootLeft].Position.X, body.Joints[JointType.FootLeft].Position.Y, body.Joints[JointType.FootLeft].Position.Z));
Severity: Major
Found in IGS/Room3DView.xaml.cs and 19 other locations - About 1 hr to fix
IGS/Room3DView.xaml.cs on lines 433..433
IGS/Room3DView.xaml.cs on lines 434..434
IGS/Room3DView.xaml.cs on lines 435..435
IGS/Room3DView.xaml.cs on lines 436..436
IGS/Room3DView.xaml.cs on lines 437..437
IGS/Room3DView.xaml.cs on lines 438..438
IGS/Room3DView.xaml.cs on lines 439..439
IGS/Room3DView.xaml.cs on lines 440..440
IGS/Room3DView.xaml.cs on lines 441..441
IGS/Room3DView.xaml.cs on lines 442..442
IGS/Room3DView.xaml.cs on lines 443..443
IGS/Room3DView.xaml.cs on lines 444..444
IGS/Room3DView.xaml.cs on lines 445..445
IGS/Room3DView.xaml.cs on lines 447..447
IGS/Room3DView.xaml.cs on lines 448..448
IGS/Room3DView.xaml.cs on lines 449..449
IGS/Room3DView.xaml.cs on lines 450..450
IGS/Room3DView.xaml.cs on lines 451..451
IGS/Room3DView.xaml.cs on lines 452..452

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 90.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 20 locations. Consider refactoring.
Open

            Point3D left_knee = transformator.TransformPoint3D(new Point3D(body.Joints[JointType.KneeLeft].Position.X, body.Joints[JointType.KneeLeft].Position.Y, body.Joints[JointType.KneeLeft].Position.Z));
Severity: Major
Found in IGS/Room3DView.xaml.cs and 19 other locations - About 1 hr to fix
IGS/Room3DView.xaml.cs on lines 433..433
IGS/Room3DView.xaml.cs on lines 434..434
IGS/Room3DView.xaml.cs on lines 435..435
IGS/Room3DView.xaml.cs on lines 436..436
IGS/Room3DView.xaml.cs on lines 437..437
IGS/Room3DView.xaml.cs on lines 438..438
IGS/Room3DView.xaml.cs on lines 439..439
IGS/Room3DView.xaml.cs on lines 440..440
IGS/Room3DView.xaml.cs on lines 441..441
IGS/Room3DView.xaml.cs on lines 442..442
IGS/Room3DView.xaml.cs on lines 443..443
IGS/Room3DView.xaml.cs on lines 444..444
IGS/Room3DView.xaml.cs on lines 445..445
IGS/Room3DView.xaml.cs on lines 446..446
IGS/Room3DView.xaml.cs on lines 447..447
IGS/Room3DView.xaml.cs on lines 449..449
IGS/Room3DView.xaml.cs on lines 450..450
IGS/Room3DView.xaml.cs on lines 451..451
IGS/Room3DView.xaml.cs on lines 452..452

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 90.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 20 locations. Consider refactoring.
Open

            Point3D right_hand = transformator.TransformPoint3D(new Point3D(body.Joints[JointType.HandRight].Position.X, body.Joints[JointType.HandRight].Position.Y, body.Joints[JointType.HandRight].Position.Z));
Severity: Major
Found in IGS/Room3DView.xaml.cs and 19 other locations - About 1 hr to fix
IGS/Room3DView.xaml.cs on lines 433..433
IGS/Room3DView.xaml.cs on lines 435..435
IGS/Room3DView.xaml.cs on lines 436..436
IGS/Room3DView.xaml.cs on lines 437..437
IGS/Room3DView.xaml.cs on lines 438..438
IGS/Room3DView.xaml.cs on lines 439..439
IGS/Room3DView.xaml.cs on lines 440..440
IGS/Room3DView.xaml.cs on lines 441..441
IGS/Room3DView.xaml.cs on lines 442..442
IGS/Room3DView.xaml.cs on lines 443..443
IGS/Room3DView.xaml.cs on lines 444..444
IGS/Room3DView.xaml.cs on lines 445..445
IGS/Room3DView.xaml.cs on lines 446..446
IGS/Room3DView.xaml.cs on lines 447..447
IGS/Room3DView.xaml.cs on lines 448..448
IGS/Room3DView.xaml.cs on lines 449..449
IGS/Room3DView.xaml.cs on lines 450..450
IGS/Room3DView.xaml.cs on lines 451..451
IGS/Room3DView.xaml.cs on lines 452..452

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 90.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 20 locations. Consider refactoring.
Open

            Point3D head = transformator.TransformPoint3D(new Point3D(body.Joints[JointType.Head].Position.X, body.Joints[JointType.Head].Position.Y, body.Joints[JointType.Head].Position.Z));
Severity: Major
Found in IGS/Room3DView.xaml.cs and 19 other locations - About 1 hr to fix
IGS/Room3DView.xaml.cs on lines 434..434
IGS/Room3DView.xaml.cs on lines 435..435
IGS/Room3DView.xaml.cs on lines 436..436
IGS/Room3DView.xaml.cs on lines 437..437
IGS/Room3DView.xaml.cs on lines 438..438
IGS/Room3DView.xaml.cs on lines 439..439
IGS/Room3DView.xaml.cs on lines 440..440
IGS/Room3DView.xaml.cs on lines 441..441
IGS/Room3DView.xaml.cs on lines 442..442
IGS/Room3DView.xaml.cs on lines 443..443
IGS/Room3DView.xaml.cs on lines 444..444
IGS/Room3DView.xaml.cs on lines 445..445
IGS/Room3DView.xaml.cs on lines 446..446
IGS/Room3DView.xaml.cs on lines 447..447
IGS/Room3DView.xaml.cs on lines 448..448
IGS/Room3DView.xaml.cs on lines 449..449
IGS/Room3DView.xaml.cs on lines 450..450
IGS/Room3DView.xaml.cs on lines 451..451
IGS/Room3DView.xaml.cs on lines 452..452

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 90.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 20 locations. Consider refactoring.
Open

            Point3D right_shoulder = transformator.TransformPoint3D(new Point3D(body.Joints[JointType.ShoulderRight].Position.X, body.Joints[JointType.ShoulderRight].Position.Y, body.Joints[JointType.ShoulderRight].Position.Z));
Severity: Major
Found in IGS/Room3DView.xaml.cs and 19 other locations - About 1 hr to fix
IGS/Room3DView.xaml.cs on lines 433..433
IGS/Room3DView.xaml.cs on lines 434..434
IGS/Room3DView.xaml.cs on lines 435..435
IGS/Room3DView.xaml.cs on lines 436..436
IGS/Room3DView.xaml.cs on lines 438..438
IGS/Room3DView.xaml.cs on lines 439..439
IGS/Room3DView.xaml.cs on lines 440..440
IGS/Room3DView.xaml.cs on lines 441..441
IGS/Room3DView.xaml.cs on lines 442..442
IGS/Room3DView.xaml.cs on lines 443..443
IGS/Room3DView.xaml.cs on lines 444..444
IGS/Room3DView.xaml.cs on lines 445..445
IGS/Room3DView.xaml.cs on lines 446..446
IGS/Room3DView.xaml.cs on lines 447..447
IGS/Room3DView.xaml.cs on lines 448..448
IGS/Room3DView.xaml.cs on lines 449..449
IGS/Room3DView.xaml.cs on lines 450..450
IGS/Room3DView.xaml.cs on lines 451..451
IGS/Room3DView.xaml.cs on lines 452..452

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 90.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 20 locations. Consider refactoring.
Open

            Point3D right_elbow = transformator.TransformPoint3D(new Point3D(body.Joints[JointType.ElbowRight].Position.X, body.Joints[JointType.ElbowRight].Position.Y, body.Joints[JointType.ElbowRight].Position.Z));
Severity: Major
Found in IGS/Room3DView.xaml.cs and 19 other locations - About 1 hr to fix
IGS/Room3DView.xaml.cs on lines 433..433
IGS/Room3DView.xaml.cs on lines 434..434
IGS/Room3DView.xaml.cs on lines 435..435
IGS/Room3DView.xaml.cs on lines 437..437
IGS/Room3DView.xaml.cs on lines 438..438
IGS/Room3DView.xaml.cs on lines 439..439
IGS/Room3DView.xaml.cs on lines 440..440
IGS/Room3DView.xaml.cs on lines 441..441
IGS/Room3DView.xaml.cs on lines 442..442
IGS/Room3DView.xaml.cs on lines 443..443
IGS/Room3DView.xaml.cs on lines 444..444
IGS/Room3DView.xaml.cs on lines 445..445
IGS/Room3DView.xaml.cs on lines 446..446
IGS/Room3DView.xaml.cs on lines 447..447
IGS/Room3DView.xaml.cs on lines 448..448
IGS/Room3DView.xaml.cs on lines 449..449
IGS/Room3DView.xaml.cs on lines 450..450
IGS/Room3DView.xaml.cs on lines 451..451
IGS/Room3DView.xaml.cs on lines 452..452

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 90.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 20 locations. Consider refactoring.
Open

            Point3D left_elbow = transformator.TransformPoint3D(new Point3D(body.Joints[JointType.ElbowLeft].Position.X, body.Joints[JointType.ElbowLeft].Position.Y, body.Joints[JointType.ElbowLeft].Position.Z));
Severity: Major
Found in IGS/Room3DView.xaml.cs and 19 other locations - About 1 hr to fix
IGS/Room3DView.xaml.cs on lines 433..433
IGS/Room3DView.xaml.cs on lines 434..434
IGS/Room3DView.xaml.cs on lines 435..435
IGS/Room3DView.xaml.cs on lines 436..436
IGS/Room3DView.xaml.cs on lines 437..437
IGS/Room3DView.xaml.cs on lines 438..438
IGS/Room3DView.xaml.cs on lines 439..439
IGS/Room3DView.xaml.cs on lines 441..441
IGS/Room3DView.xaml.cs on lines 442..442
IGS/Room3DView.xaml.cs on lines 443..443
IGS/Room3DView.xaml.cs on lines 444..444
IGS/Room3DView.xaml.cs on lines 445..445
IGS/Room3DView.xaml.cs on lines 446..446
IGS/Room3DView.xaml.cs on lines 447..447
IGS/Room3DView.xaml.cs on lines 448..448
IGS/Room3DView.xaml.cs on lines 449..449
IGS/Room3DView.xaml.cs on lines 450..450
IGS/Room3DView.xaml.cs on lines 451..451
IGS/Room3DView.xaml.cs on lines 452..452

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 90.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 20 locations. Consider refactoring.
Open

            Point3D left_shoulder = transformator.TransformPoint3D(new Point3D(body.Joints[JointType.ShoulderLeft].Position.X, body.Joints[JointType.ShoulderLeft].Position.Y, body.Joints[JointType.ShoulderLeft].Position.Z));
Severity: Major
Found in IGS/Room3DView.xaml.cs and 19 other locations - About 1 hr to fix
IGS/Room3DView.xaml.cs on lines 433..433
IGS/Room3DView.xaml.cs on lines 434..434
IGS/Room3DView.xaml.cs on lines 435..435
IGS/Room3DView.xaml.cs on lines 436..436
IGS/Room3DView.xaml.cs on lines 437..437
IGS/Room3DView.xaml.cs on lines 438..438
IGS/Room3DView.xaml.cs on lines 439..439
IGS/Room3DView.xaml.cs on lines 440..440
IGS/Room3DView.xaml.cs on lines 442..442
IGS/Room3DView.xaml.cs on lines 443..443
IGS/Room3DView.xaml.cs on lines 444..444
IGS/Room3DView.xaml.cs on lines 445..445
IGS/Room3DView.xaml.cs on lines 446..446
IGS/Room3DView.xaml.cs on lines 447..447
IGS/Room3DView.xaml.cs on lines 448..448
IGS/Room3DView.xaml.cs on lines 449..449
IGS/Room3DView.xaml.cs on lines 450..450
IGS/Room3DView.xaml.cs on lines 451..451
IGS/Room3DView.xaml.cs on lines 452..452

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 90.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 20 locations. Consider refactoring.
Open

            Point3D right_knee = transformator.TransformPoint3D(new Point3D(body.Joints[JointType.KneeRight].Position.X, body.Joints[JointType.KneeRight].Position.Y, body.Joints[JointType.KneeRight].Position.Z));
Severity: Major
Found in IGS/Room3DView.xaml.cs and 19 other locations - About 1 hr to fix
IGS/Room3DView.xaml.cs on lines 433..433
IGS/Room3DView.xaml.cs on lines 434..434
IGS/Room3DView.xaml.cs on lines 435..435
IGS/Room3DView.xaml.cs on lines 436..436
IGS/Room3DView.xaml.cs on lines 437..437
IGS/Room3DView.xaml.cs on lines 438..438
IGS/Room3DView.xaml.cs on lines 439..439
IGS/Room3DView.xaml.cs on lines 440..440
IGS/Room3DView.xaml.cs on lines 441..441
IGS/Room3DView.xaml.cs on lines 442..442
IGS/Room3DView.xaml.cs on lines 443..443
IGS/Room3DView.xaml.cs on lines 445..445
IGS/Room3DView.xaml.cs on lines 446..446
IGS/Room3DView.xaml.cs on lines 447..447
IGS/Room3DView.xaml.cs on lines 448..448
IGS/Room3DView.xaml.cs on lines 449..449
IGS/Room3DView.xaml.cs on lines 450..450
IGS/Room3DView.xaml.cs on lines 451..451
IGS/Room3DView.xaml.cs on lines 452..452

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 90.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 20 locations. Consider refactoring.
Open

            Point3D right_ankle = transformator.TransformPoint3D(new Point3D(body.Joints[JointType.AnkleRight].Position.X, body.Joints[JointType.AnkleRight].Position.Y, body.Joints[JointType.AnkleRight].Position.Z));
Severity: Major
Found in IGS/Room3DView.xaml.cs and 19 other locations - About 1 hr to fix
IGS/Room3DView.xaml.cs on lines 433..433
IGS/Room3DView.xaml.cs on lines 434..434
IGS/Room3DView.xaml.cs on lines 435..435
IGS/Room3DView.xaml.cs on lines 436..436
IGS/Room3DView.xaml.cs on lines 437..437
IGS/Room3DView.xaml.cs on lines 438..438
IGS/Room3DView.xaml.cs on lines 439..439
IGS/Room3DView.xaml.cs on lines 440..440
IGS/Room3DView.xaml.cs on lines 441..441
IGS/Room3DView.xaml.cs on lines 442..442
IGS/Room3DView.xaml.cs on lines 444..444
IGS/Room3DView.xaml.cs on lines 445..445
IGS/Room3DView.xaml.cs on lines 446..446
IGS/Room3DView.xaml.cs on lines 447..447
IGS/Room3DView.xaml.cs on lines 448..448
IGS/Room3DView.xaml.cs on lines 449..449
IGS/Room3DView.xaml.cs on lines 450..450
IGS/Room3DView.xaml.cs on lines 451..451
IGS/Room3DView.xaml.cs on lines 452..452

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 90.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 20 locations. Consider refactoring.
Open

            Point3D center_hip = transformator.TransformPoint3D(new Point3D(body.Joints[JointType.SpineBase].Position.X, body.Joints[JointType.SpineBase].Position.Y, body.Joints[JointType.SpineBase].Position.Z));
Severity: Major
Found in IGS/Room3DView.xaml.cs and 19 other locations - About 1 hr to fix
IGS/Room3DView.xaml.cs on lines 433..433
IGS/Room3DView.xaml.cs on lines 434..434
IGS/Room3DView.xaml.cs on lines 435..435
IGS/Room3DView.xaml.cs on lines 436..436
IGS/Room3DView.xaml.cs on lines 437..437
IGS/Room3DView.xaml.cs on lines 438..438
IGS/Room3DView.xaml.cs on lines 439..439
IGS/Room3DView.xaml.cs on lines 440..440
IGS/Room3DView.xaml.cs on lines 441..441
IGS/Room3DView.xaml.cs on lines 442..442
IGS/Room3DView.xaml.cs on lines 443..443
IGS/Room3DView.xaml.cs on lines 444..444
IGS/Room3DView.xaml.cs on lines 445..445
IGS/Room3DView.xaml.cs on lines 446..446
IGS/Room3DView.xaml.cs on lines 447..447
IGS/Room3DView.xaml.cs on lines 448..448
IGS/Room3DView.xaml.cs on lines 449..449
IGS/Room3DView.xaml.cs on lines 451..451
IGS/Room3DView.xaml.cs on lines 452..452

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 90.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 20 locations. Consider refactoring.
Open

            Point3D left_wrist = transformator.TransformPoint3D(new Point3D(body.Joints[JointType.WristLeft].Position.X, body.Joints[JointType.WristLeft].Position.Y, body.Joints[JointType.WristLeft].Position.Z));
Severity: Major
Found in IGS/Room3DView.xaml.cs and 19 other locations - About 1 hr to fix
IGS/Room3DView.xaml.cs on lines 433..433
IGS/Room3DView.xaml.cs on lines 434..434
IGS/Room3DView.xaml.cs on lines 435..435
IGS/Room3DView.xaml.cs on lines 436..436
IGS/Room3DView.xaml.cs on lines 437..437
IGS/Room3DView.xaml.cs on lines 438..438
IGS/Room3DView.xaml.cs on lines 440..440
IGS/Room3DView.xaml.cs on lines 441..441
IGS/Room3DView.xaml.cs on lines 442..442
IGS/Room3DView.xaml.cs on lines 443..443
IGS/Room3DView.xaml.cs on lines 444..444
IGS/Room3DView.xaml.cs on lines 445..445
IGS/Room3DView.xaml.cs on lines 446..446
IGS/Room3DView.xaml.cs on lines 447..447
IGS/Room3DView.xaml.cs on lines 448..448
IGS/Room3DView.xaml.cs on lines 449..449
IGS/Room3DView.xaml.cs on lines 450..450
IGS/Room3DView.xaml.cs on lines 451..451
IGS/Room3DView.xaml.cs on lines 452..452

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 90.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 20 locations. Consider refactoring.
Open

            Point3D left_ankle = transformator.TransformPoint3D(new Point3D(body.Joints[JointType.AnkleLeft].Position.X, body.Joints[JointType.AnkleLeft].Position.Y, body.Joints[JointType.AnkleLeft].Position.Z));
Severity: Major
Found in IGS/Room3DView.xaml.cs and 19 other locations - About 1 hr to fix
IGS/Room3DView.xaml.cs on lines 433..433
IGS/Room3DView.xaml.cs on lines 434..434
IGS/Room3DView.xaml.cs on lines 435..435
IGS/Room3DView.xaml.cs on lines 436..436
IGS/Room3DView.xaml.cs on lines 437..437
IGS/Room3DView.xaml.cs on lines 438..438
IGS/Room3DView.xaml.cs on lines 439..439
IGS/Room3DView.xaml.cs on lines 440..440
IGS/Room3DView.xaml.cs on lines 441..441
IGS/Room3DView.xaml.cs on lines 442..442
IGS/Room3DView.xaml.cs on lines 443..443
IGS/Room3DView.xaml.cs on lines 444..444
IGS/Room3DView.xaml.cs on lines 445..445
IGS/Room3DView.xaml.cs on lines 446..446
IGS/Room3DView.xaml.cs on lines 448..448
IGS/Room3DView.xaml.cs on lines 449..449
IGS/Room3DView.xaml.cs on lines 450..450
IGS/Room3DView.xaml.cs on lines 451..451
IGS/Room3DView.xaml.cs on lines 452..452

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 90.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 20 locations. Consider refactoring.
Open

            Point3D right_foot = transformator.TransformPoint3D(new Point3D(body.Joints[JointType.FootRight].Position.X, body.Joints[JointType.FootRight].Position.Y, body.Joints[JointType.FootRight].Position.Z));
Severity: Major
Found in IGS/Room3DView.xaml.cs and 19 other locations - About 1 hr to fix
IGS/Room3DView.xaml.cs on lines 433..433
IGS/Room3DView.xaml.cs on lines 434..434
IGS/Room3DView.xaml.cs on lines 435..435
IGS/Room3DView.xaml.cs on lines 436..436
IGS/Room3DView.xaml.cs on lines 437..437
IGS/Room3DView.xaml.cs on lines 438..438
IGS/Room3DView.xaml.cs on lines 439..439
IGS/Room3DView.xaml.cs on lines 440..440
IGS/Room3DView.xaml.cs on lines 441..441
IGS/Room3DView.xaml.cs on lines 443..443
IGS/Room3DView.xaml.cs on lines 444..444
IGS/Room3DView.xaml.cs on lines 445..445
IGS/Room3DView.xaml.cs on lines 446..446
IGS/Room3DView.xaml.cs on lines 447..447
IGS/Room3DView.xaml.cs on lines 448..448
IGS/Room3DView.xaml.cs on lines 449..449
IGS/Room3DView.xaml.cs on lines 450..450
IGS/Room3DView.xaml.cs on lines 451..451
IGS/Room3DView.xaml.cs on lines 452..452

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 90.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 20 locations. Consider refactoring.
Open

            Point3D left_hip = transformator.TransformPoint3D(new Point3D(body.Joints[JointType.HipLeft].Position.X, body.Joints[JointType.HipLeft].Position.Y, body.Joints[JointType.HipLeft].Position.Z));
Severity: Major
Found in IGS/Room3DView.xaml.cs and 19 other locations - About 1 hr to fix
IGS/Room3DView.xaml.cs on lines 433..433
IGS/Room3DView.xaml.cs on lines 434..434
IGS/Room3DView.xaml.cs on lines 435..435
IGS/Room3DView.xaml.cs on lines 436..436
IGS/Room3DView.xaml.cs on lines 437..437
IGS/Room3DView.xaml.cs on lines 438..438
IGS/Room3DView.xaml.cs on lines 439..439
IGS/Room3DView.xaml.cs on lines 440..440
IGS/Room3DView.xaml.cs on lines 441..441
IGS/Room3DView.xaml.cs on lines 442..442
IGS/Room3DView.xaml.cs on lines 443..443
IGS/Room3DView.xaml.cs on lines 444..444
IGS/Room3DView.xaml.cs on lines 445..445
IGS/Room3DView.xaml.cs on lines 446..446
IGS/Room3DView.xaml.cs on lines 447..447
IGS/Room3DView.xaml.cs on lines 448..448
IGS/Room3DView.xaml.cs on lines 450..450
IGS/Room3DView.xaml.cs on lines 451..451
IGS/Room3DView.xaml.cs on lines 452..452

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 90.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 20 locations. Consider refactoring.
Open

            Point3D center_shoulder = transformator.TransformPoint3D(new Point3D(body.Joints[JointType.SpineShoulder].Position.X, body.Joints[JointType.SpineShoulder].Position.Y, body.Joints[JointType.SpineShoulder].Position.Z));
Severity: Major
Found in IGS/Room3DView.xaml.cs and 19 other locations - About 1 hr to fix
IGS/Room3DView.xaml.cs on lines 433..433
IGS/Room3DView.xaml.cs on lines 434..434
IGS/Room3DView.xaml.cs on lines 435..435
IGS/Room3DView.xaml.cs on lines 436..436
IGS/Room3DView.xaml.cs on lines 437..437
IGS/Room3DView.xaml.cs on lines 438..438
IGS/Room3DView.xaml.cs on lines 439..439
IGS/Room3DView.xaml.cs on lines 440..440
IGS/Room3DView.xaml.cs on lines 441..441
IGS/Room3DView.xaml.cs on lines 442..442
IGS/Room3DView.xaml.cs on lines 443..443
IGS/Room3DView.xaml.cs on lines 444..444
IGS/Room3DView.xaml.cs on lines 445..445
IGS/Room3DView.xaml.cs on lines 446..446
IGS/Room3DView.xaml.cs on lines 447..447
IGS/Room3DView.xaml.cs on lines 448..448
IGS/Room3DView.xaml.cs on lines 449..449
IGS/Room3DView.xaml.cs on lines 450..450
IGS/Room3DView.xaml.cs on lines 451..451

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 90.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 20 locations. Consider refactoring.
Open

            Point3D right_hip = transformator.TransformPoint3D(new Point3D(body.Joints[JointType.HipRight].Position.X, body.Joints[JointType.HipRight].Position.Y, body.Joints[JointType.HipRight].Position.Z));
Severity: Major
Found in IGS/Room3DView.xaml.cs and 19 other locations - About 1 hr to fix
IGS/Room3DView.xaml.cs on lines 433..433
IGS/Room3DView.xaml.cs on lines 434..434
IGS/Room3DView.xaml.cs on lines 435..435
IGS/Room3DView.xaml.cs on lines 436..436
IGS/Room3DView.xaml.cs on lines 437..437
IGS/Room3DView.xaml.cs on lines 438..438
IGS/Room3DView.xaml.cs on lines 439..439
IGS/Room3DView.xaml.cs on lines 440..440
IGS/Room3DView.xaml.cs on lines 441..441
IGS/Room3DView.xaml.cs on lines 442..442
IGS/Room3DView.xaml.cs on lines 443..443
IGS/Room3DView.xaml.cs on lines 444..444
IGS/Room3DView.xaml.cs on lines 446..446
IGS/Room3DView.xaml.cs on lines 447..447
IGS/Room3DView.xaml.cs on lines 448..448
IGS/Room3DView.xaml.cs on lines 449..449
IGS/Room3DView.xaml.cs on lines 450..450
IGS/Room3DView.xaml.cs on lines 451..451
IGS/Room3DView.xaml.cs on lines 452..452

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 90.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 20 locations. Consider refactoring.
Open

            Point3D left_hand = transformator.TransformPoint3D(new Point3D(body.Joints[JointType.HandLeft].Position.X, body.Joints[JointType.HandLeft].Position.Y, body.Joints[JointType.HandLeft].Position.Z));
Severity: Major
Found in IGS/Room3DView.xaml.cs and 19 other locations - About 1 hr to fix
IGS/Room3DView.xaml.cs on lines 433..433
IGS/Room3DView.xaml.cs on lines 434..434
IGS/Room3DView.xaml.cs on lines 435..435
IGS/Room3DView.xaml.cs on lines 436..436
IGS/Room3DView.xaml.cs on lines 437..437
IGS/Room3DView.xaml.cs on lines 439..439
IGS/Room3DView.xaml.cs on lines 440..440
IGS/Room3DView.xaml.cs on lines 441..441
IGS/Room3DView.xaml.cs on lines 442..442
IGS/Room3DView.xaml.cs on lines 443..443
IGS/Room3DView.xaml.cs on lines 444..444
IGS/Room3DView.xaml.cs on lines 445..445
IGS/Room3DView.xaml.cs on lines 446..446
IGS/Room3DView.xaml.cs on lines 447..447
IGS/Room3DView.xaml.cs on lines 448..448
IGS/Room3DView.xaml.cs on lines 449..449
IGS/Room3DView.xaml.cs on lines 450..450
IGS/Room3DView.xaml.cs on lines 451..451
IGS/Room3DView.xaml.cs on lines 452..452

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 90.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Severity
Category
Status
Source
Language