Replies: 3 comments 1 reply
-
Admittedly, when I wrote that GitHub was doing a good enough job at determining if a file was VBA or not, I was thinking mostly of distinguishing VBA and VB6. tB is clearly in a seperate category for the moment, but I think your solution for .twin and .tbfrom files is reasonable while we wait for GH to support tB. You could also do Would you like to make a PR for this? I'd be happy to add this to the template as well.
Yeah, that's probably a good idea, I'll do that soon :). I might even make a release when I feel like it's ready.
We are currently at 244 files if we exclude fafalone from the search: https://github.com/search?q=path%3A*.twin+%28NOT+IS%3Afork%29+%28NOT+language%3AXML%29+%28NOT+user%3Afafalone%29&type=code |
Beta Was this translation helpful? Give feedback.
-
@fafalone to follow-up on your comment.
The fact that the .twin file does not "only occur once per repo" makes me think the files count is the rule that will matter in this case. However, you are more than right that the community needs to step up their game 😅 because no matter the metric we use at the moment, it's not there yet. Regarding .twinproj files, I had the same issue (no results), but I have no idea why. |
Beta Was this translation helpful? Give feedback.
-
370 if you don't exclude me, so might be I'm not dominant enough to get excluded... twinproj occurs once per repo, so I thought of using that. That would give 'number of projects' Hopefully things will take off with the big v1.0 release. |
Beta Was this translation helpful? Give feedback.
-
Martin, thanks for doing this research and taking the time to share it with the community!
From your writeup, I read that you aren't using the linguist-language attribute because GH does a good job of correctly associating files with language. But since twinBASIC is not yet a recognized GH language (I don't think it will be long before it does meet the qualification thresholds), what is your advice on using the language attribute for tB files? tB supports .cls and .bas type files, so those won't be GH-distinguishable from VBx. But tB's native .twin holds module/class source text and so if GH user wants to see pretty colorfied code in their repos for those, then maybe consider designating the type as VBA or VB6? The tB native form file is .tbform and is actually JSON.
I suggest that you place at the top of each .getattribute/.gitignore example files a link back to your GH repo so that they can read your excellent explanations of the issues/solutions - otherwise it will be pilfered from project to project without appreciation! :-). Speaking of that, the (now wholly suboptimal!) .gitattributes file I had BEFORE I read your note to @cristianbuse, I had pilfered (with clueless abandon) from none-other than VBA-Dictionary, same as the bad-example link that you had sent to Cristain. Ha ha!
Cheers!
Beta Was this translation helpful? Give feedback.
All reactions