Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-think our doxygen warnings wrt missing docs and fatalness. #1502

Closed
wants to merge 2 commits into from

Conversation

Labels
None yet
Projects
None yet
4 participants
@nmathewson
Copy link
Contributor

@nmathewson nmathewson commented Nov 5, 2019

Up till now, we have warned about all missing documentation, which
meant that we could never make doxygen warnings fatal. This has led
to our doxygen output getting full of errors several times in the
past.

This commit changes our approach to doxygen warnings: missing
documentation warnings are only on when the user asks for them with
--enable-missing-doc-warnings. When that option is not present,
doxygen respects the --enable-fatal-warnings flag.

Closes ticket 32385.

Up till now, we have warned about all missing documentation, which
meant that we could never make doxygen warnings fatal.  This has led
to our doxygen output getting full of errors several times in the
past.

This commit changes our approach to doxygen warnings: missing
documentation warnings are only on when the user asks for them with
--enable-missing-doc-warnings.  When that option is not present,
doxygen respects the --enable-fatal-warnings flag.

Closes ticket 32385.
@coveralls
Copy link

@coveralls coveralls commented Nov 5, 2019

Pull Request Test Coverage Report for Build 7120

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 39 unchanged lines in 5 files lost coverage.
  • Overall coverage increased (+0.008%) to 62.363%

Files with Coverage Reduction New Missed Lines %
src/feature/hs/hs_dos.c 1 94.0%
src/lib/confmgt/type_defs.c 1 99.51%
src/lib/pubsub/pubsub_check.c 1 99.34%
src/lib/geoip/geoip.c 11 93.51%
src/core/or/dos.c 25 86.43%
Totals Coverage Status
Change from base Build 7066: 0.008%
Covered Lines: 48604
Relevant Lines: 77937

💛 - Coveralls

configure.ac Outdated
@@ -76,6 +76,24 @@ AC_ARG_ENABLE(nss,
AC_ARG_ENABLE(pic,
AS_HELP_STRING(--enable-pic, [Build Tor's binaries as position-independent code, suitable to link as a library.]))

AC_ARG_ENABLE(missing-doc-warnings,
AS_HELP_STRING(--enable-missing-doc-warnings, [Tell doxygen to warn about missing documentation.]))
Copy link
Contributor

@tlyu tlyu Nov 6, 2019

This seems like it would make all Doxygen warnings (not just missing documentation) non-fatal, which seems like a reasonable constraint. Maybe we want to highlight this side effect in the help text and changes file?

@@ -2,4 +2,5 @@
- Our "make doxygen" target now respects --enable-fatal-warnings by
default, and does not warn about items that are missing documentation.
To warn about missing documentation, run configure with the
"--enable-missing-doc-warnings" flag. Closes ticket 32385.
"--enable-missing-doc-warnings" flag: doing suspends fatal warnings
Copy link
Contributor

@tlyu tlyu Nov 7, 2019

s/doing/doing so/ ?

@torproject-pusher torproject-pusher deleted the branch torproject:master May 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment