1
0
mirror of https://github.com/simple-icons/simple-icons.git synced 2024-12-16 01:10:30 +02:00

Fix collinear-segments rule of SVG linting not executed (#10589)

This commit is contained in:
Álvaro Mondéjar 2024-03-08 19:53:38 +01:00 committed by GitHub
parent ce2f63e591
commit 4f1b9b8946
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 17 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -649,7 +649,7 @@ export default {
}
}
},
(reporter, $, ast, filepath) => {
(reporter, $, ast, { filepath }) => {
reporter.name = 'collinear-segments';
/**
@ -814,8 +814,12 @@ export default {
return collinearSegments;
};
const iconPath = getIconPath($, filepath),
collinearSegments = getCollinearSegments(iconPath);
const iconPath = getIconPath($, filepath);
if (!updateIgnoreFile && isIgnored(reporter.name, iconPath)) {
return;
}
const collinearSegments = getCollinearSegments(iconPath);
if (collinearSegments.length === 0) {
return;
}