Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Validate javadoc as part of CI build #9267

Closed
tobrun opened this issue Jun 14, 2017 · 7 comments
Closed

Validate javadoc as part of CI build #9267

tobrun opened this issue Jun 14, 2017 · 7 comments
Labels
Android Mapbox Maps SDK for Android archived Archived because of inactivity build documentation

Comments

@tobrun
Copy link
Member

tobrun commented Jun 14, 2017

With every release we need create additional PRs to fixup javadoc. Take for example #9266, there we had to resolve 50 errors/ 100 warnings before being able to ship. I'm suggesting adding javadoc validation as part of our CI build. Such validation will probably require to inspect output from make android-checkstyle (afaik we can't rely on the exit code as it 's always succesfull even with errors).

cc @mapbox/android

@tobrun tobrun added Android Mapbox Maps SDK for Android build documentation labels Jun 14, 2017
@zugaldia
Copy link
Member

@tobrun 👍 x 100.

@cammace
Copy link
Contributor

cammace commented Jun 14, 2017

You can uncomment these lines in the checkstyle file which sets a rule that requires all public methods to have javadoc.

@tobrun
Copy link
Member Author

tobrun commented Jun 20, 2017

I tried running with suggestion above but it requires to also fix the javadoc on testapp. @cammace is their a more fine grain control over what a specific checkstyle module validates?

@Guardiola31337
Copy link
Contributor

@tobrun we could use a SuppressionFilter.

Suppressions are specified in a new xml file (e.g. checkstyle-suppressions.xml) and the filter has to be added under Checker in checkstyle.xml:

<module name="SuppressionFilter">
        <property name="file" value="checkstyle-suppressions.xml" />
</module>

@stale stale bot added the archived Archived because of inactivity label Nov 5, 2018
@stale
Copy link

stale bot commented Nov 30, 2018

This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

@stale stale bot closed this as completed Nov 30, 2018
@tobrun tobrun reopened this Dec 2, 2018
@stale stale bot removed the archived Archived because of inactivity label Dec 2, 2018
@stale stale bot added the archived Archived because of inactivity label May 31, 2019
@stale
Copy link

stale bot commented May 31, 2019

This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

@stale stale bot closed this as completed May 31, 2019
@tobrun
Copy link
Member Author

tobrun commented Jun 3, 2019

this is happening as part of #14792

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android archived Archived because of inactivity build documentation
Projects
None yet
Development

No branches or pull requests

5 participants
@zugaldia @Guardiola31337 @tobrun @cammace and others