Skip to content

Commit

Permalink
Feature/2908/preselect metrics from metric gardener (#2910)
Browse files Browse the repository at this point in the history
* Add real_lines_of_code to sizeMetrics #2908

* Change CHANGELOG.md #2908

* Update CHANGELOG.md

* Update CHANGELOG.md

Move the "add more metrics" part up to the "Changed" section

* Update CHANGELOG.md

Co-authored-by: MW-Friedrich <108457762+MW-Friedrich@users.noreply.github.com>
  • Loading branch information
jannikr and MW-Friedrich committed Jul 26, 2022
1 parent a2b50eb commit 038d058
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/)
### Changed

- Restore previous selected files when switching back from delta to standard mode [#2891](https://github.com/MaibornWolff/codecharta/pull/2891)
- Add more metrics that can be preselected when opening a cc.json file [#2907](https://github.com/MaibornWolff/codecharta/pull/2907) [#2908](https://github.com/MaibornWolff/codecharta/pull/2908)

### Fixed 🐞

- Let file selection always show what is actual rendered within the map [#2891](https://github.com/MaibornWolff/codecharta/pull/2891)

### Chore 👨‍💻 👩‍💻

- Add more metrics that can be preselected when opening a cc.json file [#2907](https://github.com/MaibornWolff/codecharta/pull/2907)
- Improve performance by slightly delaying node-name popups and removing unused functionality [#2897](https://github.com/MaibornWolff/codecharta/pull/2897)

## [1.100.0] - 2022-07-12
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { NodeMetricData, RecursivePartial, Settings } from "../../../../codeCharta.model"

const sizeMetrics = ["rloc", "loc", "lines_of_code", "lines", "statements", "functions"]
const sizeMetrics = ["rloc", "real_lines_of_code", "loc", "lines_of_code", "lines", "statements", "functions"]
const complexityMetrics = ["mcc", "cognitive_complexity", "sonar_cognitive_complexity", "max_nesting_level", "indentation_level"]

export function isAnyMetricAvailable<T extends Pick<NodeMetricData, "maxValue">[]>(metricData: T) {
Expand Down

0 comments on commit 038d058

Please sign in to comment.