Showing 350 of 970 total issues
Function delete
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
'delete' : kwargs(function (obj, axis) {
var data = this._array;
if (typeof(obj) === 'number') {
obj = [obj];
}
Function value
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
value: function(value) {
if (value !== UNDEFINED) {
value = _strict(value);
if (value == '/') {
value = '';
Function _transposelike
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
_transposelike : function (axes, out) {
var source = this._array;
var shape = this._shape.slice();
var strides = calculateDimStrides(this._shape);
var dim = shape.length;
Function fetchResults
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
var fetchResults = function(){
if(!$scope.fetch) return;
var
$segment = $('.results.segment'),
$loader = $segment.find('.inline.loader');
Function show
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
show: function(callback) {
callback = $.isFunction(callback)
? callback
: function(){}
;
Function get
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
def get(self, request, *args, **kwargs):
_md5 = request.GET.get('md5')
if _md5:
cursor = connection.cursor()
cursor.execute(
- 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 post
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
def post(self, request, *args, **kwargs):
method = request.POST.get('_method')
_query = request.GET.copy()
print request.REQUEST.__str__();
print _query;
- 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 generar_query_ubicaciones
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
def generar_query_ubicaciones(ubicaciones, tabla_prioridad):
query = ''
count = 0
if type(ubicaciones) != list:
return query
- 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 positions
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
positions: function() {
var
window = {
height: $window.height()
},
Function brushSymbol
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
brushSymbol : function (ctx, style) {
var y = style.y + style.height / 4;
ctx.save();
var chainPoint = style.chainPoint;
Function var
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
'var' : kwargs((function () {
function withAxis(data, source, offsetStride, axisSize, stride) {
var cursor = 0;
for (var offset = 0; offset < this._size; offset+=offsetStride) {
for (var i = 0; i < stride; i++) {
Function std
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
std : kwargs((function () {
function withAxis(data, source, offsetStride, axisSize, stride) {
var cursor = 0;
for (var offset = 0; offset < this._size; offset+=offsetStride) {
for (var i = 0; i < stride; i++) {
Function standard
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
standard: function(response) {
var
html = ''
;
if(response.results !== undefined) {
Function selectValues
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
selectValues: function() {
var
select = {}
;
select.values = (settings.sortSelect)
Function pushPage
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
pushPage: function(callback) {
var
transition = module.get.transition(),
$transition = (transition == 'safe')
? $context
Function show
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
show: function(callback) {
var
animateMethod = (settings.useLegacy === true)
? module.legacyPushPage
: module.pushPage
Function ptp
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
ptp : kwargs((function () {
function withAxis(data, source, offsetStride, axisSize, stride) {
var cursor = 0;
for (var offset = 0; offset < this._size; offset+=offsetStride) {
for (var i = 0; i < stride; i++) {
Function buildPath
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
buildPath : function (ctx, style) {
var clockWise = style.clockWise || false;
var path = this._pathProxy;
Function mouseEvents
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
mouseEvents: function() {
module.verbose('Mouse detected binding mouse events');
if( module.is.searchSelection() ) {
$module
.on('mousedown' + eventNamespace, selector.menu, module.event.menu.activate)
Function pullPage
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
pullPage: function(callback) {
var
transition = module.get.transition(),
$transition = (transition == 'safe')
? $context