Showing 1,311 of 1,311 total issues
Function solveCubic
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
solveCubic: function(a, b, c, d, roots, min, max) {
if (abs(a) < EPSILON)
return Numerical.solveQuadratic(b, c, d, roots, min, max);
b /= a;
Function handleCurve
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function handleCurve(v) {
if (Curve.getLength(v) === 0)
return;
var y0 = v[1],
y1 = v[3],
Function _changed
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_changed: function(flags) {
var symbol = this._parentSymbol,
cacheParent = this._parent || symbol,
project = this._project;
if (flags & 8) {
Function toCanvasStyle
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
toCanvasStyle: function(ctx) {
if (this._canvasStyle)
return this._canvasStyle;
if (this._type !== 'gradient')
return this._canvasStyle = this.toCSS();
Function _getCachedBounds
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_getCachedBounds: function(getter, matrix, cacheItem, internalGetter) {
matrix = matrix && matrix.orNullIfIdentity();
var _matrix = internalGetter ? null : this._matrix.orNullIfIdentity(),
cache = (!matrix || matrix.equals(_matrix)) && getter;
var cacheParent = this._parent || this._parentSymbol;
Function handleCurve
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function handleCurve(v) {
if (Curve.getLength(v) === 0)
return;
var y0 = v[1],
y1 = v[3],
Function _changed
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_changed: function(flags) {
var symbol = this._parentSymbol,
cacheParent = this._parent || symbol,
project = this._project;
if (flags & 8) {
Function solveCubic
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
solveCubic: function(a, b, c, d, roots, min, max) {
if (abs(a) < EPSILON)
return Numerical.solveQuadratic(b, c, d, roots, min, max);
b /= a;
Function _getCachedBounds
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_getCachedBounds: function(getter, matrix, cacheItem, internalGetter) {
matrix = matrix && matrix.orNullIfIdentity();
var _matrix = internalGetter ? null : this._matrix.orNullIfIdentity(),
cache = (!matrix || matrix.equals(_matrix)) && getter;
var cacheParent = this._parent || this._parentSymbol;
Function toCanvasStyle
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
toCanvasStyle: function(ctx) {
if (this._canvasStyle)
return this._canvasStyle;
if (this._type !== 'gradient')
return this._canvasStyle = this.toCSS();
Function $interval
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var $interval = function(fn, delay, count, invokeApply) {
var deferred = $q.defer(),
promise = deferred.promise,
iteration = 0,
skipApply = (angular.isDefined(invokeApply) && !invokeApply);
Function _refreshView
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ctrl._refreshView = function() {
var year = ctrl.activeDate.getFullYear(),
month = ctrl.activeDate.getMonth(),
firstDayOfMonth = new Date(year, month, 1),
difference = ctrl.startingDay - firstDayOfMonth.getDay(),
Function getMatchesAsync
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var getMatchesAsync = function(inputValue) {
var locals = {$viewValue: inputValue};
isLoadingSetter(originalScope, true);
$q.when(parserResult.source(originalScope, locals)).then(function(matches) {
Function _refreshView
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ctrl._refreshView = function() {
var year = ctrl.activeDate.getFullYear(),
month = ctrl.activeDate.getMonth(),
firstDayOfMonth = new Date(year, month, 1),
difference = ctrl.startingDay - firstDayOfMonth.getDay(),
Function $transition
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var $transition = function(element, trigger, options) {
options = options || {};
var deferred = $q.defer();
var endEventName = $transition[options.animation ? 'animationEndEventName' : 'transitionEndEventName'];
Function getPages
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getPages(currentPage, totalPages) {
var pages = [];
// Default page limits
var startPage = 1, endPage = totalPages;
Function $transition
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var $transition = function(element, trigger, options) {
options = options || {};
var deferred = $q.defer();
var endEventName = $transition[options.animation ? 'animationEndEventName' : 'transitionEndEventName'];
Function getMatchesAsync
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var getMatchesAsync = function(inputValue) {
var locals = {$viewValue: inputValue};
isLoadingSetter(originalScope, true);
$q.when(parserResult.source(originalScope, locals)).then(function(matches) {
Function applyPlacement
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Tooltip.prototype.applyPlacement = function (offset, placement) {
var $tip = this.tip()
var width = $tip[0].offsetWidth
var height = $tip[0].offsetHeight
Function getPages
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getPages(currentPage, totalPages) {
var pages = [];
// Default page limits
var startPage = 1, endPage = totalPages;