-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrewrite.yml
36 lines (35 loc) · 1.89 KB
/
rewrite.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
type: specs.openrewrite.org/v1beta/recipe
name: com.github.nramc.recipes.sources
recipeList:
- org.openrewrite.staticanalysis.CommonStaticAnalysis
- org.openrewrite.staticanalysis.CodeCleanup
- org.openrewrite.java.security.JavaSecurityBestPractices
- org.openrewrite.java.RemoveUnusedImports
- org.openrewrite.recommendations.CodeHealth
- org.openrewrite.java.logging.slf4j.Slf4jBestPractices
- org.openrewrite.recommendations.DependencyManagement
- org.openrewrite.maven.BestPractices
- org.openrewrite.recipes.JavaRecipeBestPractices
# - org.openrewrite.java.AddApache2LicenseHeader
---
type: specs.openrewrite.org/v1beta/recipe
name: com.github.nramc.recipes.testing
recipeList:
# Since some o f the Mockito.eq(), Mockito.any() and Mockito.when removed as unused, this is seems to be bug. Therefore below is disabled for now
# - org.openrewrite.java.testing.mockito.MockitoBestPractices
- org.openrewrite.java.testing.junit5.CleanupAssertions
# commented out due to bug which removed Mockito.when, eq, any as unused even used in code
# BUG: https://github.com/openrewrite/rewrite/issues/3111
# - org.openrewrite.java.testing.assertj.Assertj
- org.openrewrite.java.testing.junit5.StaticImports
- org.openrewrite.recipes.RecipeTestingBestPractices
- org.openrewrite.java.testing.cleanup.TestsShouldNotBePublic
# BestPractices contains both TestsShouldIncludeAssertions and RemoveTestPrefix
# Since TestsShouldIncludeAssertions does not recognize mockito verify and assertJ,
# commented out BestPractices and explicitly mentioned RemoveTestPrefix below
# BUG: https://github.com/openrewrite/rewrite/issues/3111
# - org.openrewrite.java.testing.cleanup.BestPractices
- org.openrewrite.java.testing.cleanup.RemoveTestPrefix
- org.openrewrite.java.testing.cleanup.AssertLiteralBooleanToFailRecipe
- org.openrewrite.java.testing.testcontainers.TestContainersBestPractices