forked from gcovr/gcovr
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Template dir option #1
Open
frankwiles
wants to merge
62
commits into
master
Choose a base branch
from
template-dir-option
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pass options down to `templates()` everywhere it's called. Change which jinja2 loader is used depending on existence of the argument.
* Add thread to log messages if multithreading is active.
- Add comments and to collapse code and remove not needed endless loop. The loop is always executed only once because because the first statement in the block isn't changed in a second iteration. - Collapse also the data in the root. - Use `pop(key)` instead of copying the whole dict ignoring the value. - Fix evaluating of common path in nested HTML report. The root_filter wasn't applied to the root directory in HTML report since there is no trailing path separator at the end. Now the directories always have a trailing path separator which is removed in the report generation. To get the common path part the root directory is excluded. - Replace recursive generation of directory stats with a loop. - Use a object instead of a dataclass and remove the recursive function and the tests for it. - Improve detection of root directory.
* Move formats to sub directories. * Move function print_reports from __main__.py to writer/__init__.py. * Write global logger uppercase because it's constant. * Move gcov data handling to a own format handler * Use constants for the exit code. * Add prefix of format to each option. * Only forward the options of the format and some generic options to the handler. * Add one config key for each long option.
Pass options down to `templates()` everywhere it's called. Change which jinja2 loader is used depending on existence of the argument.
- Refactor based on suggestion
- Refactors code to use new `gcovr/formats/` layout - Renames option to `--html-template-dir` - Fixes merge artifacts I created on accident
This allows the user to only have to override the certain templates they wish to adjust and it will fall through to using the included ones for any template names the user has not overriden in `--html-template-dir`
* Treat special case of an absolute path to source file. * Rename options and reorder to have fnames first. Add typing informations.
Add gcc-12 and gcc-13 within docker.
Add sessions to run all gcc or all clang versions.
If the user stylesheet contains `/* Comment.Preproc */` the pygments CSS is not added at the end.
* Add VSCode workspace and tasks. * Add documentation for devcontainer.
* Add test for writable source directory. * Continue on GCOV write error.
…gcovr#792) Switch to pypy-3.8 because of dependency failure
* Use 1.0 instead of 0.0 if `total` is 0
Co-authored-by: Michael Förderer <michael.foerderer@gmx.de>
Co-authored-by: Michael Förderer <michael.foerderer@gmx.de>
If a const and a choice is defined for an option the validation of the choice was skipped and the value was converted to a boolean.
Add additional themes `github.blue`, `github.green`, `github.dark-blue` and `github.dark-green`. --------- Co-authored-by: Spacetown <michael.foerderer@gmx.de>
Co-authored-by: Michael Förderer <michael.foerderer@gmx.de>
* Add option --fail-under-decision and update exitcodes
Check length of lines dictionary before generating a range of key values --------- Co-authored-by: Michael Förderer <michael.foerderer@gmx.de>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.