spotbugs / spotbugs-maven-plugin

Maven Mojo Plug-In to generate reports based on the SpotBugs Analyzer
https://spotbugs.github.io/spotbugs-maven-plugin/
Apache License 2.0
69 stars 51 forks source link

github code search does not work on forked repositories #391

Closed walkerbrianpatrick closed 1 year ago

walkerbrianpatrick commented 2 years ago

If you attempt to search the source code on the github web interface, it replies 'forked repositories cannot be searched'. As the previous home for the plugin is archived, consider making this the root project, and forking from the appropriate commit to gleclaire/findbugs-maven-plugin.

hazendaz commented 2 years ago

What specifically are you using that does not work? It works fine searching from this page, here is an example query (https://github.com/?q=spotbugs-maven-plugin or https://github.com/spotbugs/spotbugs-maven-plugin/search?q=groovy). If you are using other methods, see https://docs.github.com/en/search-github/searching-on-github/searching-in-forks. You could also star the project so it ends up auto indexed if it is above original.

Not sure exactly what method you are using otherwise or if behaviour is simply different since I'm the maintainer but all the other suggestions are completely manual and not likely going to occur.

walkerbrianpatrick commented 2 years ago

I read the article you linked, it looks like they don't index forks until it is more popular than the root repo. Dropping a star is the least I can do, but won't solve the problem until loads more people do it.

Strange that you can do code search as maintainer...

hazendaz commented 2 years ago

Guess I should have also starred the project, its tied with the root now. Just needs one more bump then this should be resolved.

hgschmie commented 1 year ago

you can contact github support and ask them to detach your repository from the original source.

hazendaz commented 1 year ago

@walkerbrianpatrick Think this is now resolved, can you confirm it works for you now?

hazendaz commented 1 year ago

closing as resolved.