Showing 118 of 280 total issues
File selectize_fixed.js
has 2386 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* sifter.js
* Copyright (c) 2013 Brian Reavis & contributors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
File bootstrap.js
has 1587 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* Bootstrap v3.3.6 (http://getbootstrap.com)
* Copyright 2011-2015 Twitter, Inc.
* Licensed under the MIT license
*/
Function main
has 230 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function main(){
$('#hat-search').autocomplete({
serviceUrl: '/tags',
paramName: 'term',
deferRequestBy: 200,
Function query
has 211 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
jQuery.query = new function() {
var is = function(o, t) {
return o != undefined && o !== null && (!!t ? o.constructor == t : true);
};
var parse = function(path) {
Function render
has 177 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render: function() {
var main_part;
files = this.props.post.files.map(function (f, index) {
return (
<ModalContentFile
Function render
has 142 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render(){
post = this.props.post;
var image, link_rendered;
switch (this.props.post.type) {
case PostTypes.link:
Function setup
has 134 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setup: function() {
var self = this;
var settings = self.settings;
var eventNS = self.eventNS;
var $window = $(window);
File post_modal_form.js.jsx
has 377 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
const PostModalForm = React.createClass({
//BEGIN***************************************************DECLARE
propTypes: {
createPost: React.PropTypes.func.isRequired,
updatePost: React.PropTypes.func.isRequired
Function render
has 117 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render: function() {
var main_part;
switch (this.props.post.type) {
case PostTypes.text:
main_part = (
Function selectize
has 115 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.selectize = function(settings_user) {
var defaults = $.fn.selectize.defaults;
var settings = $.extend({}, defaults, settings_user);
var attr_data = settings.dataAttr;
var field_label = settings.labelField;
File emotions.js
has 358 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* emojiarea - A rich textarea control that supports emojis, WYSIWYG-style.
* Copyright (c) 2012 DIY Co
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
Function render
has 96 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render: function(){
photos = this.props.photos;
photos = photos.map(function (p, index) {
return (
<div key={index} className="usual-post-photo action-create-element-post">
Function refreshOptions
has 94 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
refreshOptions: function(triggerDropdown) {
var i, j, k, n, groups, groups_order, option, option_html, optgroup, optgroups, html, html_children, has_create_option;
var $active, $active_before, $create;
if (typeof triggerDropdown === 'undefined') {
Function render
has 84 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render(){
if (!this.props.post) return null;
console.log(this.props.post)
var post = this.props.post;
var author = post.author;
Function render
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render(){
var self = this;
var checked_count = $.grep(this.state.users, function(user){
return user.checked;
}).length;
Function render
has 81 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render: function(){
var style = {
background: 'url(' + this.props.comment.author.avatar + ') no-repeat',
backgroundSize: 'cover'
};
File post_box.js.jsx
has 300 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
const PostBox = React.createClass({
//BEGIN***************************************************DECLARE
propTypes: {
group_id: React.PropTypes.number,
//show_panel: React.PropTypes.boolean,
Function _navigate
has 78 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
CBPGridGallery.prototype._navigate = function( dir ) {
if( this.isAnimating ) return;
if( dir === 'next' && this.current === this.itemsCount - 1 || dir === 'prev' && this.current === 0 ) {
this._closeSlideshow();
return;
Function onKeyDown
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
onKeyDown: function(e) {
var isInput = e.target === this.$control_input[0];
var self = this;
if (self.isLocked) {
File react-dropzone.js.jsx
has 288 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
//FUNCTION FOR ACCEPT FILES BEGIN
var accept = function(file, acceptedFiles) {
if (acceptedFiles) {
const acceptedFilesArray = acceptedFiles.split(',');
const mimeType = file.type;