Showing 7 of 7 total issues
Function _loadPath
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_loadPath (options = {}) {
return new Promise(
(resolve, reject) => {
const content = {}
File GitHub.js
has 266 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
const async = require('async')
const parse = require('parse-link-header')
const Octokit = require('@octokit/rest')
const { verifyRequired } = require('@bowtie/utils')
Function upsertFiles
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
upsertFiles (params = {}) {
verifyRequired(params, [ 'owner', 'repo', 'files', 'message' ])
return new Promise(
(resolve, reject) => {
Function _exec
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_exec (key, action, params = {}) {
return new Promise(
(resolve, reject) => {
this.logger.info(`Exec github for key: ${key}`)
Function test
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const test = async (ref = 'master') => {
try {
const j = new Jekyll({
github,
owner: 'bowtie-test',
Function parsePath
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
parsePath (path, params = {}) {
return new Promise(
(resolve, reject) => {
if (this._isCached(path)) {
return resolve(this._cached(path))
Function collections
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
collections (params = {}) {
return new Promise(
(resolve, reject) => {
if (this._isCached('collections')) {
return resolve(this._cached('collections'))