-
Notifications
You must be signed in to change notification settings - Fork 30
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
Default metric is preselected #1532
Comments
@ce-bo and me discussed this a few times recently and we thought about implementing a heuristic for known metrics based upon frequently used metrics in audits. We also thought about using machine learning. To do so we might need to ask users to transfer some statistics anonymously about their used metrics, the map size and a few more things. |
This comment was marked as outdated.
This comment was marked as outdated.
I updated the requirements to simplify the issue:
|
Example: Known combination 1: Category Size: rloc, loc, number_of_statements, etc. |
… be specified and suitable metrics are automatically selected #1532
* Refactor scenarioHelper.ts for automated selection of metric templates / scenarios if applicable #1532 * Refactor scenarioHelper.spec.ts in order to test new functionality #1532 * adjust tests #1532 * adjust resetChosenMetrics.effect.spec.ts #1532 * Update README.md * Update 2022-06-22-v1_99_1.md * Move getMatchingMetric to metricHelper.ts due to SOC #1532 * Change functionality in metricHelper.ts so that metric categories can be specified and suitable metrics are automatically selected #1532 * Adjust tests #1532 * Update tests for new matching function in metricHelper.spec.ts #1532 * Add minor code improvements #1532 Co-authored-by: jannikolai.rueckert <jan.nr@live.de> Co-authored-by: Jan N. Rückert <31436472+jannikr@users.noreply.github.com>
Basic functionality was implemented with PR #2862. In the further process, the list of metrics will be extended. To evaluate the metrics, here is an overview (not complete).
Git Log Parser:
Tokei Importer:
SVN:
Raw Text:
|
Hi @jannikr, thank you very much for creating this list of metrics. Would you please extent the lists in the code? |
Add an entry to the changelog Continuation of #1532
@ce-bo In metric-gardener exists the metric "real_lines_of_code"? How shall we handle this? In my opinion it is more relevant than "lines_of_code. |
Yes, thats correct. The corresponding acronym is "rloc" and "rloc" has highest priority. |
* Improve delta generator spec #2708 [Less symmetry in expected result when counting added+deleted files] * Improve nodePath spec #2708 [check english grammar for plural/singular edge cases] * Fix grammar in file count display #2708 [edge case of folder with 0 files is now displayed with correct grammar] * Add mocked display of changed files #2708 * Fix information display about changed files #2708 [Text shows correctly that a file changed if and only a metric changed] * Add file comparing in delta generator #2708 * Add metricsChanged by delta generator #2708 * Add display of changed files in html from store #2708 * Fix fileCount selector spec #2708 * Add collecting of metric changes from children #2708 * Refactor FileCount property #2708 [ .metricsChanged to .changed ] * Fix snapshots for delta generator spec #2708 * Fix logic of delta generator #2708 [For-loop instead of lambda-functions for perfomance in delta generator] * Document changelog #2708 * Refactor deltaGenerator internally #2708 [Using set instead of array to improve performance] * Fix file-changed-logic in deltaGenerator #2708 [0 should equal undefined when comparing attributes] * Change google link to https #2708 * Adjust test mocks and snapshots #2708 [Snapshots use https and mocks have correct propery order] * Refactor test mock objects #2708 [Reduce duplicated lines marked by sonarqube] * Refactor mock objects for unit tests #2708 [Extract fileMeta proeprty to reduce code duplication] * Refactor test mock objects #2707 [Extracted default file and default fileMap] * Refactor mock files in deltaGenerator spec #2708 [Reduce code duplication for sonar qube] * Try out comment to disable sonar in line #2708 * fix SonarQube not excluding dataMocks.ts #1532 Co-authored-by: MW-Friedrich <108457762+MW-Friedrich@users.noreply.github.com> Co-authored-by: Jan N. Rückert <31436472+jannikr@users.noreply.github.com>
Feature request
Description
As user who don’t know the metrics and their meaning, I want a default metric which fits to the file so that I don’t have to select the right metric by myself.
Acceptance criteria
Open questions
The text was updated successfully, but these errors were encountered: