Nixinova / LinguistJS

Analyse and list all languages used in a folder. Implementation of and powered by GitHub's Linguist.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generated override is not followed in gitattributes

Nixinova opened this issue · comments

Having gitattributes content such as

package-lock.json -linguist-generated

does not actually lead to the file being included in the output.

This occurs because default gitignored content is ignored when the list of files is being made so there is nothing to un-filter out when parsing gitattributes.

const data = walk({ init: true, commonRoot, folderRoots: resolvedInput, folders: resolvedInput, gitignores, regexIgnores });
files = data.files;
folders = data.folders;

Being worked on at the moment; requires quite a bit of a rewrite. Tests do not pass at this stage.

To be fixed in 2.7