Showing 11 of 53 total issues
Function Query
has 161 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Query(model, instance) {
return {
model : model,
instance : instance,
File stamplay.tests.ts
has 386 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// This file tests the contract defined by the interfaces in stamplay.d.ts against the examples provided by the Stamplay docs
// Necessary condition (but not sufficient..) for the definition file to be correct is that these examples can be transpiled to javascript without errors by the TypeScript compiler.
// To run the test, use command "tsc stamplay.tests.ts"
Function Object
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Object(resourceId) {
if (resourceId) {
return root.Stamplay.extend({
brickId: 'cobject',
resourceId: resourceId,
Function BaseComponent
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function BaseComponent(brickId, resourceId) {
var removeAttributes = function (brick, instance) {
switch (brick) {
case 'cobject':
Function socialLogin
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
socialLogin: function(provider){
if(provider){
var url = '/auth/' + root.Stamplay.VERSION + '/' + provider + '/connect';
if(root.Stamplay.OPTIONS.isMobile){
//need an external plugin to work - https://github.com/apache/cordova-plugin-inappbrowser
Function findByCurrentUser
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
findByCurrentUser: function (attr, data, callbackObject) {
var attribute = 'owner';
var params = {};
var callback;
if (arguments.length === 3) {
Function makeAPromise
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
root.Stamplay.makeAPromise = function (options, callback) {
if (options.thisParams) {
parseQueryParams(options);
}
var headerStamplay = root.Stamplay.APPID;
Function buildEndpoint
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
var buildEndpoint = function(brickId, resourceId, method, id, data, callbackObject){
Function _createGeoQuery
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function _createGeoQuery(queryOperator, shapeOperator, type, coordinates, maxDistance, minDistance) {
Function charge
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
charge : function (userId, token, amount, currency, callbackObject) {
Function _buildMethod
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function _buildMethod(method, url, data, queryParams, callbackObject) {