github-linguist / github-linguist/linguist

Allow filename matching by regexp, or extensions not beginning with '.'

Open
#5,333 1 comment 0 reactions 0 assignees View on GitHub
Improvement
Dominant language
Ruby
Stars
13.7k
Forks
5.4k
Avg merge
1d 15h
Merged PRs (30d)
17

Description

## Describe the enhancement

Filenames ending with `-file_contexts` (e.g. `apex.test-file_contexts` or `com.android.wifi-file_contexts`) should be classified as SELinux Kernel Policy Language. As far as I can see there is currently no way to express this in `languages.yml`, as it requires that extensions begin with '.'. Either relaxing this requirement or allowing regular expressions in the `filenames` field would allow them to be classified properly.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.