Skip to content

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Egner committed Jan 29, 2018
1 parent 362c4b5 commit 4387a4d
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 30 deletions.
9 changes: 9 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ try {

const Travis = require('travis-ci')

/**
* Module
* @extends BaseModule
*/
class HueTravis extends BaseModule {
/**
* Generate instance name based on repo and repo
Expand Down Expand Up @@ -93,6 +97,11 @@ class HueTravis extends BaseModule {
return this.repoReport(array[0])
}

/**
* Report the status of a repo to HueStatus
* @param {Object} repo Travis Repo object
* @return {Promise}
*/
async repoReport (repo) {
if (repo.last_build_state === 'failed') {
return this.change('alert', `${repo.slug} Failing`)
Expand Down
60 changes: 30 additions & 30 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions test/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"env": {
"mocha": true
},
"rules": {
"require-jsdoc": 0
}
}

0 comments on commit 4387a4d

Please sign in to comment.