Showing 570 of 1,380 total issues
Function oninit
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
oninit: function(vnode) {
const filtersVM = catarse.filtersVM({
project_id: 'eq'
}),
projectAccount = prop([]),
Function showLastSubscriptionVersionRewardTitleIfHasOne
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const showLastSubscriptionVersionRewardTitleIfHasOne = () => {
const is_active = subscription.status === 'active';
const current_paid_subscription = subscription.current_paid_subscription;
const current_reward_data = subscription.current_reward_data;
const current_reward_id = subscription.current_reward_id;
Function oninit
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
oninit: function(vnode) {
const vm = projectDescriptionVideoVM,
mapErrors = [
['about_html', ['about_html']],
['video_url', ['video_url']]
Function select
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function select(matchesSelector) {
return function matches(node) {
if (!node) {
return []
}
Function oninit
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
oninit: function(vnode) {
const emailText = prop(''),
loading = prop(false),
project = vnode.attrs.project,
showSuccess = prop(false),
Function MockAjax
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getJasmineRequireObj().MockAjax = function($ajax) {
function MockAjax(global) {
var requestTracker = new $ajax.RequestTracker(),
stubTracker = new $ajax.StubTracker(),
paramParser = new $ajax.ParamParser(),
Function oninit
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
oninit: function(vnode) {
const exploreButtonBehavoir = h.RedrawStream((/** @type {Event} */ event) => {
event.preventDefault();
m.route.set('/explore?ref=ctrse_header&filter=all');
});
Function oninit
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
oninit: function(vnode) {
const projectIdVM = catarse.filtersVM({ project_id: 'eq' }),
projectAccounts = prop([]),
projectTransfers = prop([]),
showTaxModal = h.toggleProp(false, true),
Function oninit
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
oninit: function(vnode) {
const fixedNavClass = 'project-nav-fixed',
isFixed = prop(false),
originalPosition = prop(-1),
project = vnode.attrs.project;
Function oninit
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
oninit: function(vnode) {
const vm = projectVideoVM,
mapErrors = [
['video_url', ['video_url']]
],
Function oninit
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
oninit: function(vnode) {
const vm = projectDescriptionVM,
mapErrors = [
['about_html', ['about_html']]
],
Function oninit
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
oninit: function(vnode) {
const vm = projectBudgetVM,
mapErrors = [
['budget', ['budget']]
],
Function collectionsMapper
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const collectionsMapper = (sampleNo, name) => {
const f = filters[name],
forSubPledged = name === 'sub' ? { pledged: 'gte.1000' } : {},
defaultOptions = {
order: 'score.desc',
Function oninit
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
oninit: function(vnode) {
const designStates = {
waiting_funds: {
processing: {
lineClass: '.done',
Function formatCardInputNumber
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const formatCardInputNumber = (e, cardNumberProp) => {
let $target,
card,
digit,
length,
Function loadSurvey
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const loadSurvey = () => {
surveyLoader().load().then((data) => {
survey(_.first(data));
finished(!_.isEmpty(survey().finished_at));
answeredAt(survey().survey_answered_at);
Function oninit
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
oninit: function(vnode) {
const {
ViewContentEvent,
} = projectVM;
Function updateUserData
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const updateUserData = (user_id) => {
const userData = {};
userData.bank_account_attributes = {
bank_id: bankCode(),
input_bank_number: bankInput(),
Function oninit
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
oninit: function(vnode) {
const contributedProjects = prop(),
user_id = vnode.attrs.userId,
pages = contributionVM.getUserContributedProjectsWithFilter(),
error = prop(false),
Function matcherFn_
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
jasmine.Matchers.matcherFn_ = function(matcherName, matcherFunction) {
return function() {
var matcherArgs = jasmine.util.argsToArray(arguments);
var result = matcherFunction.apply(this, arguments);