Showing 5,781 of 10,536 total issues
Function addText
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Canvas.prototype.addText = function(layer, x, y, text, font, angle, width, halign, valign) {
var info = this.getTextInfo(layer, text, font, angle, width),
positions = info.positions;
Function init
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
e.name = "Footable Filter", e.init = function(a) {
if (e.footable = a, a.options.filter.enabled === !0) {
if (t(a.table).data("filter") === !1) return;
a.timers.register("filter"), t(a.table).unbind(".filtering").bind({
"footable_initialized.filtering": function() {
Function applyAttr
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
jvm.SVGShapeElement.prototype.applyAttr = function(attr, value){
var patternEl,
imageEl,
that = this;
Function h
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
h = function(b) {
b &&
(b.bind("dragover", function(b) {
var c = a.getItemFromElem(this);
if (c && a.isItemEnabled(c)) {
Function applyPlacement
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Tooltip.prototype.applyPlacement = function (offset, placement) {
var $tip = this.tip()
var width = $tip[0].offsetWidth
var height = $tip[0].offsetHeight
Function getAllMeters
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.getAllMeters = function() {
let headers = { "User-UUID": $scope.cur_user.uuid, "Token": $scope.cur_user.token };
MeterService.getAllMeters(headers, function (response) {
if (angular.isDefined(response.status) && response.status === 200) {
$scope.meters = response.data;
Function Success
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Success = () => {
const { setStep, setUser } = useContext(AuthWizardContext);
const defaultOptions = {
loop: true,
Function deps
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ($ocLazyLoad) {
return $ocLazyLoad.load(['ui.select', 'daterangepicker', 'toaster']).then(
function () {
return $ocLazyLoad.load([{
serie: true,
Function DropZoneWidget
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const DropZoneWidget = () => {
const [avatar, setAvatar] = useState([{ src: avatarImg }]);
return (
<Card className="mt-3">
Function on_get
has 31 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_put
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def on_put(req, resp):
"""Handles PUT requests"""
access_control(req)
try:
raw_json = req.stream.read().decode('utf-8')
Function on_put
has 31 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_get
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def on_get(req, resp):
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_get
has 31 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 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def on_post(req, resp, id_):
"""Handles POST requests"""
admin_control(req)
if not id_.isdigit() or int(id_) <= 0:
raise falcon.HTTPError(status=falcon.HTTP_400, title='API.BAD_REQUEST',
Function on_get
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def on_get(req, resp, id_, pid):
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_get
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def on_get(req, resp):
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_get
has 31 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 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def on_post(req, resp, id_):
"""Handles POST requests"""
admin_control(req)
if not id_.isdigit() or int(id_) <= 0:
raise falcon.HTTPError(status=falcon.HTTP_400, title='API.BAD_REQUEST',
Function on_get
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def on_get(req, resp, id_, pid):
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)