apollo-elements/apollo-elements

View on GitHub
plugins/rocket-preset-apollo-elements/liquid/github.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function githubTag has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function githubTag() {
  return {
    parse(tagToken) {
      this.repo = tagToken.args;
    },
Severity: Minor
Found in plugins/rocket-preset-apollo-elements/liquid/github.js - About 1 hr to fix

    Function render has 34 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        async render() {
          const url = new URL(`/repos/${this.repo}`, 'https://api.github.com/');
          const headers = { 'Accept': 'application/vnd.github.v3+json' };
          const repo = await fetch(url.toString(), { headers }).then(x => x.json());
          return `
    Severity: Minor
    Found in plugins/rocket-preset-apollo-elements/liquid/github.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status