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
Note that if you have `buildozer` installed you can just run the last line and have it automatically apply the fix for you.
268
268
269
+
Note that this option only applies to scala code. Any java code, even that within `scala_library` and other rules_scala rules, is still controlled by the `--strict_java_deps` command-line flag.
270
+
269
271
### [Experimental] Unused dependency checking
270
272
To allow for better caching and faster builds we want to minimize the direct dependencies of our targets. Unused dependency checking
271
273
makes sure that all targets specified as direct dependencies are actually used. If `unused_dependency_checker_mode` is set to either
@@ -302,12 +304,6 @@ It can be daunting to turn on strict deps checking or unused dependency mode che
302
304
303
305
We recommend turning on strict_deps_mode first, as rule `A` might have an entry `B` in its `deps`, and `B` in turn depends on `C`. Meanwhile, the code of `A` only uses `C` but not `B`. Hence, the unused dependency checker, if on, will request that `B` be removed from `A`'s deps. But this will lead to a compile error as `A` can no longer depend on `C`. However, if strict dependency checking was on, then `A`'s deps is guaranteed to have `C` in it.
304
306
305
-
### [Experimental] Migrating from deprecated configurations
306
-
307
-
There are a few deprecated configuration methods which we will be removing in the near future.
308
-
309
-
- The command line argument `--strict_java_deps=WARN/ERROR`. Instead, set `dependency_mode = "transitive"` on the scala toolchain, and if only a warning is desired set `strict_deps_mode = "warn"` on the toolchain. In the future, `strict_java_deps` will no longer affect how scala files are compiled. Note that `strict_java_deps` will still control java compilation.
310
-
311
307
## Advanced configurable rules
312
308
To make the ruleset more flexible and configurable, we introduce a phase architecture. By using a phase architecture, where rule implementations are defined as a list of phases that are executed sequentially, functionality can easily be added (or modified) by adding (or swapping) phases.
"warning: Target '//test:UnusedLib' is specified as a dependency to //test:UnusedDependencyCheckerWarn but isn't used, please remove it from the deps."
0 commit comments