Skip to content

Linguist doesn't work locally for a single HTML file that needs to be excluded #6912

@zkkv

Description

@zkkv

Describe the bug

I have two relevant files in my project root: foo.html and .gitattributes. I want to exclude foo.html from the linguist's calculation. In .gitattributes I tried doing the following:

foo.html -linguist-documentation  # As in the documentation
foo.html linguist-documentation  # Different from the documentation

In the latter case, when I run git check-attr linguist-documentation foo.html it says the attribute is set to true. In neither cases, however, is HTML excluded from linguist's report, i.e. I get the same result with or without the addition of .gitattributes file.

Expected behaviour

HTML should be excluded from the report.

Related discussion

None that I could find.

Additional notes

None.

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