Showing 2 of 2 total issues
Function exports
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = (nextConfig = {}) => {
const gitInfo = {
pages: {},
}
let pagesDirectory = path.resolve(process.cwd(), 'src', 'pages')
Function result
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const result = exec(`git log --format=raw -n 1 --no-merges ${relativePath}`, (error, stdout, stderr) => {
if (!stdout) {
return {
filename: relativePath,
route,