johnjones4/InBrief

View on GitHub
src/lib/services/RSS.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function fetchSingleFeed has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  fetchSingleFeed (feed) {
    return new Promise((resolve, reject) => {
      const items = []
      const req = request({
        'uri': feed,
Severity: Minor
Found in src/lib/services/RSS.js - About 1 hr to fix

    Function processRSSItems has 36 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      processRSSItems (set, items) {
        const parsedUrls = {}
        items.forEach((item) => {
          parsedUrls[item.link] = url.parse(item.link)
        })
    Severity: Minor
    Found in src/lib/services/RSS.js - About 1 hr to fix

      Function exec has 28 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        exec (dataEmitter) {
          const outputData = this.cachedResponse ? this.cachedResponse.data : []
          const fetchNextFeedSet = (index) => {
            if (index < this.config.sets.length) {
              const set = this.config.sets[index]
      Severity: Minor
      Found in src/lib/services/RSS.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status