andrehtissot/dexie-opened-databases-addon

View on GitHub
tools/insertBanner.js

Summary

Maintainability
A
0 mins
Test Coverage

Delete
Open

    bannerContent = fs.readFileSync('tools/banner.txt', 'utf-8')
Severity: Minor
Found in tools/insertBanner.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete
Open

    if (fileContent.indexOf('/*!') === -1) {
Severity: Minor
Found in tools/insertBanner.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete
Open

    fs.writeFileSync(file, bannerContent + removeBannerDuplicates(fileContent), 'utf-8')
Severity: Minor
Found in tools/insertBanner.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete
Open

    }
Severity: Minor
Found in tools/insertBanner.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete
Open

    )
Severity: Minor
Found in tools/insertBanner.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete
Open

    files = process.argv.slice(2),
Severity: Minor
Found in tools/insertBanner.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace (fileContent)·{␍ with ·(fileContent)·{
Open

const removeBannerDuplicates = function(fileContent) {
Severity: Minor
Found in tools/insertBanner.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete
Open

        return fileContent
Severity: Minor
Found in tools/insertBanner.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete
Open

files.forEach((file) => {
Severity: Minor
Found in tools/insertBanner.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete
Open

const fs = require('fs'),
Severity: Minor
Found in tools/insertBanner.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete
Open

}
Severity: Minor
Found in tools/insertBanner.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete
Open

    return removeBannerDuplicates(
Severity: Minor
Found in tools/insertBanner.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete
Open

})
Severity: Minor
Found in tools/insertBanner.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete
Open

        fileContent.substring(0, fileContent.indexOf('/*!')) + fileContent.substring(fileContent.indexOf(' */') + 3)
Severity: Minor
Found in tools/insertBanner.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete
Open

    let fileContent = fs.readFileSync(file, 'utf-8')
Severity: Minor
Found in tools/insertBanner.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete
Open

Severity: Minor
Found in tools/insertBanner.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete
Open

Severity: Minor
Found in tools/insertBanner.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

There are no issues that match your filters.

Category
Status