@@ -28,30 +28,38 @@ def evaluate(self, file: MkDocsFile):
2828 )
2929 for glob in self .plugin_config .include_glob :
3030 if fnmatch .fnmatchcase (file .src_path , glob ):
31- return True , str (f"glob: { glob } " )
31+ return file , True , str (f"glob: { glob } " )
3232 for regex in self .plugin_config .include_regex :
3333 if re .match (regex , file .src_path ):
34- return True , str (f"regex: { regex } " )
34+ return file , True , str (f"regex: { regex } " )
3535 if file .is_documentation_page () and self .plugin_config .include_tag is not []:
3636 tags = self .__get_metadata (file )
3737 for tag in self .plugin_config .include_tag :
3838 if tag in tags :
39- return True , str (f"{ self .plugin_config .metadata_property } : { tag } " )
39+ return (
40+ file ,
41+ True ,
42+ str (f"{ self .plugin_config .metadata_property } : { tag } " ),
43+ )
4044 for glob in self .plugin_config .exclude_glob :
4145 if fnmatch .fnmatchcase (file .src_path , glob ):
42- return False , str (f"glob: { glob } " )
46+ return file , False , str (f"glob: { glob } " )
4347 for regex in self .plugin_config .exclude_regex :
4448 if re .match (regex , file .src_path ):
45- return False , str (f"regex: { regex } " )
49+ return file , False , str (f"regex: { regex } " )
4650 if file .is_documentation_page () and self .plugin_config .exclude_tag is not []:
4751 tags = self .__get_metadata (file )
4852 for tag in self .plugin_config .exclude_tag :
4953 if tag in tags :
50- return False , str (f"{ self .plugin_config .metadata_property } : { tag } " )
54+ return (
55+ file ,
56+ False ,
57+ str (f"{ self .plugin_config .metadata_property } : { tag } " ),
58+ )
5159 if self .plugin_config .mkdocsignore is True :
5260 if self .mkdocsignore_parser .match (pathlib .Path (file .abs_src_path )):
53- return False , "mkdocsignore"
54- return True , "no rule"
61+ return file , False , "mkdocsignore"
62+ return file , True , "no rule"
5563
5664 def __path_fix (self , src_path , abs_src_path ):
5765 if os .sep != "/" :
0 commit comments