-
Notifications
You must be signed in to change notification settings - Fork 0
/
rewrite.yml
60 lines (58 loc) · 3.21 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
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: org.openrewrite.java.security.OwaspTopTen.customized
displayName: "Remediate vulnerabilities from the OWASP Top Ten"
description: "[ OWASP ](https://owasp.org) publishes a list of the most impactful common security vulnerabilities. These recipes identify and remediate vulnerabilities from the OWASP Top Ten."
recipeList:
- org.openrewrite.java.security.OwaspA01
- org.openrewrite.java.security.OwaspA02
- org.openrewrite.java.security.OwaspA03
- org.openrewrite.java.security.OwaspA05
- org.openrewrite.java.security.OwaspA06
# Customized OwaspA08 to exclude CSRF protection recipe
# - org.openrewrite.java.security.OwaspA08
- org.openrewrite.java.security.marshalling.InsecureJmsDeserialization
- org.openrewrite.java.security.marshalling.SecureSnakeYamlConstructor
- org.openrewrite.java.security.marshalling.SecureJacksonDefaultTyping
- org.openrewrite.java.security.search.FindJacksonDefaultTypeMapping
- org.openrewrite.java.security.search.FindVulnerableJacksonJsonTypeInfo
- org.openrewrite.java.security.SecureTempFileCreation
- org.openrewrite.java.security.FindTextDirectionChanges
- org.openrewrite.java.security.UseFilesCreateTempDirectory
# Excluded CSRF protection recipe due to stateless session
# - org.openrewrite.java.security.spring.CsrfProtection
---
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