Forums : Ohloh General Discussion

Dear Open Hub Users,

We’re excited to announce that we will be moving the Open Hub Forum to https://community.synopsys.com/s/black-duck-open-hub. Beginning immediately, users can head over, register, get technical help and discuss issue pertinent to the Open Hub. Registered users can also subscribe to Open Hub announcements here.


On May 1, 2020, we will be freezing https://www.openhub.net/forums and users will not be able to create new discussions. If you have any questions and concerns, please email us at [email protected]

Shell scripts without .sh suffix not counted

I maange a project that has a large shell script code base, however, the files do not end in .sh, which makes the code analysis match them.

What does the code analysis do to determine the language of a file? Can it be taught to correctly count our scripts?

Dominik George over 9 years ago
 

Dominik,

Our source recognition is a mix of extension recognition and algorithms to recognize characteristics of each language. I'm sure our recognition of shell script can be improved. Please take a look at https://github.com/blackducksw/ohcount and see if it can. Pull requests are gratefully accepted and this is the best way to get the changes we all want.

Thanks!

ssnow-blackduck over 9 years ago
 

Thanks! I only read the source and found that emacs mode lines would do the trick.

Dominik George over 9 years ago
 

Dominik,

Super! I didn't think about going at it from the reverse view... Still, if it works for you...
We have even had issues where people had their editor running in the wrong mode and it left the indicator in the source code and we interpreted it as the wrong kind of source. A real head scratcher!

Thanks!

ssnow-blackduck over 9 years ago