Showing 570 of 1,380 total issues
Function displayTabContent
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
displayTabContent = (user) => {
const tabs = {
'#projects': m(userCreated, {
userId,
showDraft: true
Function oninit
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
oninit: function(vnode) {
const contribution = vnode.attrs.contribution,
mapEvents = _.reduce([{
date: contribution.paid_at,
name: 'Apoio confirmado'
Function view
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
view({attrs}) {
const projects = attrs.projects;
const isSearch = attrs.isSearch;
const filterKeyName = attrs.filterKeyName;
Function view
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
view({ state, attrs }) {
/** @type {string} */
const reportsExportingUrl = attrs.reportsExportingUrl;
Function uploadImage
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
uploadImage = () => {
const userUploadedImageEl = window.document.getElementById('user_uploaded_image'),
userCoverImageEl = window.document.getElementById('user_cover_image'),
formData = new FormData();
Function mapRailsErrors
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const mapRailsErrors = (rails_errors) => {
let parsedErrors;
try {
parsedErrors = JSON.parse(rails_errors);
} catch (e) {
Function payWithNewCard
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const payWithNewCard = (contribution_id, installment) => {
const p = new Promise((resolve, reject) => {
m.request({
method: 'GET',
url: `/payment/pagarme/${contribution_id}/get_encryption_key`,
Function startVM
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const startVM = (I18n) => {
const i18nStart = I18n.translations[I18n.currentLocale()].pages.start,
testimonials = i18nStart.testimonials,
categoryProjects = i18nStart.categoryProjects,
panes = i18nStart.panes,
Function AjaxEvent
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getJasmineRequireObj().AjaxEvent = function() {
function now() {
return new Date().getTime();
}
Function view
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
view({ attrs }) {
return (
<div class="dashboard-column-tips">
<div class="card card-secondary">
<div>
Function oninit
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
oninit: function(vnode) {
const e = generateErrorInstance();
const mapErrors = [
['goals', ['goals.size']]
];
Function oninit
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
oninit: function(vnode) {
const table = prop(vnode.attrs.table),
sortIndex = prop(-1);
const comparator = (a, b) => {
Function equals_
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
jasmine.Env.prototype.equals_ = function(a, b, mismatchKeys, mismatchValues) {
mismatchKeys = mismatchKeys || [];
mismatchValues = mismatchValues || [];
for (var i = 0; i < this.equalityTesters_.length; i++) {
Function addViewModel
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function addViewModel() {
const statesProp = prop<State[]>([])
const fieldsMap = {
Function saveFields
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private async saveFields(fields : string[], requiredFields : string[]) {
this._isSavingProject = true
h.redraw()
Function oninit
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
oninit({ state, attrs} : m.Vnode<InputPermalinkAttrs, InputPermalinkState>) {
state.class = attrs.class
state.currentPermalink = attrs.currentPermalink
state.checkPermalinkAvailable = async (inputText) => {
let lastValidValue = state.currentPermalink
Function oninit
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
oninit: function(vnode) {
const statusClass = {
active: 'fa-circle.text-success',
started: 'fa-circle.text-waiting',
inactive: 'fa-circle.text-error',
Function fetch
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
fetch = (token, pageUrl) => {
if (!modalToggle()) {
modalToggle.toggle();
loadingContacts(true);
m.redraw();
Function updateUserData
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
updateUserData = (user_id) => {
const userData = {
owner_name: fields.owner_name(),
owner_document: fields.owner_document(),
bank_id: bankCode(),
Function oninit
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
oninit: function(vnode) {
let interval;
const collection = prop([]),
resource = prop(),
collectionIndex = prop(0),