nexxtway/react-rainbow

View on GitHub
scripts/search/extractExamples.js

Summary

Maintainability
A
1 hr
Test Coverage

Function extractExamples has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const extractExamples = file => {
    const code = fs.readFileSync(file.path).toString();
    const componentName = file.path.match(/src\/components\/([a-zA-Z]+)\/readme.md$/i)[1];
    const examples = [];
    const myPlugin = () => {
Severity: Minor
Found in scripts/search/extractExamples.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status