Skip to content

Commit 680c3d0

Browse files
author
Hovhannes Babayan
committed
fixing code-climate issues
1 parent 444a47e commit 680c3d0

18 files changed

Lines changed: 9 additions & 39 deletions

dist/attask.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gulpfile.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
var gulp = require('gulp');
22

3-
const BUILD_DIR = './dist/';
4-
const DOCS_DIR = './docs/';
5-
const COVERAGE_DIR = 'coverage';
3+
var BUILD_DIR = './dist/';
4+
var DOCS_DIR = './docs/';
5+
var COVERAGE_DIR = 'coverage';
66

77
gulp.task('default', ['build']);
88

@@ -77,7 +77,7 @@ gulp.task('docs', ['clean-docs'], function() {
7777
collapseSymbols: false,
7878
inverseNav: false
7979
})
80-
)
80+
);
8181
});
8282

8383
/**
@@ -111,7 +111,6 @@ gulp.task('test', runTests);
111111
* Runs all tests with coverage
112112
*/
113113
gulp.task('test-coverage', ['clean-coverage'], function(cb) {
114-
var mocha = require('gulp-mocha');
115114
var istanbul = require('gulp-istanbul');
116115

117116
gulp.src(['src/**/*.js'])

src/Api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function Api(config) {
1717
// Append version to path if provided
1818
var path;
1919
if (config.version === 'internal') {
20-
path = '/attask/api-internal'
20+
path = '/attask/api-internal';
2121
}
2222
else {
2323
path = '/attask/api';

src/plugins/copy.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
var Api = require('./../Api');
2-
31
module.exports = function(Api) {
42
Api.prototype.copy = function () {
53
throw new Error('Not implemented')

src/plugins/count.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
var Api = require('./../Api');
2-
31
module.exports = function(Api) {
42
/**
53
* Used to retrieve number of objects matching given search criteria

src/plugins/delete.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
var Api = require('./../Api');
2-
31
module.exports = function(Api) {
4-
Api.prototype.delete = function () {
2+
Api.prototype['delete'] = function () {
53
throw new Error('Not implemented')
64
};
75
};

src/plugins/execute.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
var Api = require('./../Api');
2-
31
module.exports = function(Api) {
42
Api.prototype.execute = function () {
53
throw new Error('Not implemented')

src/plugins/get.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
var Api = require('./../Api');
2-
31
module.exports = function(Api) {
42
/**
53
* Used for retrieve an object or multiple objects.

src/plugins/login.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
var Api = require('./../Api');
2-
31
module.exports = function(Api) {
42
/**
53
* Logs in into AtTask. Should be a first call to AtTask API.

src/plugins/logout.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
var Api = require('./../Api');
2-
31
module.exports = function(Api) {
42
/**
53
* Logs out from AtTask

0 commit comments

Comments
 (0)