You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -291,6 +291,24 @@ This information may be a useful guide to find the right author to discuss funct
291
291
292
292
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.
293
293
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
+
294
312
### Intermediate results
295
313
296
314
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