Skip to content
public-library›Rules›Documentation›Head a file with its purpose only when its name can't say it

Head a file with its purpose only when its name can't say it

Start a hand-written file with a one-to-three-line comment only when its name and location don't tell a reader whether it's the file they need, or when it deliberately excludes something a reader would expect there. Prefer a more specific file name to a header.

In the full rule