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
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -123,6 +123,7 @@ This Action provides several parameters to customize its behavior. You can speci
123
123
| `exclude` | `string` | `'node_modules, test'` | Specifies a comma-separated list of files to exclude from the graph. |
124
124
| `include-index-file-dependencies` | `boolean` | `false` | Determines whether to display dependency files when the changed file is referenced from an index.ts in the same directory. |
125
125
| `comment-title` | `string` | `Delta TypeScript Graph` | Specifies the title of the comment posted on the PR. Useful for distinguishing analyses in monorepos or multiple CI runs. |
126
+
| `show-metrics` | `boolean` | `false` | Specifies whether to calculate and display metrics for the graph. |
126
127
127
128
To use these parameters, include them under the `with` section of your workflow file when using this Action. For example:
128
129
@@ -138,6 +139,7 @@ steps:
138
139
in-details: true
139
140
exclude: 'node_modules, test'
140
141
include-index-file-dependencies: true
142
+
show-metrics: true
141
143
```
142
144
143
145
This configuration will set up the Action with the specified parameters, allowing you to customize its behavior according to your project's needs.
@@ -148,3 +150,12 @@ Using the `tsg` command found in the comments generated by this action, you can
148
150
149
151
For more information about the `tsg` command, please refer to the following repository:
150
152
https://github.com/ysk8hori/typescript-graph
153
+
154
+
## About the metrics
155
+
156
+
This is a beta feature for measuring code metrics, including the Maintainability Index and Cognitive Complexity, among others.
157
+
While these metrics are widely recognized, their accuracy in TypeScript-specific contexts may vary.
158
+
Nonetheless, they can serve as helpful indicators for evaluating code quality.
159
+
160
+
For more details, please refer to the TypeScript Graph README:
0 commit comments