Showing 5,781 of 10,536 total issues
Function on_put
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def on_put(req, resp, id_):
"""Handles PUT requests"""
admin_control(req)
try:
raw_json = req.stream.read().decode('utf-8')
Function on_post
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def on_post(req, resp):
"""Handles POST requests"""
admin_control(req)
try:
raw_json = req.stream.read().decode('utf-8')
Function on_get
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def on_get(req, resp, id_):
if 'API-KEY' not in req.headers or \
not isinstance(req.headers['API-KEY'], str) or \
len(str.strip(req.headers['API-KEY'])) == 0:
access_control(req)
Function on_post
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def on_post(req, resp):
"""Handles POST requests"""
admin_control(req)
try:
raw_json = req.stream.read().decode('utf-8')
Function on_get
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def on_get(req, resp, id_):
if 'API-KEY' not in req.headers or \
not isinstance(req.headers['API-KEY'], str) or \
len(str.strip(req.headers['API-KEY'])) == 0:
access_control(req)
Function on_post
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def on_post(req, resp):
"""Handles POST requests"""
admin_control(req)
try:
Function _equals
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _equals(o1, o2) {
if (o1 === o2)
return true;
if (o1 === null || o2 === null)
return false;
Function $RootScopeDecorator
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
angular.mock.$RootScopeDecorator = ['$delegate', function($delegate) {
var $rootScopePrototype = Object.getPrototypeOf($delegate);
$rootScopePrototype.$countChildScopes = countChildScopes;
Function getRedirectionData
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getRedirectionData(route) {
var data = {
route: route,
hasRedirection: false
};
Function getColorpickerTemplatePosition
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var getColorpickerTemplatePosition = function() {
var
positionValue,
positionOffset = Helper.getOffset(elem[0]);
Function setHeight
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setHeight: function(totalHeight, isAuto) {
var eventLimit;
var scrollerHeight;
if (this.bottomRuleHeight === null) {
Function buildEventSource
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function buildEventSource(sourceInput) { // will return undefined if invalid source
var normalizers = fc.sourceNormalizers;
var source;
var i;
Function HoverListener
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function HoverListener(coordinateGrid) {
var t = this;
var bindType;
Function showSegPopover
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
showSegPopover: function(date, cell, moreLink, segs) {
var _this = this;
var view = this.view;
var moreWrap = moreLink.parent(); // the <div> wrapper around the <a>
var topEl; // the element we want to match the top coordinate of
Function setLang
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
return $scope.lang = "English", $scope.setLang = function (lang) {
switch (lang) {
case"English":
localize.setLanguage("EN-US");
break;
Function resize
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
}, r.resize = function() {
var t = e(r.table);
if (t.is(":visible")) {
if (!r.hasAnyBreakpointColumn()) return t.trigger(u.redraw), undefined;
var a = {
Function uiBrCnpjMask
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function uiBrCnpjMask() {
function applyCnpjMask (value) {
if(!value) {
return value;
}
Function uiBrCpfMask
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function uiBrCpfMask() {
function applyCpfMask (value) {
if(!value) {
return value;
}
Function X
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function X() {
function b(f) {
T = f.pageX;
if (!I) {
E();
Function applyAttr
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
jvm.VMLShapeElement.prototype.applyAttr = function(attr, value){
switch (attr) {
case 'fill':
this.node.fillcolor = value;
break;