Yeah. This is really fascinating stuff - thanks for the work!

On Monday, December 14, 2015, Oleg Nenashev <[email protected]> wrote:

> Hi Emeric,
>
> Thanks a lot for your efforts! +1 from me for forking the additional tool.
>
> Since we plan to add the API deprecation and removal policy in Jenkins
> 2.0, such tools should become very important in the middle-term.
>
> Best regards,
> Oleg
>
> понедельник, 14 декабря 2015 г., 2:07:14 UTC+3 пользователь evernat
> написал:
>>
>> Hi all,
>>
>> After the tool to find the deprecated Jenkins api used by plugins
>> <https://ci.jenkins-ci.org/view/Infrastructure/job/infra_deprecated-usage-in-plugins/ws/target/output.html>,
>> I have written yet another tool.
>> The unused code detector
>> <https://github.com/evernat/unused-code-detector> finds Jenkins methods
>> unused in Jenkins and in latest plugins, including potential usage in
>> jelly. (Getters, setters, do*, deprecated methods and unit tests are
>> ignored. Unused deprecated api is already reported here
>> <https://ci.jenkins-ci.org/view/Infrastructure/job/infra_deprecated-usage-in-plugins/ws/target/output.html#deprecatedApiNotUsed>
>> .)
>>
>> Current result is that 184 Jenkins methods are never used. Perhaps, some
>> of them could be deprecated or removed right away.
>> There are certainly false positives in the report, but I think that a
>> majority is really dead code. To be sure that a method is never used, it's
>> possible to grep all sources
>> <https://wiki.jenkins-ci.org/display/JENKINS/Grepping+all+sources> or to 
>> search
>> in github
>> <https://github.com/search?type=Code&q=user%3Ajenkinsci+SomeClass.staticMethod>
>> directly.
>>
>> If you are ok, the tool could be forked into jenkins-infra
>> <https://github.com/jenkins-infra> with a job in CI
>> <https://ci.jenkins-ci.org/view/Infrastructure/> (If yes, I suggest a
>> daily schedule.)
>>
>> By the way, I have fixed a bug in the first tool above, there are in fact
>> 560 plugins using a deprecated Jenkins api, not 430.
>>
>> bye,
>> Emeric
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected]
> <javascript:_e(%7B%7D,'cvml','jenkinsci-dev%[email protected]');>
> .
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-dev/7c5f8267-a91d-4ddd-b853-fe49e79711f7%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-dev/7c5f8267-a91d-4ddd-b853-fe49e79711f7%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CAPbPdOZbqDs8JaNcPq4A%3DLsgM%3Dv%2BSKqOgCj%3D5e53oYv3jWQ12Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to