Forums : The Ohcount Project

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 code in file without extension not counted?

Project: https://www.openhub.net/p/liquidprompt
Source: https://github.com/nojhan/liquidprompt

The code is in the file liquidprompt which has 1924 lines of shell code on the develop branch.
But on OpenHUB, the whole project is reported as being only 285 lines.
On code.openhub.net the file liquidprompt is not even shown:
https://code.openhub.net/project?pid=&ipid=402627&fp=402627&mp&projSelected=true&filterChecked

Olivier Mengué ... about 8 years ago
 

Hi Olivier;

It looks like there are two separate issues here. The first being the detection of shell code in the repository. The Open Hub currently uses the Ohcount line counting tool. The rules there determine which lines are identified as shell code or not.

The other is an issue with the code.openhub.net code search site. We are going to shut down that site. The data there hasn't been updated in quite a while, but more importantly, other than developers checking their project code on the site, we do not have evidence of users getting value out of that site. Unfortunately, the site is an expense that Black Duck management would like to eliminate since there is little evidence of the site providing value to our users by letting them search and discover code.

I'm the first to admit that there is a bit of a chicken and egg problem in that the code is out of date so we shouldn't expect folks to get value out of searching there. However, the data we have goes back to when the site was current. We've just sat on the site for while waiting to make a clear decision. It will be coming down in the near future.

So, for the first issue, we (you and us) can look at Ohcount to see if we can get a better understanding of the shell code identification. Also, please note that the Open Hub is planning on switching to Ohcount4J so that the Open Hub has the same line counting tool as the rest of Black Duck.

Hope this was helpful.

pdp

Peter Degen-Por... almost 8 years ago