Showing 566 of 915 total issues
Function getData
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getData: function(url, cb) {
// find domain and protocol
var domain, protocol;
var m = url.toLowerCase().match(/^(https?:\/\/)([^/]+)\/(.)/i);
Function generateLinksHtml
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.generateLinksHtml = function(data, options) {
// Links may be grouped.
var links = data.links;
Function formatFriends
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function formatFriends(o, headers, req) {
paging(o);
var r = [];
if ('feed' in o && 'entry' in o.feed) {
var token = req.query.access_token;
Function compile
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
compile: function(tElement, tAttrs) {
if (!tAttrs.repeat) throw uiSelectMinErr('repeat', "Expected 'repeat' expression.");
return function link(scope, element, attrs, $select, transcludeFn) {
Function show
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Drawer.prototype.show = function () {
if (this.transitioning || this.$element.hasClass('open')) { return; }
var activesData;
var actives = this.$parent && this.$parent.children('.panel').children('.in, .collapsing');
Function validateSourceUrl
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.validateSourceUrl = function() {
$scope.currentData = null;
$scope.showCurrentData = false;
if (!$scope.inputs.url) {
$scope.validateStatus = '';
Function getLink
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getLink: function(schemaVideoObject, whitelistRecord) {
if (schemaVideoObject.embedURL || schemaVideoObject.embedUrl) {
var type = CONFIG.T.maybe_text_html;
Function renderObject
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.renderObject = function(o) {
function trimString(v) {
var MAX = 600;
if (typeof v === "string" && v.length > MAX) {
Function findAllPluginMethods
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function findAllPluginMethods(pluginId, plugins, result, skipped) {
result = result || {
mandatory: [],
skipped: []
Function getUriStatus
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.getUriStatus = function(uri, options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
Function prepareLink
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
prepareLink: function(url, link, options, cb) {
// Check if need link processing.
if (!link.href) {
Function sendLogToWhitelist
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.sendLogToWhitelist = function(uri, meta, oembed, whitelistRecord) {
if (!CONFIG.WHITELIST_LOG_URL) {
return
}
Consider simplifying this complex logical expression. Open
Open
if (twitter.card === "photo" && twitter.site === '@cloudapp'
&& twitter.image && /^https?:\/\/f\.cl\.ly\//.test(twitter.image.url || twitter.image.src || twitter.image)) {
return {
href: twitter.image.url || twitter.image.src || twitter.image,
Consider simplifying this complex logical expression. Open
Open
if (h = m && d ? d[m] : _[r]) {
for (l = h.length - 1; l >= 0; l--)
h[l].action !== e || i && h[l].context !== i || (p = h.splice(l, 1),
p[0].action = o.Util.falseFn);
i && d && 0 === h.length && (delete d[m],
Function controller
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
controller: ['$scope','$timeout', function($scope, $timeout){
var ctrl = this,
$select = $scope.$select,
ngModel;
Function updateTimeline
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var updateTimeline = function() {
console.log("Getting newer tweets");
hello(auth.network).api('/me/friends').then(function(twitterFriendFeed) {
// Sort by created time to show on timeline
twitterFriendFeed.data.sort(function(a,b) {
Function getHead
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var getHead = function(url, options) {
var req = new events.EventEmitter();
var options = options || {};
Function getData
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getData: function(url, oembedLinks, options, cb) {
var href = oembedLinks[0].href;
var skip = false, self_endpoint = false;
Function googleChartApiPromiseFactory
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function googleChartApiPromiseFactory($rootScope, $q, apiConfig, googleJsapiUrl) {
var apiReady = $q.defer();
var onLoad = function () {
// override callback function
var settings = {
Function HarvestingFrequencyService
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function HarvestingFrequencyService(moment) {
const MAGIC_NUMBER = 2147483647; // max java int
var service = {};