aymericbeaumet/metalsmith-redirect

View on GitHub
lib/create-redirections-from-frontmatters.js

Summary

Maintainability
A
1 hr
Test Coverage

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

module.exports = (files, options = {}) => {
    const getRedirectFrom = file =>
        _.get(file, options.frontmatter.redirectFrom || 'redirectFrom', null);
    const getRedirectTo = file =>
        _.get(file, options.frontmatter.redirectTo || 'redirectTo', null);
Severity: Minor
Found in lib/create-redirections-from-frontmatters.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status