Showing 1,593 of 14,443 total issues
Method preDispatch
has 255 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function preDispatch()
{
parent::preDispatch();
$this->view->setEncoding('UTF-8');
- Create a ticketCreate a ticket
File common.browser.js
has 589 lines of code (exceeds 250 allowed). Consider refactoring. Open
// Midas Server. Copyright Kitware SAS. Licensed under the Apache License 2.0.
/* global json */
var midas = midas || {};
- Create a ticketCreate a ticket
File producer.aggregateMetric.js
has 587 lines of code (exceeds 250 allowed). Consider refactoring. Open
// Midas Server. Copyright Kitware SAS. Licensed under the Apache License 2.0.
/* global ajaxWebApi */
/* global json */
- Create a ticketCreate a ticket
File ApiComponentControllerTest.php
has 578 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/*=========================================================================
Midas Server
Copyright Kitware SAS, 26 rue Louis Guérin, 69100 Villeurbanne, France.
All rights reserved.
- Create a ticketCreate a ticket
File Main.java
has 570 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* Midas Server
* Copyright Kitware SAS, 26 rue Louis Guérin, 69100 Villeurbanne, France.
* All rights reserved.
* For more information visit http://www.kitware.com/.
- Create a ticketCreate a ticket
File jquery.treeTable.js
has 564 lines of code (exceeds 250 allowed). Consider refactoring. Open
// Midas Server. Copyright Kitware SAS. Licensed under the Apache License 2.0.
/* global callbackCheckboxes */
/* global callbackCreateElement */
/* global callbackCustomElements */
- Create a ticketCreate a ticket
Function volumeAction
has a Cognitive Complexity of 59 (exceeds 5 allowed). Consider refactoring. Open
public function volumeAction()
{
$jsImports = $this->getParam('jsImports');
if (isset($jsImports)) {
$this->view->jsImports = explode(';', $jsImports);
- Read upRead up
- Create a ticketCreate a ticket
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 parse_obj
has a Cognitive Complexity of 58 (exceeds 5 allowed). Consider refactoring. Open
def parse_obj(fname):
"""Parse OBJ file.
"""
vertices = []
- Read upRead up
- Create a ticketCreate a ticket
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 ItemModel.php
has 541 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/*=========================================================================
Midas Server
Copyright Kitware SAS, 26 rue Louis Guérin, 69100 Villeurbanne, France.
All rights reserved.
- Create a ticketCreate a ticket
Function parse_mtl
has a Cognitive Complexity of 56 (exceeds 5 allowed). Consider refactoring. Open
def parse_mtl(fname):
"""Parse MTL file.
"""
materials = {}
- Read upRead up
- Create a ticketCreate a ticket
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 ItemController.php
has 523 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/*=========================================================================
Midas Server
Copyright Kitware SAS, 26 rue Louis Guérin, 69100 Villeurbanne, France.
All rights reserved.
- Create a ticketCreate a ticket
Function __construct
has a Cognitive Complexity of 54 (exceeds 5 allowed). Consider refactoring. Open
public function __construct($logged, $session)
{
$modules = Zend_Registry::get('modulesEnable');
foreach ($modules as $module) {
if (file_exists(BASE_PATH.'/modules/'.$module.'/Notification.php')) {
- Read upRead up
- Create a ticketCreate a ticket
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 sliceAction
has a Cognitive Complexity of 54 (exceeds 5 allowed). Consider refactoring. Open
public function sliceAction()
{
$operations = $this->getParam('operations');
if (!isset($operations)) {
$operations = '';
- Read upRead up
- Create a ticketCreate a ticket
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
Method _createFolderForItem
has 209 lines of code (exceeds 25 allowed). Consider refactoring. Open
private function _createFolderForItem($collectionId, $parentFolderid)
{
/** @var FolderModel $Folder */
$Folder = MidasLoader::loadModel('Folder');
- Create a ticketCreate a ticket
JSONObject
has 58 methods (exceeds 20 allowed). Consider refactoring. Open
public class JSONObject {
/**
* JSONObject.NULL is equivalent to the value that JavaScript calls null,
* whilst Java's null is equivalent to the value that JavaScript calls
- Create a ticketCreate a ticket
JSONObject
has 58 methods (exceeds 20 allowed). Consider refactoring. Open
public class JSONObject {
/**
* JSONObject.NULL is equivalent to the value that JavaScript calls null,
* whilst Java's null is equivalent to the value that JavaScript calls
- Create a ticketCreate a ticket
Function indexAction
has a Cognitive Complexity of 52 (exceeds 5 allowed). Consider refactoring. Open
public function indexAction()
{
$this->requireAdminPrivileges();
$this->view->header = 'Administration';
- Read upRead up
- Create a ticketCreate a ticket
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
Method manageAction
has 197 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function manageAction()
{
$communityId = $this->getParam('communityId');
if (!isset($communityId) || !is_numeric($communityId)) {
throw new Zend_Exception('Community ID should be a number');
- Create a ticketCreate a ticket
Method viewAction
has 195 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function viewAction()
{
if (!($this->_request->isGet() || $this->_request->isPost())) {
throw new Zend_Exception('Only HTTP Get or Post requests are accepted', 400);
}
- Create a ticketCreate a ticket
Method dialogAction
has 195 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function dialogAction()
{
$this->disableLayout();
$type = $this->getParam('type');
$element = $this->getParam('element');
- Create a ticketCreate a ticket