4. Filename Check

What

If present, the contents of a Module field is checked against the current file name.

Why

Much code gets written by copying existing code. There is nothing wrong with that (in fact, it saves a lot of work), but when you do, please change fields accordingly - fields like Author, Maintainer, Purpose etc. - and the file name in Module.

How

This file name is particularly easy to check (plus, it's the only one that can reliably be checked), so check_ycp checks it: It compares the base name (not the complete path) of the current file to what you specified in Module: in the header.