diff --git a/cli/src/builders/imd.ts b/cli/src/builders/imd.ts index e60e2c7..15aa599 100644 --- a/cli/src/builders/imd.ts +++ b/cli/src/builders/imd.ts @@ -74,7 +74,7 @@ export class ImpactMarkdown { lines.push( `##### \`${relativePath}\``, ``, - ...fileLogs.map(log => `* ${LogEmoji[log.type] || `❔`} ${log.message}`), + ...fileLogs.map(log => `* ${LogEmoji[log.type] || `❔`}${log.line ? `line ${log.line}:` : ''} ${log.message}`), `` ) } @@ -110,7 +110,7 @@ export class ImpactMarkdown { warningMarkdown.push( `**\`${relativePath}\`**`, ``, - ...logs.filter(l => l.type === 'warning').map(log => `* [ ] ${LogEmoji[log.type] || `❔`} ${log.message}`), + ...logs.filter(l => l.type === 'warning').map(log => `* [ ] ${LogEmoji[log.type] || `❔`}${log.line ? `line ${log.line}:` : ''} ${log.message}`), `` ) }