commit | 5e5cb69c5cb55217bb54a5d35dd6d539d86c9c6e | [log] [tgz] |
---|---|---|
author | Dariusz Luksza <dariusz.luksza@gmail.com> | Thu Feb 15 15:12:42 2024 +0000 |
committer | Dariusz Luksza <dariusz.luksza@gmail.com> | Thu Feb 15 15:12:42 2024 +0000 |
tree | 55262728c6d361ffe8019edd1401c121a5974bb2 | |
parent | fd3d6a2beba7e256227829a7f0be2fd37b9334f4 [diff] |
Use try-with-resources when iterating ovef fiels Usage of `Files.walk()` requires a try-with-resources in order to clearly close the stream when walk if finished or exception occurs. Change-Id: I6d1c29b51f69488cff1058ab6f15b425fc4a737c
This plugin allows a systematic collection of repository metrics. Metrics are updated upon a ref-update
receive.
Clone or link this plugin to the plugins directory of Gerrit‘s source tree, and then run bazel build on the plugin’s directory.
Example:
git clone --recursive https://gerrit.googlesource.com/gerrit git clone https://gerrit.googlesource.com/plugins/git-repo-metrics pushd gerrit/plugins && ln -s ../../git-repo-metrics . && popd cd gerrit && bazel build plugins/git-repo-metrics
The output plugin jar is created in:
bazel-genfiles/plugins/git-repo-metrics/git-repo-metrics.jar
Copy the git-repo-metrics.jar into the Gerrit's /plugins directory and wait for the plugin to be automatically loaded.
More information about the plugin configuration can be found in the config.md file.