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;
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
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));
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`,
Function arabeVersRomain
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
acte.arabeVersRomain = (arabe) => {
const lookup = {
M: 1000,
CM: 900,
D: 500,
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;
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
- Read upRead up
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
- Read upRead up
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,
- Read upRead up
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;
- Read upRead up
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;
- Read upRead up
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"