kachkaev/humane-math

View on GitHub
src/extra/standard-symbols.js

Summary

Maintainability
F
1 wk
Test Coverage

File standard-symbols.js has 421 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import {HumaneMath} from '../core/core';

/* eslint-disable indent, spellcheck/spell-checker */
/* See http://github.com/eslint/eslint/issues/4696 */

Severity: Minor
Found in src/extra/standard-symbols.js - About 6 hrs to fix

    Function addInvolutionFunctions has 65 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      addInvolutionFunctions() {
    
        // Power
        this.addFunction({
            'pow':     HumaneMath.Dialect.WEST,
    Severity: Major
    Found in src/extra/standard-symbols.js - About 2 hrs to fix

      Function addInverseTrigonometricFunctions has 57 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        addInverseTrigonometricFunctions() {
      
          // Arcsine
          this.addFunction({
              'arcsin':   HumaneMath.Dialect.WEST,
      Severity: Major
      Found in src/extra/standard-symbols.js - About 2 hrs to fix

        Function addTrigonometricFunctions has 52 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          addTrigonometricFunctions() {
        
            // Sine
            this.addFunction({
                'sin':   HumaneMath.Dialect.WEST,
        Severity: Major
        Found in src/extra/standard-symbols.js - About 2 hrs to fix

          Function addNonMathFunctions has 43 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            addNonMathFunctions() {
          
              // Maximum value
              this.addFunction({
                  'max':      HumaneMath.Dialect.WEST,
          Severity: Minor
          Found in src/extra/standard-symbols.js - About 1 hr to fix

            Function addInverseHyperbolicTrigonometricFunctions has 42 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              addInverseHyperbolicTrigonometricFunctions() {
                // Hyperbolic arcsine
                this.addFunction({
                    'arcsinh': HumaneMath.Dialect.WEST,
                    'arsh':    HumaneMath.Dialect.EAST
            Severity: Minor
            Found in src/extra/standard-symbols.js - About 1 hr to fix

              Function addHyperbolicTrigonometricFunctions has 35 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                addHyperbolicTrigonometricFunctions() {
              
                  // Hyperbolic sine
                  this.addFunction({
                      'sinh': HumaneMath.Dialect.WEST,
              Severity: Minor
              Found in src/extra/standard-symbols.js - About 1 hr to fix

                Function addMiscFunctions has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  addMiscFunctions() {
                    // Abs
                    this.addFunction({
                        'abs':     HumaneMath.Dialect.WEST,
                        'modulus': HumaneMath.Dialect.MISC,
                Severity: Minor
                Found in src/extra/standard-symbols.js - About 1 hr to fix

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

                      this.addFunction({
                          'max':      HumaneMath.Dialect.WEST,
                          'maximum':  HumaneMath.Dialect.WEST_LONG,
                          'макс':     HumaneMath.Dialect.RUS,
                          'максимум': HumaneMath.Dialect.RUS_LONG
                  Severity: Major
                  Found in src/extra/standard-symbols.js and 1 other location - About 5 hrs to fix
                  src/extra/standard-symbols.js on lines 457..471

                  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 139.

                  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 2 locations. Consider refactoring.
                  Open

                      this.addFunction({
                          'min': HumaneMath.Dialect.WEST,
                          'minimum':  HumaneMath.Dialect.WEST_LONG,
                          'мин':  HumaneMath.Dialect.RUS,
                          'минимум':  HumaneMath.Dialect.RUS_LONG
                  Severity: Major
                  Found in src/extra/standard-symbols.js and 1 other location - About 5 hrs to fix
                  src/extra/standard-symbols.js on lines 440..454

                  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 139.

                  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 3 locations. Consider refactoring.
                  Open

                      this.addFunction({
                          'tan':     HumaneMath.Dialect.WEST,
                          'tangent': HumaneMath.Dialect.WEST_LONG,
                          'tg':      HumaneMath.Dialect.EAST,
                          'тан':     HumaneMath.Dialect.RUS,
                  Severity: Major
                  Found in src/extra/standard-symbols.js and 2 other locations - About 3 hrs to fix
                  src/extra/standard-symbols.js on lines 101..109
                  src/extra/standard-symbols.js on lines 112..120

                  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 98.

                  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 3 locations. Consider refactoring.
                  Open

                      this.addFunction({
                          'arccos':     HumaneMath.Dialect.WEST,
                          'arccosine':  HumaneMath.Dialect.WEST_LONG,
                          'acos':       HumaneMath.Dialect.PROGRAMMING,
                          'арккос':     HumaneMath.Dialect.RUS,
                  Severity: Major
                  Found in src/extra/standard-symbols.js and 2 other locations - About 3 hrs to fix
                  src/extra/standard-symbols.js on lines 54..62
                  src/extra/standard-symbols.js on lines 101..109

                  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 98.

                  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 3 locations. Consider refactoring.
                  Open

                      this.addFunction({
                          'arcsin':   HumaneMath.Dialect.WEST,
                          'arcsine':  HumaneMath.Dialect.WEST_LONG,
                          'asin':     HumaneMath.Dialect.PROGRAMMING,
                          'арксин':   HumaneMath.Dialect.RUS,
                  Severity: Major
                  Found in src/extra/standard-symbols.js and 2 other locations - About 3 hrs to fix
                  src/extra/standard-symbols.js on lines 54..62
                  src/extra/standard-symbols.js on lines 112..120

                  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 98.

                  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 2 locations. Consider refactoring.
                  Open

                      this.addFunction({
                          'coth': HumaneMath.Dialect.WEST,
                          'сth':  HumaneMath.Dialect.EAST
                        },
                        (params) => (Math.exp(2 * params[0]) + 1.0) / (Math.exp(2 * params[0]) - 1.0)
                  Severity: Major
                  Found in src/extra/standard-symbols.js and 1 other location - About 2 hrs to fix
                  src/extra/standard-symbols.js on lines 190..195

                  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 91.

                  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 2 locations. Consider refactoring.
                  Open

                      this.addFunction({
                          'tanh': HumaneMath.Dialect.WEST,
                          'th':   HumaneMath.Dialect.EAST
                        },
                        (params) => (Math.exp(2 * params[0]) - 1.0) / (Math.exp(2 * params[0]) + 1.0)
                  Severity: Major
                  Found in src/extra/standard-symbols.js and 1 other location - About 2 hrs to fix
                  src/extra/standard-symbols.js on lines 198..203

                  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 91.

                  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 2 locations. Consider refactoring.
                  Open

                      this.addFunction({
                          'sin':   HumaneMath.Dialect.WEST,
                          'sine':  HumaneMath.Dialect.WEST_LONG,
                          'син':   HumaneMath.Dialect.RUS,
                          'синус': HumaneMath.Dialect.RUS_LONG
                  Severity: Major
                  Found in src/extra/standard-symbols.js and 1 other location - About 2 hrs to fix
                  src/extra/standard-symbols.js on lines 44..51

                  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 85.

                  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 2 locations. Consider refactoring.
                  Open

                      this.addFunction({
                          'cos':     HumaneMath.Dialect.WEST,
                          'cosine':  HumaneMath.Dialect.WEST_LONG,
                          'кос':     HumaneMath.Dialect.RUS,
                          'косинус': HumaneMath.Dialect.RUS_LONG
                  Severity: Major
                  Found in src/extra/standard-symbols.js and 1 other location - About 2 hrs to fix
                  src/extra/standard-symbols.js on lines 34..41

                  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 85.

                  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 2 locations. Consider refactoring.
                  Open

                      this.addFunction({
                          'cosh': HumaneMath.Dialect.WEST,
                          'ch':   HumaneMath.Dialect.EAST
                        },
                        (params) => (Math.exp(params[0]) + Math.exp(-params[0])) / 2.0
                  Severity: Major
                  Found in src/extra/standard-symbols.js and 1 other location - About 2 hrs to fix
                  src/extra/standard-symbols.js on lines 174..179

                  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 81.

                  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 2 locations. Consider refactoring.
                  Open

                      this.addFunction({
                          'sinh': HumaneMath.Dialect.WEST,
                          'sh':   HumaneMath.Dialect.EAST
                        },
                        (params) => (Math.exp(params[0]) - Math.exp(-params[0])) / 2.0
                  Severity: Major
                  Found in src/extra/standard-symbols.js and 1 other location - About 2 hrs to fix
                  src/extra/standard-symbols.js on lines 182..187

                  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 81.

                  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 4 locations. Consider refactoring.
                  Open

                      this.addFunction({
                          'arccot':       HumaneMath.Dialect.WEST,
                          'arccotangent': HumaneMath.Dialect.WEST_LONG,
                          'arcctg':       HumaneMath.Dialect.EAST,
                          'acot':         HumaneMath.Dialect.PROGRAMMING,
                  Severity: Major
                  Found in src/extra/standard-symbols.js and 3 other locations - About 2 hrs to fix
                  src/extra/standard-symbols.js on lines 65..72
                  src/extra/standard-symbols.js on lines 123..130
                  src/extra/standard-symbols.js on lines 159..166

                  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 80.

                  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 4 locations. Consider refactoring.
                  Open

                      this.addFunction({
                          'arccsc':      HumaneMath.Dialect.WEST,
                          'arcsecant':   HumaneMath.Dialect.WEST_LONG,
                          'arccosec':    HumaneMath.Dialect.EAST,
                          'acosec':      HumaneMath.Dialect.PROGRAMMING,
                  Severity: Major
                  Found in src/extra/standard-symbols.js and 3 other locations - About 2 hrs to fix
                  src/extra/standard-symbols.js on lines 65..72
                  src/extra/standard-symbols.js on lines 123..130
                  src/extra/standard-symbols.js on lines 135..142

                  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 80.

                  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 4 locations. Consider refactoring.
                  Open

                      this.addFunction({
                          'cot':       HumaneMath.Dialect.WEST,
                          'cotangent': HumaneMath.Dialect.WEST_LONG,
                          'ctg':       HumaneMath.Dialect.EAST,
                          'ctn':       HumaneMath.Dialect.EAST,
                  Severity: Major
                  Found in src/extra/standard-symbols.js and 3 other locations - About 2 hrs to fix
                  src/extra/standard-symbols.js on lines 123..130
                  src/extra/standard-symbols.js on lines 135..142
                  src/extra/standard-symbols.js on lines 159..166

                  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 80.

                  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 4 locations. Consider refactoring.
                  Open

                      this.addFunction({
                          'arctan':     HumaneMath.Dialect.WEST,
                          'arctangent': HumaneMath.Dialect.WEST_LONG,
                          'arctg':      HumaneMath.Dialect.EAST,
                          'atan':       HumaneMath.Dialect.PROGRAMMING,
                  Severity: Major
                  Found in src/extra/standard-symbols.js and 3 other locations - About 2 hrs to fix
                  src/extra/standard-symbols.js on lines 65..72
                  src/extra/standard-symbols.js on lines 135..142
                  src/extra/standard-symbols.js on lines 159..166

                  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 80.

                  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 2 locations. Consider refactoring.
                  Open

                      this.addFunction({
                          'ceil':    HumaneMath.Dialect.WEST,
                          'ceiling': HumaneMath.Dialect.WEST_LONG
                        },
                        (params) => Math.ceil(params[0])
                  Severity: Minor
                  Found in src/extra/standard-symbols.js and 1 other location - About 55 mins to fix
                  src/extra/standard-symbols.js on lines 328..333

                  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 54.

                  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 2 locations. Consider refactoring.
                  Open

                      this.addFunction({
                          'sqrt': HumaneMath.Dialect.WEST,
                          'кк':   HumaneMath.Dialect.RUS
                        },
                        (params) => Math.sqrt(params[0])
                  Severity: Minor
                  Found in src/extra/standard-symbols.js and 1 other location - About 55 mins to fix
                  src/extra/standard-symbols.js on lines 291..296

                  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 54.

                  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

                  There are no issues that match your filters.

                  Category
                  Status