@@ -38,11 +38,11 @@ class toIteratorVsIterator(xs: Iterable[Int]) {
3838}
3939~~~
4040
41- 3 . Add a corresponding file in the ` scalafix/output213 /src/main/scala/fix/ ` directory
41+ 3 . Add a corresponding file in the ` scalafix/output /src/main/scala/fix/ ` directory
4242 with the same code but using the strawman:
4343
4444~~~ scala
45- import strawman .collection .Iterable
45+ import scala .collection .compat . _
4646
4747class toIteratorVsIterator (xs : Iterable [Int ]) {
4848 xs.iterator
@@ -68,10 +68,50 @@ migration tool on the input files and check whether the result matches the
6868expected output files:
6969
7070~~~
71- > scalafixTests /test
71+ > scalafix-tests /test
7272~~~
7373
7474Fix the implementation of the rule (in the
7575` rules/src/main/scala/fix/NewCollections.scala ` file) until the
7676tests are green. You can find more help about the scalafix API in its
7777[ documentation] ( https://scalacenter.github.io/scalafix/docs/rule-authors/setup ) .
78+
79+
80+ ### Scalafix Teskit Directory Layout
81+
82+ ```
83+ .
84+ ├── data |
85+ │ └── src |
86+ │ └── main |
87+ │ └── scala | Project to avoid duplicating code between input and output
88+ ├── input |
89+ │ └── src |
90+ │ └── main |
91+ │ ├── scala | Input that cross-compile
92+ │ └── scala-2.12 | 2.12 specific input
93+ ├── output |
94+ │ └── src |
95+ │ └── main |
96+ │ └── scala | Output that cross-compile
97+ ├── output212 |
98+ │ └── src |
99+ │ └── main |
100+ │ └── scala-2.12 | 2.12 specific output
101+ ├── output213 |
102+ │ └── src |
103+ │ └── main |
104+ │ └── scala | 2.13 specific output (from a cross-compiled input)
105+ ├── output213-failure |
106+ │ └── src |
107+ │ └── main |
108+ │ └── scala | 2.13 specific output that cannot be migrated due to technical limitations
109+ ├── rules |
110+ │ └── src |
111+ │ └── main |
112+ │ └── scala | Rule implementations
113+ └── tests |
114+ └── src |
115+ └── test |
116+ └── scala | Scalafix testkit launcher (useful to run a single input file)
117+ ```
0 commit comments