Showing 5,781 of 10,536 total issues
Function on_post
has 35 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_post
has 35 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_put
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def on_put(req, resp, id_):
"""Handles PUT requests"""
admin_control(req)
if not id_.isdigit() or int(id_) <= 0:
Function $get
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function($$rAF, $rootScope, $rootElement, $document, $$Map,
$$animation, $$AnimateRunner, $templateRequest, $$jqLite, $$forceReflow,
$$isDocumentHidden) {
Function drawBar
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function drawBar(x, y, b, barLeft, barRight, fillStyleCallback, axisx, axisy, c, horizontal, lineWidth) {
Function ParamType
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var ParamType = /** @class */ (function () {
/**
* @param def A configuration object which contains the custom type definition. The object's
* properties will override the default methods and/or pattern in `ParamType`'s public interface.
* @returns a new ParamType object
Function run
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Transition.prototype.run = function () {
var _this = this;
var runAllHooks = TransitionHook.runAllHooks;
// Gets transition hooks array for the given phase
var getHooksFor = function (phase) { return _this._hookBuilder.buildHooksForPhase(phase); };
Function link
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function (scope, element, attrs, uiSrefActive) {
var type = getTypeInfo(element);
var active = uiSrefActive[1] || uiSrefActive[0];
var unlinkInfoFn = null;
var hookFn;
Function mapData
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var mapData = function(data, maskPattern) {
var inc = -1;
var row = _moduleCount - 1;
var bitIndex = 7;
Function initDriverFn
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
return function initDriverFn(animationDetails) {
if (animationDetails.from && animationDetails.to) {
var fromAnimation = prepareAnimation(animationDetails.from);
var toAnimation = prepareAnimation(animationDetails.to);
if (!fromAnimation && !toAnimation) return;
Function WorkFn
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function WorkFn() {
var modules = currentSpec.$modules || [];
var strictDi = !!currentSpec.$injectorStrict;
modules.unshift(['$injector', function($injector) {
currentSpec.$providerInjector = $injector;
Function commitRoute
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function commitRoute() {
var lastRoute = $route.current;
var nextRoute = preparedRoute;
if (preparedRouteIsUpdateOnly) {
Function getEventSkinCss
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getEventSkinCss: function(event) {
var view = this.view;
var source = event.source || {};
var eventColor = event.color;
var sourceColor = source.color;
Function sliceSegs
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function sliceSegs(events, visEventEnds, start, end) {
var segs = [],
i, len=events.length, event,
eventStart, eventEnd,
segStart, segEnd,
Function pushFile
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var pushFile = function pushFile(path) {
var file_type = null,
m;
if (angular.isObject(path)) {
file_type = path.type;
Function processRawData
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function processRawData(plot, series, datapoints) {
// we normalize the area of each symbol so it is approximately the
// same as a circle of the given radius
var handlers = {
Function updateCheckMark
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
a.updateCheckMark = function() {
if (e) {
var b = getComputedStyle(e[0])["background-image"];
if (b && "none" != b) k();
else if ("CANVAS" == e[0].tagName) {
Function init
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var init = function() {
this.el = el;
this.options = options;
// merge user options into default options
Function isDropAllowed
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.isDropAllowed = function(a, c, u) {
var d = b.options.allowDrop;
if (
d &&
a &&
Function init
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var init = function() {
this.el = el;
this.options = options;
// merge user options into default options