iorrah/you-rockstar

View on GitHub

Showing 445 of 445 total issues

Similar blocks of code found in 2 locations. Consider refactoring.
Open

isFooterShown: Ember.computed('currentPath', function() {
var shown = true,
cpath = this.get('currentPath');
 
switch (cpath) {
Severity: Major
Found in app/controllers/application.js and 1 other location - About 3 hrs to fix
app/controllers/application.js on lines 4..27

Similar blocks of code found in 2 locations. Consider refactoring.
Open

isNavbarShown: Ember.computed('currentPath', function() {
var shown = true,
cpath = this.get('currentPath');
 
switch (cpath) {
Severity: Major
Found in app/controllers/application.js and 1 other location - About 3 hrs to fix
app/controllers/application.js on lines 28..51

Similar blocks of code found in 2 locations. Consider refactoring.
Open

Ember.Object.create({
id: 1,
title: 'Company Name, Marketing Assistent',
org_name: '',
role: '',
Severity: Major
Found in app/mixins/data/user.js and 1 other location - About 3 hrs to fix
app/mixins/data/user.js on lines 63..87

Similar blocks of code found in 2 locations. Consider refactoring.
Open

Ember.Object.create({
id: 2,
title: 'Company Name, Marketing Assistent',
org_name: '',
role: '',
Severity: Major
Found in app/mixins/data/user.js and 1 other location - About 3 hrs to fix
app/mixins/data/user.js on lines 38..62

Similar blocks of code found in 2 locations. Consider refactoring.
Open

goToPrev: function() {
if (this.get('state.template')) {
this.repo().template().setPrev();
} else if (this.get('state.theming')) {
this.repo().theming().setPrev();
Severity: Major
Found in app/components/resume/yr-control.js and 1 other location - About 2 hrs to fix
app/components/resume/yr-control.js on lines 109..115

Similar blocks of code found in 2 locations. Consider refactoring.
Open

goToNext: function() {
if (this.get('state.template')) {
this.repo().template().setNext();
} else if (this.get('state.theming')) {
this.repo().theming().setNext();
Severity: Major
Found in app/components/resume/yr-control.js and 1 other location - About 2 hrs to fix
app/components/resume/yr-control.js on lines 116..122

Similar blocks of code found in 2 locations. Consider refactoring.
Open

template: function() {
return {
setNext: function() {
self.send('selectTemplate', self.getNext('template'));
},
Severity: Major
Found in app/components/resume/yr-control.js and 1 other location - About 1 hr to fix
app/components/resume/yr-control.js on lines 137..146

Similar blocks of code found in 2 locations. Consider refactoring.
Open

theming: function() {
return {
setNext: function() {
self.send('selectPalette', self.getNext('palette'));
},
Severity: Major
Found in app/components/resume/yr-control.js and 1 other location - About 1 hr to fix
app/components/resume/yr-control.js on lines 127..136

Similar blocks of code found in 2 locations. Consider refactoring.
Open

eductions: Ember.A([
Ember.Object.create({
id: 1,
title: 'Bacharelor in Marketing, University Name',
date: '2014 - 2017'
Severity: Major
Found in app/mixins/data/user.js and 1 other location - About 1 hr to fix
app/mixins/data/user.js on lines 115..126

Similar blocks of code found in 2 locations. Consider refactoring.
Open

references: Ember.A([
Ember.Object.create({
id: 1,
name: 'Paul Miller',
contact: '+123 (45) 678 9123'
Severity: Major
Found in app/mixins/data/user.js and 1 other location - About 1 hr to fix
app/mixins/data/user.js on lines 103..114

Function exports has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function(environment) {
var ENV = {
modulePrefix: 'you-rockstar',
environment: environment,
baseURL: '/',
Severity: Minor
Found in config/environment.js - About 1 hr to fix

    Identical blocks of code found in 2 locations. Consider refactoring.
    Open

    export default Ember.Component.extend(ScrollToElemMixin, ParallaxMixin, {
    classNames: 'full-height',
    didInsertElement: function() {
    this.startParallax();
    },
    Severity: Minor
    Found in app/components/yr-header.js and 1 other location - About 35 mins to fix
    app/components/yr-our-approach.js on lines 4..12

    Identical blocks of code found in 2 locations. Consider refactoring.
    Open

    export default Ember.Component.extend(ParallaxMixin, {
    classNames: 'full-height',
    didInsertElement: function() {
    this.startParallax();
    },
    Severity: Minor
    Found in app/components/yr-our-approach.js and 1 other location - About 35 mins to fix
    app/components/yr-header.js on lines 5..13

    Function getNext has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
    Open

    getNext: function(type) {
    var items = this.get(type.pluralize());
    var size = items.length;
    var i = 0;
    var id = this.get(type + '.id');
    Severity: Minor
    Found in app/components/resume/yr-control.js - About 35 mins to fix

    Function getPrev has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
    Open

    getPrev: function(type) {
    var items = this.get(type.pluralize());
    var size = items.length;
    var i = size - 1;
    var id = this.get(type + '.id');
    Severity: Minor
    Found in app/components/resume/yr-control.js - About 35 mins to fix

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

    template: Ember.computed('templates.@each.is_selected', function() {
    return this.get('templates')
    .filterBy('is_selected')
    .get('firstObject');
    }),
    Severity: Minor
    Found in app/controllers/resume.js and 1 other location - About 35 mins to fix
    app/controllers/resume.js on lines 20..24

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

    palette: Ember.computed('palettes.@each.is_selected', function() {
    return this.get('palettes')
    .filterBy('is_selected')
    .get('firstObject');
    }),
    Severity: Minor
    Found in app/controllers/resume.js and 1 other location - About 35 mins to fix
    app/controllers/resume.js on lines 15..19

    Properties should be ordered background-color, border, color
    Open

    border: 1px solid $white;
    Severity: Minor
    Found in app/styles/_buttons.scss by scss-lint

    Properties should be ordered border, border-radius, display, height, margin, padding, width
    Open

    width: 100% !important;
    Severity: Minor
    Found in app/styles/_canvas.scss by scss-lint

    !important should not be used
    Open

    display: block !important;
    Severity: Minor
    Found in app/styles/_canvas.scss by scss-lint
    Severity
    Category
    Status
    Source
    Language