Showing 71 of 208 total issues
Function 12
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{}],12:[function(require,module,exports){
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
Function SelectorMatcher
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var SelectorMatcher = (function () {
function SelectorMatcher(selector) {
_classCallCheck(this, SelectorMatcher);
this._selector = selector;
Function PropertiesBuilder
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var PropertiesBuilder = (function (_BindBuilder) {
_inherits(PropertiesBuilder, _BindBuilder);
function PropertiesBuilder() {
_classCallCheck(this, PropertiesBuilder);
Function compile
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.compile = function(options) {
var templateUrl = options.templateUrl;
var template = options.template || '';
var controller = options.controller;
var controllerAs = options.controllerAs;
Function compile
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.compile = function (options) {
var templateUrl = options.templateUrl;
var template = options.template || '';
var controller = options.controller;
var controllerAs = options.controllerAs;
Function StateInjector
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var StateInjector = (function () {
function StateInjector() {
_classCallCheck(this, StateInjector);
}
Function SwipeService
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
return function SwipeService(scope, eventTypes) {
if (!eventTypes) {
eventTypes = "swipeleft swiperight";
}
Function BindBuilder
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var BindBuilder = (function () {
function BindBuilder(bindParam, component) {
_classCallCheck(this, BindBuilder);
this._bindParam = bindParam;
Function InterimElement
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function InterimElement(options) {
var self;
var hideTimeout, element;
options = options || {};
Function 21
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"./error-list.tpl.js":15,"./error.tpl.js":16,"./interimElement.js":17,"./notice.tpl.js":18,"./swipe.js":19,"a1atscript":1,"xing-inflector":2}],21:[function(require,module,exports){
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
Function SwipeService
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
return function SwipeService(scope, eventTypes) {
if ( !eventTypes ) { eventTypes = "swipeleft swiperight"; }
// publish configureFor() method for specific element instance
return function configureFor(element, onSwipeCallback, attachLater ) {
Function InterimElement
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function InterimElement(options) {
var self;
var hideTimeout, element;
options = options || {};
Function xngToastService
has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring. Open
Open
function xngToastService($timeout, $$interimElement, $animate, $xngSwipe, Inflector) {
var factoryDef = {
onShow: onShow,
onRemove: onRemove,
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function configureFor
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
return function configureFor(element, onSwipeCallback, attachLater) {
var hammertime = new Hammer(element[0], {
recognizers: addRecognizers([], eventTypes)
});
Function setupProperty
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
value: function setupProperty(key, properties) {
properties[STRING_PREFIX + key] = "@" + this.bindObj[key];
properties[BIND_PREFIX + key] = "=?bind" + this.bindObj[key][0].toUpperCase() + this.bindObj[key].slice(1);
// This property is used when user uses the `bind-property` attribute on a directive to bind an expression
Function StateAttrs
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var StateAttrs = (function () {
function StateAttrs($compile, $state) {
_classCallCheck(this, _StateAttrs);
this.$compile = $compile;
Function configureFor
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
return function configureFor(element, onSwipeCallback, attachLater ) {
var hammertime = new Hammer(element[0], {
recognizers : addRecognizers([], eventTypes )
});
Function 10
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"../../stateInjector.js":26,"./error-fallback.tpl.js":8,"a1atscript":1}],10:[function(require,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
Function AnnotationFinder
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var AnnotationFinder = (function () {
function AnnotationFinder(AnnotatedClass) {
_classCallCheck(this, AnnotationFinder);
this.AnnotatedClass = AnnotatedClass;
Function 9
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{}],9:[function(require,module,exports){
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true