trezy/next-gitinfo

View on GitHub

Showing 2 of 2 total issues

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

module.exports = (nextConfig = {}) => {
    const gitInfo = {
        pages: {},
    }
    let pagesDirectory = path.resolve(process.cwd(), 'src', 'pages')
Severity: Major
Found in lib/withGitInfo.js - About 2 hrs to fix

    Function result has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            const result = exec(`git log --format=raw -n 1 --no-merges ${relativePath}`, (error, stdout, stderr) => {
                if (!stdout) {
                    return {
                        filename: relativePath,
                        route,
    Severity: Minor
    Found in lib/withGitInfo.js - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language