Commit 5ad40ec
authored
Refactor RapidsTestSettings imports to one suite per line (#13768)
## Description
Refactor the import statements in `RapidsTestSettings.scala` to improve
code readability and maintainability.
## Changes
- Split the single long import statement (containing 30 test suites)
into individual import lines
- Each `RapidsSuite` is now imported on a separate line
**Before:**
```scala
import org.apache.spark.sql.rapids.suites.{RapidsCastSuite, RapidsDataFrameAggregateSuite, RapidsJsonExpressionsSuite, ...}
```
**After:**
```scala
import org.apache.spark.sql.rapids.suites.RapidsCastSuite
import org.apache.spark.sql.rapids.suites.RapidsDataFrameAggregateSuite
import org.apache.spark.sql.rapids.suites.RapidsJsonExpressionsSuite
...
```
## Benefits
1. **Better Readability** - Each test suite is clearly visible on its
own line
2. **Cleaner Git Diffs** - When adding/removing test suites, only
affected lines change
3. **Easier Maintenance** - Reduces merge conflicts when multiple
branches add different suites
4. **Better Code Review** - Easier to spot which test suites are being
added or removed
## Style Compliance
- ✅ **No style violations** - Verified with `mvn verify`
- The existing `// scalastyle:off line.size.limit` comment handles line
length constraints
- All license checks pass (Apache RAT)
## Testing
```bash
mvn verify -pl tests -Dbuildver=330 -DskipTests
```
Result: **BUILD SUCCESS** - No compilation errors, no style violations
## Files Changed
-
`tests/src/test/spark330/scala/org/apache/spark/sql/rapids/utils/RapidsTestSettings.scala`
Signed-off-by: Allen Xu <[email protected]>
Signed-off-by: Allen Xu <[email protected]>1 parent 17df83d commit 5ad40ec
File tree
1 file changed
+32
-1
lines changed- tests/src/test/spark330/scala/org/apache/spark/sql/rapids/utils
1 file changed
+32
-1
lines changedLines changed: 32 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
23 | 54 | | |
24 | 55 | | |
25 | 56 | | |
| |||
0 commit comments