Skip to content

Commit 579a725

Browse files
committed
display number of ignored assignments
1 parent f38bdd0 commit 579a725

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

databases/catdat/scripts/redundancies.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,15 @@ function check_redundant_category_property_assignments() {
3333
const assignments = get_all_assignments(db, categories)
3434
const ignore_dict = get_ignored_redundant_properties(db)
3535

36+
const ignore_count = Object.keys(ignore_dict).reduce(
37+
(count, id) => count + ignore_dict[id].size,
38+
0,
39+
)
40+
41+
if (ignore_count > 0) {
42+
console.info(`Ignore ${ignore_count} assignments`)
43+
}
44+
3645
let redundancy_count = 0
3746

3847
for (const category of categories) {

0 commit comments

Comments
 (0)