All the Info classes yielded by EditorconfigInfoExtractor contains a scope field which represents the target files of that information in "editorconfig-style-file-glob" format.
This involves:
Parsing the "editorconfig-style-file-globs" into standard globs.
Adding a field name applicable_globs or target_globs in the InfoScope class and then modify the check_belongs_to_scope method to also check that:
section["files"] (files targeted by section) is a subset of applicable_globs (files for which the Info is valid), failing which
we should either not use the Information to fill the setting values
or we may create seperate sections for the intersection globs of these two fields.
All the
Info
classes yielded byEditorconfigInfoExtractor
contains ascope
field which represents the target files of that information in "editorconfig-style-file-glob" format.This involves:
applicable_globs
ortarget_globs
in theInfoScope
class and then modify thecheck_belongs_to_scope
method to also check that:section["files"]
(files targeted by section) is a subset ofapplicable_globs
(files for which the Info is valid), failing which