Nixinova / LinguistJS

Analyse and list all languages used in a folder. Implementation of and powered by GitHub's Linguist.
ISC License
35 stars 11 forks source link

Generated override is not followed in gitattributes #26

Closed Nixinova closed 6 months ago

Nixinova commented 1 year ago

Having gitattributes content such as

package-lock.json -linguist-generated

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

Nixinova commented 6 months ago

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;
Nixinova commented 6 months ago

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

Nixinova commented 6 months ago

To be fixed in 2.7