Skip to content

Ignore folders/files that are in .gitignore when scanning for glossary files #109

Description

@chrissimon-au

Describe the bug
In some repositories, there are 'infrastructure' folders (.devenv, node_modules) with large numbers of files that are never going to contain a glossary.yml file. This can cause extensive delays on startup when scanning for glossary files.

Expected behavior
Any file/folder in a relevant .gitignore is ignored when scanning for glossary files. standard .gitignore semantics should apply (i.e. .gitignore in subfolders should apply to the subfolders of that location).

Is an 'override' facility needed to ensure a glossary file would be found/loaded even when in a .gitignore location? Probably not, since glossary file location is generally up to the developer, so should always be able to put it in a non-ignored location.

Additional context

Would also help with this issue, very likely, because it was double-discovering files in node_modules that were copied by an nx monorepo configuration

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions