AlexRogalskiy/java-patterns

View on GitHub
packages/contributors-view/src/index.ts

Summary

Maintainability
A
3 hrs
Test Coverage

Function fetchContributors has 45 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const fetchContributors = (
  page: string
): Promise<{ contributorsOfPage: Contributor[]; nextPage: string }> => {
  return new Promise((resolve, reject) => {
    const requestOptions: https.RequestOptions = {
Severity: Minor
Found in packages/contributors-view/src/index.ts - About 1 hr to fix

    Function init has 32 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    const init = async () => {
      const contributorsList: Contributor[] = []
      let page = '1'
    
      // iterate over the pages of GitHub API
    Severity: Minor
    Found in packages/contributors-view/src/index.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status