mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
keep the betterer message generic (#51563)
This commit is contained in:
@@ -26,14 +26,7 @@ function countUndocumentedStories() {
|
||||
// In this case the file contents don't matter:
|
||||
const file = fileTestResult.addFile(filePath, '');
|
||||
// Add the issue to the first character of the file:
|
||||
file.addIssue(
|
||||
0,
|
||||
0,
|
||||
`No undocumented stories are allowed, please add a ${filePath.replace(
|
||||
/^(.*\/)(\w+)\.story\.tsx$/,
|
||||
'$2.mdx'
|
||||
)} with some documentation.`
|
||||
);
|
||||
file.addIssue(0, 0, 'No undocumented stories are allowed, please add an .mdx file with some documentation');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user