GProst/webpack-clean-obsolete-chunks

View on GitHub

Showing 4 of 4 total issues

File index.spec.js has 291 lines of code (exceeds 250 allowed). Consider refactoring.
Open

'use strict'

const expect = require('chai').expect
const sinon = require('sinon')
const del = require('del')
Severity: Minor
Found in test/unit/index.spec.js - About 3 hrs to fix

    Code block style
    Open

        ```sh
    Severity: Info
    Found in CONTRIBUTING.md by markdownlint

    Multiple top level headers in the same document
    Open

    # DEPRECATION NOTE: since Webpack 5.20.0 you can use [`output.clean`](https://webpack.js.org/configuration/output/#outputclean) option
    Severity: Info
    Found in README.md by markdownlint

    MD025 - Multiple top level headers in the same document

    Tags: headers

    Aliases: single-h1

    Parameters: level (number; default 1)

    This rule is triggered when a top level header is in use (the first line of the file is a h1 header), and more than one h1 header is in use in the document:

    # Top level header
    
    # Another top level header

    To fix, structure your document so that there is a single h1 header that is the title for the document, and all later headers are h2 or lower level headers:

    # Title
    
    ## Header
    
    ## Another header

    Rationale: A top level header is a h1 on the first line of the file, and serves as the title for the document. If this convention is in use, then there can not be more than one title for the document, and the entire document should be contained within this header.

    Note: The level parameter can be used to change the top level (ex: to h2) in cases where an h1 is added externally.

    Line length
    Open

    # DEPRECATION NOTE: since Webpack 5.20.0 you can use [`output.clean`](https://webpack.js.org/configuration/output/#outputclean) option
    Severity: Info
    Found in README.md by markdownlint

    MD013 - Line length

    Tags: line_length

    Aliases: line-length Parameters: linelength, codeblocks, tables (number; default 80, boolean; default true)

    This rule is triggered when there are lines that are longer than the configured line length (default: 80 characters). To fix this, split the line up into multiple lines.

    This rule has an exception where there is no whitespace beyond the configured line length. This allows you to still include items such as long URLs without being forced to break them in the middle.

    You also have the option to exclude this rule for code blocks and tables. To do this, set the code_blocks and/or tables parameters to false.

    Code blocks are included in this rule by default since it is often a requirement for document readability, and tentatively compatible with code rules. Still, some languages do not lend themselves to short lines.

    Severity
    Category
    Status
    Source
    Language