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
{{ message }}
This repository was archived by the owner on Jul 16, 2023. It is now read-only.
feat: add experimental monorepo support for check-unused-code (#659)
* feat: add experimental monorepo support for check-unused-code
* fix: analyze all not analyzed files if in monorepo mode
* fix: fix how context folders are resolved
* chore: update changelog
* chore: fix test and update the docs
* docs: add info about limitations
* docs: add no-congratulate flag
Copy file name to clipboardExpand all lines: website/docs/cli/check-unused-code.md
+13-1Lines changed: 13 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,8 @@
2
2
3
3
Checks unused classes, functions, top level variables, extensions, enums, mixins and type aliases.
4
4
5
+
**Note:** current implementation doesn't check for particular class methods usage. Also, it treats code, that is imported with not named conditional imports as unused. This will be fixed in the future releases.
--[no-]fatal-unused Treat find unused l10n as fatal.
36
+
--no-congratulate Don't show output even when there are no issues.
37
+
38
+
39
+
--[no-]monorepo Treats all exported code as unused by default.
40
+
41
+
42
+
--[no-]fatal-unused Treat find unused file as fatal.
35
43
```
36
44
45
+
## Monorepo support
46
+
47
+
By default the command treats all code that exported from the package as used. To disable this behavior use `--monorepo` flag. This might be useful when all the packages in your repository only unused inside this repository and not published to pub.
0 commit comments