Showing 6 of 15 total issues
File carousel.controller.js
has 380 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* angular-ui-carousel
* for example:
* length = 8, show = 4, scroll = 3, current = 0
* ---------
Function slideHandler
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.slideHandler = (index) => {
// TODO prevent when slides not exists
if (!this.slides) {
return $q.reject('Carousel not fully setup');
}
Function initOptions
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.initOptions = () => {
this.options = angular.extend({}, Carousel.getOptions());
// TODO customize attribute from directive
if (this.initialSlide !== undefined) {
Function exports
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
Function setProps
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.setProps = () => {
const bodyStyle = document.body.style;
/* eslint-disable */
if (bodyStyle.OTransform !== undefined) {
Avoid too many return
statements within this function. Open
Open
return this
.moveTrack(left)
.then(() => {
this.isTrackMoving = false;
this.currentSlide = target;