Showing 566 of 915 total issues
Function getData
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getData: function(url, og, whitelistRecord) {
// do not process if there is a whitelist record for this domain as processing will take longer
if (!whitelistRecord.isDefault && whitelistRecord.isAllowed && whitelistRecord.isAllowed('og.video')) {return;}
Function histogramDirective
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function histogramDirective($window) {
return {
restrict: 'E',
template: '<div></div>',
replace: true,
Function _setupUIElements
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var _setupUIElements = function() {
var item,
classAttr,
uiElement;
Function getLink
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getLink: function (oembed) {
var links = [];
if (oembed.type === "photo") {
Function getLink
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getLink: function(sm4, whitelistRecord) {
if (!(sm4.video && sm4.video.embed && whitelistRecord.isAllowed && whitelistRecord.isAllowed('sm4.video'))) {
return;
}
Function getData
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getData: function(urlMatch, request, options, cb) {
var consumer_key = options.getProviderOptions('tumblr.consumer_key');
if (!consumer_key) {
Function format
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function format(o, headers, req) {
if (typeof o === 'boolean') {
o = {success: o};
}
Function l
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function l(e, a, i) {
function n() {
return e.length && a.length ? e[0].offset != a[0].offset ? e[0].offset < a[0].offset ? e : a : "start" == a[0].event ? e : a : e.length ? e : a
}
function o(e) {
Function link
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link : function ($scope, $element, $attrs) {
// Watch for changes on scope if model is provided
if ($attrs.fullscreen) {
$scope.$watch($attrs.fullscreen, function(value) {
var isEnabled = Fullscreen.isEnabled();
Function getPropFunction
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getPropFunction(params) {
var func;
if(!params.exclude && !params.include) {
func = function(properties) {
Function controller
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
controller: function($scope, $element) {
$scope.showMoreAction = false;
// Modal can be closed by clicking around the modal
$scope.closeModal = function(event) {
Function link
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function (scope, element, attrs) {
var canvas = element.find('canvas')[0];
var context = canvas.getContext('2d');
var chart;
Function static
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.static = function(root, options){
options = options || {};
// root required
if (!root) throw new Error('static() root path required');
Function getLink
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getLink: function(htmlparser, cb) {
var end = false;
var parser = {
Function getLink
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getLink: function(oembed, whitelistRecord) {
if (!(oembed.type === "video" && whitelistRecord.isAllowed && whitelistRecord.isAllowed('oembed.video'))) {
return;
Function getPluginMethods
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getPluginMethods(pluginPath,plugin) {
var methods = {};
for (var name in plugin) {
var func = plugin[name];
if (typeof func === "function" && PLUGIN_METHODS.indexOf(name) > -1) {
Function filterMap
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
vm.filterMap = function() {
cancelAllRequest();
if (window.map) { delete(window.map); }
vm.newStasuses = [];
$rootScope.root.globalFilter = "map";
Function _dropHandler
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var _dropHandler = function(droppedItemIndex) {
var theList = scope.$eval(attrs.uiSelectSort),
itemToMove = theList[droppedItemIndex],
newIndex = null;
Function getLinks
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getLinks: function(__promoUri, promo) {
var hasGoodLinks = false;
var links = promo.links.filter(function(link) {
var match = _.intersection(link.rel, CONFIG.PROMO_RELS);
Function getLink
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getLink: function(urlMatch, og, options, cb) {
if (!og.image) {
cb('OG image not available');