Showing 300 of 562 total issues
Function htmlParser
has 105 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function htmlParser(html, handler) {
if (typeof html !== 'string') {
if (html === null || typeof html === 'undefined') {
html = '';
} else {
Function compile
has 104 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
compile: function(element, attr) {
//We create the tabNavTemplate in the compile phase so that the
//attributes we pass down won't be interpolated yet - we want
//to pass down the 'raw' versions of the attributes
Function $ViewDirective
has 104 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function $ViewDirective( $state, $injector, $uiViewScroll, $interpolate) {
function getService() {
return ($injector.has) ? function(service) {
return $injector.has(service) ? $injector.get(service) : null;
Function compile
has 99 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
compile: function(element, attr) {
var innerElement;
var scrollCtrl;
element.addClass('scroll-content ionic-scroll');
Function initialize
has 97 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initialize: function(options) {
var self = this;
self.__container = options.el;
self.__content = options.el.firstElementChild;
Function transitionTo
has 95 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$state.transitionTo = function transitionTo(to, toParams, options) {
toParams = toParams || {};
options = extend({
location: true, inherit: false, relative: null, notify: true, reload: false, $retry: false
}, options || {});
Function transition
has 94 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
transition: function(direction, enableBack, allowAnimate) {
var deferred;
var enteringData = getTransitionData(viewLocals, enteringEle, direction, enteringView);
var leavingData = extend(extend({}, enteringData), getViewData(leavingView));
enteringData.transitionId = leavingData.transitionId = transitionId;
Function initSwipeBack
has 93 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
self.initSwipeBack = function() {
var swipeBackHitWidth = $ionicConfig.views.swipeBackHitWidth();
var viewTransition, associatedNavBarCtrl, backView;
var deregDragStart, deregDrag, deregRelease;
var windowWidth, startDragX, dragPoints;
Function name
has 93 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Resource[name] = function(a1, a2, a3, a4) {
var params = {}, data, success, error;
/* jshint -W086 */ /* (purposefully fall through case statements) */
switch (arguments.length) {
Function calcWidths
has 90 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
self.calcWidths = function(textAlign, isPreviousTitle) {
var titleEle = getEle(TITLE);
var backBtnEle = getEle(BACK_BUTTON);
var x, y, z, b, c, d, childSize, bounds;
var childNodes = $element[0].childNodes;
Function link
has 89 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function(scope, element, attrs, ngModel) {
var indicator = element.children();
var dots = Array.prototype.slice.call(indicator.children());
var weakest = dots.slice(-1)[0];
var weak = dots.slice(-2);
Function link
has 89 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function(scope, element, attrs, ngModel) {
var indicator = element.children();
var dots = Array.prototype.slice.call(indicator.children());
var weakest = dots.slice(-1)[0];
var weak = dots.slice(-2);
File angular-sanitize.js
has 311 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* @license AngularJS v1.3.13
* (c) 2010-2014 Google, Inc. http://angularjs.org
* License: MIT
*/
Function LoginWithTwitter
has 108 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func LoginWithTwitter(w http.ResponseWriter, r *http.Request) {
c := oauth.NewConsumer(
config.TWITTER_KEY,
config.TWITTER_SECRET,
Method twitter
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function twitter(Request $request)
{
$stack = GuzzleHttp\HandlerStack::create();
// Part 1 of 2: Initial request from Satellizer.
Function prelink
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function prelink($scope, $element, $attr) {
var parentScope = $scope.$parent;
$scope.$watch(function() {
return (parentScope.$hasHeader ? ' has-header' : '') +
(parentScope.$hasSubheader ? ' has-subheader' : '') +
Function render
has 81 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function render(forceRerender) {
if (render.destroyed) return;
var i;
var ii;
var item;
Function compile
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
compile: function($element, $attr) {
var listEl = jqLite('<div class="list">')
.append($element.contents())
.addClass($attr.type);
Function Shared
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var Shared = (function () {
function Shared($q, $window, SatellizerConfig, SatellizerStorage) {
this.$q = $q;
this.$window = $window;
this.SatellizerConfig = SatellizerConfig;
Function actionSheet
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function actionSheet(opts) {
var scope = $rootScope.$new(true);
extend(scope, {
cancel: noop,