gtoubiana/acte

View on GitHub

Showing 31 of 31 total issues

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

const nutation = (jj) => {
  const ta = [];
  const t = (jj - 2451545.0) / 36525.0;
  const t2 = t * t;
  const t3 = t * t2;
Severity: Minor
Found in src/js/private/functions/nutation.js - About 1 hr to fix

    Function ordinauxEnLettres has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

     acte.ordinauxEnLettres = (saisie, genre) => {
       const str = saisie.toString();
       let result;
    
       // Dernier caractère
    Severity: Minor
    Found in src/js/public/functions/acte.ordinauxEnLettres.js - About 1 hr to fix

      Function positionSoleil has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      const positionSoleil = (jj) => {
        const T = (jj - jjAn2000Gregorien) / siecleJulien;
        const t2 = T * T;
        const l0 = normaliserDegres(280.46646 + (36000.76983 * T) +
          (0.0003032 * t2));
      Severity: Minor
      Found in src/js/private/functions/positionSoleil.js - About 1 hr to fix

        Function stream1 has 29 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            .on('end', () => {
              const stream2 = gulp.src(
                [
                  `${config.paths.bowerBootstrap}/css/bootstrap.min.css`,
                  `${config.paths.src}/docs/css/*.css`,
        Severity: Minor
        Found in gulp/tasks/docs.js - About 1 hr to fix

          Function arabeVersRomain has 28 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          acte.arabeVersRomain = (arabe) => {
            const lookup = {
              M: 1000,
              CM: 900,
              D: 500,
          Severity: Minor
          Found in src/js/public/functions/acte.arabeVersRomain.js - About 1 hr to fix

            Function equinoxe has 26 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            const equinoxe = (an, item) => {
              let i;
              let j;
              let Jde0tab;
              let S;
            Severity: Minor
            Found in src/js/private/functions/equinoxe.js - About 1 hr to fix

              Function saisieValide has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
              Open

              const saisieValide = (saisie, regexp) => {
                let tempSaisie = saisie;
                let u;
              
                // On remplace le texte restant par des chiffres arabes
              Severity: Minor
              Found in src/js/private/functions/saisieValide.js - About 55 mins to fix

              Cognitive Complexity

              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

              A method's cognitive complexity is based on a few simple rules:

              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
              • Code is considered more complex for each "break in the linear flow of the code"
              • Code is considered more complex when "flow breaking structures are nested"

              Further reading

              Function ordinauxEnLettres has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
              Open

               acte.ordinauxEnLettres = (saisie, genre) => {
                 const str = saisie.toString();
                 let result;
              
                 // Dernier caractère
              Severity: Minor
              Found in src/js/public/functions/acte.ordinauxEnLettres.js - About 35 mins to fix

              Cognitive Complexity

              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

              A method's cognitive complexity is based on a few simple rules:

              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
              • Code is considered more complex for each "break in the linear flow of the code"
              • Code is considered more complex when "flow breaking structures are nested"

              Further reading

              Function arabeVersRomain has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
              Open

              acte.arabeVersRomain = (arabe) => {
                const lookup = {
                  M: 1000,
                  CM: 900,
                  D: 500,
              Severity: Minor
              Found in src/js/public/functions/acte.arabeVersRomain.js - About 35 mins to fix

              Cognitive Complexity

              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

              A method's cognitive complexity is based on a few simple rules:

              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
              • Code is considered more complex for each "break in the linear flow of the code"
              • Code is considered more complex when "flow breaking structures are nested"

              Further reading

              Function nutation has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
              Open

              const nutation = (jj) => {
                const ta = [];
                const t = (jj - 2451545.0) / 36525.0;
                const t2 = t * t;
                const t3 = t * t2;
              Severity: Minor
              Found in src/js/private/functions/nutation.js - About 35 mins to fix

              Cognitive Complexity

              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

              A method's cognitive complexity is based on a few simple rules:

              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
              • Code is considered more complex for each "break in the linear flow of the code"
              • Code is considered more complex when "flow breaking structures are nested"

              Further reading

              Function formatageDeJour has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
              Open

              const formatageDeJour = (format, erreur, rappel, df, dt, dd, dobj, pro) => {
                const frmt = format || df;
                const err = erreur || 'Pas de correspondances.';
                const tvg = dt;
                let resultat;
              Severity: Minor
              Found in src/js/private/functions/formatageDeJour.js - About 25 mins to fix

              Cognitive Complexity

              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

              A method's cognitive complexity is based on a few simple rules:

              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
              • Code is considered more complex for each "break in the linear flow of the code"
              • Code is considered more complex when "flow breaking structures are nested"

              Further reading

              Severity
              Category
              Status
              Source
              Language