Skip to content

Commit e8dded8

Browse files
committed
Merge branch 'master' of github.com:adamtornhill/code-maat
2 parents 881cfb0 + 2091d3a commit e8dded8

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,24 @@ This information may be a useful guide to find the right author to discuss funct
291291

292292
Sometimes we'd like to find patterns that manifests themselves over multiple commits. Code Maat provides the `--temporal-period` switch that let you consider all commits within a day as a logical change. Just provide the switch and add a digit - in the future that digit may even mean something; Right now the aggregation is limited to commits within a single day.
293293

294+
## Architectural level analyses
295+
296+
Using the `-g` flag lets you specify a mapping from individual files to logical components. This feature makes it possible to
297+
scale the analyses to an architectural level and get hotspots, knowledge metrics, etc. on the level of sub-systems.
298+
299+
There are some sample mapping files in the `end_to_end` test folder, for
300+
example [this one](https://github.com/adamtornhill/code-maat/blob/ebd2b757ae31510b5cf52d0e11fafa82a7e062d1/test/code_maat/end_to_end/regex-and-text-layers-definition.txt)
301+
302+
The format is `regex_pattern => logical_group_name`:
303+
304+
```
305+
src/Features/Core => Core
306+
^src\/.*\/.*Tests\.cs$ => CS Tests
307+
```
308+
309+
Code Maat takes everything that matches a regex and analyses it as a
310+
holistic whole by aggregating all file contributions for the matches.
311+
294312
### Intermediate results
295313

296314
Code Maat supports an `identity` analysis. By using this switch, Code Maat will output the intermediate parse result of the raw VCS file. This can be useful either as a debug aid or as input to other tools.

0 commit comments

Comments
 (0)