JuroOravec/html-webpack-inline-i18n-plugin

View on GitHub

Showing 3 of 3 total issues

Function apply has 77 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  apply(compiler: Compiler) {
    compiler.hooks.compilation.tap(pluginName, (compilation) => {
      debug('Started apply.compiler.compilation');

      let i18nAssetTag: HtmlWebpackPlugin.HtmlTagObject = {
Severity: Major
Found in src/index.ts - About 3 hrs to fix

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

    export default async function runBrowserScript(
      filepath: string,
      options: Options = {},
    ) {
      const {
    Severity: Minor
    Found in test/lib/run-browser-script.ts - About 1 hr to fix

      Function runWebpack has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      export async function runWebpack(configOverrides: Configuration = {}) {
        const mergedConfig: Configuration = merge({}, config, configOverrides, {
          module: {
            rules: [...(configOverrides?.module?.rules || [])],
          },
      Severity: Minor
      Found in test/fixtures/webpack/index.ts - About 1 hr to fix
        Severity
        Category
        Status
        Source
        Language