slick/slick.js

This function's cyclomatic complexity is too high. (8)
199
Slick.prototype.addSlide = Slick.prototype.slickAdd = function(markup, index, addBefore) {
Expected an assignment or function call and instead saw an expression.
768
_.$nextArrow && _.$nextArrow.off('click.slick', _.changeSlide);
This function's cyclomatic complexity is too high. (8)
834
Slick.prototype.destroy = function(refresh) {
This function's cyclomatic complexity is too high. (20)
1064
Slick.prototype.getLeft = function(slideIndex) {
This function's cyclomatic complexity is too high. (10)
1448
Slick.prototype.lazyLoad = function() {
Expected '{' and instead saw 'rangeEnd'.
1507
if (rangeEnd <= _.slideCount) rangeEnd++;
This function's cyclomatic complexity is too high. (8)
1743
Slick.prototype.registerBreakpoints = function() {
This function's cyclomatic complexity is too high. (8)
1847
Slick.prototype.removeSlide = Slick.prototype.slickRemove = function(index, removeBefore, removeAll) {
Expected '===' and instead saw '=='.
1891
x = _.positionProp == 'left' ? Math.ceil(position) + 'px' : '0px';
This function's cyclomatic complexity is too high. (13)
1995
Slick.prototype.slickSetOption = function() {
Expected '{' and instead saw '_'.
2145
if (bodyStyle.perspectiveProperty === undefined && bodyStyle.webkitPerspective === undefined) _.animType = false;
Expected '{' and instead saw '_'.
2151
if (bodyStyle.perspectiveProperty === undefined && bodyStyle.MozPerspective === undefined) _.animType = false;
Expected '{' and instead saw '_'.
2163
if (bodyStyle.msTransform === undefined) _.animType = false;
Expected '===' and instead saw '=='.
2251
if (_.options.slidesToShow == _.options.slidesToScroll && (_.slideCount - index) < _.options.slidesToShow) {
Expected '{' and instead saw 'index'.
2343
if (!index) index = 0;
This function's cyclomatic complexity is too high. (10)
2502
Slick.prototype.swipeDirection = function() {
This function's cyclomatic complexity is too high. (10)
2536
Slick.prototype.swipeEnd = function(event) {
This function's cyclomatic complexity is too high. (21)
2649
Slick.prototype.swipeMove = function(event) {
Expected '{' and instead saw '_'.
2882
_[i].slick = new Slick(_[i], opt);
Expected '{' and instead saw 'ret'.
2884
ret = _[i].slick[opt].apply(_[i].slick, args);