Showing 7 of 20 total issues
Function socialfeed
has 702 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.socialfeed = function(_options) {
var defaults = {
plugin_folder: '', // a folder in which the plugin is located (with a slash in the end)
File jquery.socialfeed.js
has 713 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
if (typeof Object.create !== 'function') {
Object.create = function(obj) {
function F() {}
F.prototype = obj;
return new F();
Function render
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render: function() {
var rendered_html = Feed.template(this.content);
var data = this.content;
if ($(container).children('[social-feed-id=' + data.id + ']').length !== 0) {
Function getData
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getData: function(account) {
var cb = new Codebird();
cb.setConsumerKey(options.twitter.consumer_key, options.twitter.consumer_secret);
Function unifyPostData
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
unifyPostData: function(element) {
var post = {};
post.id = element.id;
post.attachment = '';
Function unifyPostData
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
unifyPostData: function(wall_owner, element, json) {
var post = {};
post.id = element.id;
post.dt_create = moment.unix(element.date);
Avoid deeply nested control flow statements. Open
Open
if (this.thumbnails && this.thumbnails.length > 0) {
if (this.thumbnails[0].image) {
image = this.thumbnails[0].image.url;
}
}