inch-ci / inch_ci-web

Web frontend for Inch CI
http://inch-ci.org/
MIT License
139 stars 20 forks source link

Add support for Java #83

Open Chaka15205 opened 9 years ago

gresrun commented 9 years ago

:+1:

Ezard commented 9 years ago

:+1:

mestebangutierrez commented 9 years ago

:+1:

supertassu commented 8 years ago

:+1: Edit: don't check the referenced issue!, idon't to wanted to reference this, only add the link. :cry:

supertassu commented 8 years ago

supertassu/inchciworkerjavasupport, working with this. Ready maybe on two weeks.

rrrene commented 8 years ago

@supertassu Sounds great. :+1: We should discuss the prequisites before you pour too much work into it.

Two things are needed to support Java in Inch CI:

  1. A wrapper around JavaDoc that outputs all found code objects (documented and undocumented) in JSON format. I tried to explain the same thing in more detail in the "Add PHP support"-Thread.
  2. This JSON-dump is then read by Inch (the RubyGem) which performs the analysis and contains all the rules etc.

I can't do Number 1. (my Java-Fu is very weak these days), but I already did Number 2 for three languages (Ruby, JS and Elixir). We could easily split the workload that way.

Your thoughts?

supertassu commented 8 years ago

I can't do Number 1.

I can on next week in the syntax that you described in php-theard.

Can you do Number 2? Then it suggests same things that other inch languages? @rrrene

(sorry for my bad English.)

supertassu commented 8 years ago

@rrrene i forgot to say, but how i build/test Inch Ci worker on Linux?

rrrene commented 8 years ago

Inch CI Worker is a Ruby project and only there to execute whatever command builds Inch for Language X.

What we would want to design is an executable that wraps JavaDoc and generates JSON output. If you are familar with JavaScript you can take a look at InchJS. It wraps JSDoc (JavaScript's equivalent of JavaDoc) and writes the result into a JSON file.

Integrating that into Inch CI Worker is trivial, the hard part (at least for me) would be to write a program that produces the JSON and formats it in the syntax described in the PHP-Thread. This program can exist on its own and the only requirement is that it does static analysis, i.e. does not require the analysed source code to be compiled.

supertassu commented 8 years ago

Hmmm. Is it okhay if i clone Inchjs, and Modify it for using Javascript?


@rrrene

rrrene commented 8 years ago

Sure!

ddubson commented 8 years ago

:+1:

RajuSE commented 7 years ago

👍

LorenzoLeonardini commented 7 years ago

👍