docs/plugins/google-tagmanager/index.js

Summary

Maintainability
B
5 hrs
Test Coverage

Function exports has 83 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function (context, options) {
  const { siteConfig } = context;
  const { themeConfig } = siteConfig;
  const { gtm } = themeConfig || {};

Severity: Major
Found in docs/plugins/google-tagmanager/index.js - About 3 hrs to fix

    Function injectHtmlTags has 60 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        injectHtmlTags() {
          return {
            headTags: [
              {
                tagName: 'link',
    Severity: Major
    Found in docs/plugins/google-tagmanager/index.js - About 2 hrs to fix

      There are no issues that match your filters.

      Category
      Status