Cross-file
Rule kinds in the Cross-file family. Each entry below has its own page with options, an example, and any auto-fix support.
pair— For every file matchingprimary, a file matching thepartnertemplate must exist.for_each_dir— For every matching directory / file, evaluate a nestedrequire:block with the entry as context.for_each_file— For every matching directory / file, evaluate a nestedrequire:block with the entry as context.dir_contains— Every directory matchingselect:must contain files matching every glob inrequire:.dir_only_contains— Every direct-child file of a directory matchingselect:must match at least one glob inallow:.unique_by— No two files matchingpathsmay share the value ofkey(a path template).every_matching_has— For every file or directory matchingselect:, every nested rule underrequire:must be satisfied.