Showing 283 of 424 total issues
Function execute
has a Cognitive Complexity of 90 (exceeds 5 allowed). Consider refactoring. Open
Open
protected function execute(InputInterface $input, OutputInterface $output)
{
try {
$file = $input->getArgument('file');
if (!is_string($file)) {
- 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
File Users.php
has 528 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php declare(strict_types=1);
/**
* @author Nicolas CARPi <nico-git@deltablot.email>
* @copyright 2012 Nicolas CARPi
* @see https://www.elabftw.net Official website
File AbstractEntity.php
has 506 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php declare(strict_types=1);
/**
* @author Nicolas CARPi <nico-git@deltablot.email>
* @copyright 2012 Nicolas CARPi
* @see https://www.elabftw.net Official website
Method execute
has 195 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function execute(InputInterface $input, OutputInterface $output)
{
try {
$file = $input->getArgument('file');
if (!is_string($file)) {
Function displayPlasmidViewer
has 189 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function displayPlasmidViewer(about: DOMStringMap): void {
/* eslint-disable-next-line */
const editor: any = {};
const ApiC = new Api();
Array.from(document.getElementsByClassName('viewer-ove')).forEach(el => {
Function getTinymceBaseConfig
has 179 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function getTinymceBaseConfig(page: string): object {
let plugins = 'accordion advlist anchor autolink autoresize table searchreplace code fullscreen insertdatetime charmap lists save image link pagebreak codesample template mention visualblocks visualchars emoticons';
let toolbar1 = 'undo redo | styles fontsize bold italic underline strikethrough | alignleft aligncenter alignright alignjustify | superscript subscript | bullist numlist outdent indent | forecolor backcolor | charmap emoticons adddate | codesample | link | sort-table | save';
let removedMenuItems = 'newdocument, image, anchor';
if (page === 'edit') {
File Metadata.class.ts
has 456 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* @author Nicolas CARPi <nico-git@deltablot.email>
* @copyright 2012 Nicolas CARPi
* @see https://www.elabftw.net Official website
* @license AGPL-3.0
File misc.ts
has 448 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* @author Nicolas CARPi <nico-git@deltablot.email>
* @copyright 2012 Nicolas CARPi
* @see https://www.elabftw.net Official website
* @license AGPL-3.0
File common.ts
has 433 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* @author Nicolas CARPi <nico-git@deltablot.email>
* @copyright 2012 Nicolas CARPi
* @see https://www.elabftw.net Official website
* @license AGPL-3.0
Function parseFile
has 153 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function parseFile(fileContent): Promise<void> {
const parsedData = await anyToJson(fileContent, {
fileName: realName,
guessIfProtein: true,
});
File fr_FR.js
has 419 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
tinymce.addI18n('fr_FR',{
"Redo": "R\u00e9tablir",
"Undo": "Annuler",
"Cut": "Couper",
"Copy": "Copier",
File es_ES.js
has 419 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
tinymce.addI18n('es_ES',{
"Redo": "Rehacer",
"Undo": "Deshacer",
"Cut": "Cortar",
"Copy": "Copiar",
File it_IT.js
has 419 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
tinymce.addI18n('it_IT',{
"Redo": "Ripristina",
"Undo": "Annulla",
"Cut": "Taglia",
"Copy": "Copia",
File zh_CN.js
has 419 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
tinymce.addI18n('zh_CN',{
"Redo": "\u91cd\u505a",
"Undo": "\u64a4\u9500",
"Cut": "\u526a\u5207",
"Copy": "\u590d\u5236",
File ja_JP.js
has 419 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
tinymce.addI18n('ja_JP',{
"Redo": "\u3084\u308a\u76f4\u3057",
"Undo": "\u5143\u306b\u623b\u3059",
"Cut": "\u5207\u308a\u53d6\u308a",
"Copy": "\u30b3\u30d4\u30fc",
File id_ID.js
has 419 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
tinymce.addI18n('id_ID',{
"Redo": "Ulang",
"Undo": "Batalkan",
"Cut": "Potong",
"Copy": "Salin",
File pt_PT.js
has 419 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
tinymce.addI18n('pt_PT',{
"Redo": "Refazer",
"Undo": "Anular",
"Cut": "Cortar",
"Copy": "Copiar",
File ca_ES.js
has 419 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
tinymce.addI18n('ca_ES',{
"Redo": "Refer",
"Undo": "Desfer",
"Cut": "Retalla",
"Copy": "Copia",
File ko_KR.js
has 419 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
tinymce.addI18n('ko_KR',{
"Redo": "\ub2e4\uc2dc \uc2e4\ud589",
"Undo": "\uc2e4\ud589 \ucde8\uc18c",
"Cut": "\uc798\ub77c\ub0b4\uae30",
"Copy": "\ubcf5\uc0ac",
File pt_BR.js
has 419 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
tinymce.addI18n('pt_BR',{
"Redo": "Refazer",
"Undo": "Desfazer",
"Cut": "Cortar",
"Copy": "Copiar",