Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a bunch more extensions #12

Merged
merged 3 commits into from
Feb 28, 2017
Merged

Add a bunch more extensions #12

merged 3 commits into from
Feb 28, 2017

Conversation

chriskuehl
Copy link
Member

These come from cloning the 50 most starred GitHub repos and picking out extensions that seem like they should be added.

'bat': {'text', 'batch'},
'bz2': {'binary', 'bzip2'},
'c': {'text', 'c'},
'cc': {'text', 'c++'},
'cfg': {'text', 'conf'},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is probably going to change the parsing of setup.cfg

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, not sure what to do. obviously .conf/.cfg/.cnf represent tons of different file formats

maybe we should just omit it (or just have {'text'}) since you can't reliably assume anything based on the type?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was meaning towards omission as well (why I didn't fill out . txt). Maybe we just leave these as text and give higher priority to the named files?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leaning*

'png': {'binary', 'image', 'png'},
'po': {'text', 'pofile'},
'pp': {'text', 'puppet'},
'proto': {'binary', 'proto'},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm i thought these were text files

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup they are, oops

@chriskuehl
Copy link
Member Author

@asottile made filename matches take precedence over extension matches so that, for example, .cfg can be very generic, but setup.cfg can be more specific.

@chriskuehl chriskuehl merged commit bb4ab0e into master Feb 28, 2017
@chriskuehl chriskuehl deleted the moar-extensions branch February 28, 2017 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants