Skip to content
This repository was archived by the owner on May 12, 2025. It is now read-only.

Commit b01642a

Browse files
authored
Do not run RemoveUnusedLocalVariables on PRs for KotlinTypeGoat (#625)
1 parent a6ab340 commit b01642a

File tree

2 files changed

+45
-1
lines changed

2 files changed

+45
-1
lines changed

.github/workflows/receive-pr.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,6 @@ concurrency:
1414
# Since this pull request receives untrusted code, we should **NOT** have any secrets in the environment.
1515
jobs:
1616
upload-patch:
17-
uses: openrewrite/gh-automation/.github/workflows/receive-pr.yml@main
17+
uses: openrewrite/gh-automation/.github/workflows/receive-pr.yml@main
18+
with:
19+
recipe: 'org.openrewrite.recipes.OpenRewriteBestPracticesSubset'

rewrite.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#
2+
# Copyright 2025 the original author or authors.
3+
# <p>
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
# <p>
8+
# https://www.apache.org/licenses/LICENSE-2.0
9+
# <p>
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
---
17+
# Apply a subset of best practices to OpenRewrite recipes; typically run before committing changes.
18+
# Any differences produced by this recipe will result in code suggestion comments on pull requests.
19+
---
20+
type: specs.openrewrite.org/v1beta/recipe
21+
name: org.openrewrite.recipes.OpenRewriteBestPracticesSubset
22+
displayName: OpenRewrite best practices
23+
description: Best practices for OpenRewrite recipe development.
24+
recipeList:
25+
- org.openrewrite.recipes.JavaRecipeBestPractices
26+
- org.openrewrite.recipes.RecipeTestingBestPractices
27+
- org.openrewrite.recipes.RecipeNullabilityBestPractices
28+
- org.openrewrite.java.OrderImports
29+
- org.openrewrite.java.RemoveUnusedImports
30+
- org.openrewrite.java.format.EmptyNewlineAtEndOfFile
31+
- org.openrewrite.java.format.RemoveTrailingWhitespace
32+
- org.openrewrite.staticanalysis.CompareEnumsWithEqualityOperator
33+
- org.openrewrite.staticanalysis.InlineVariable
34+
- org.openrewrite.staticanalysis.LambdaBlockToExpression
35+
- org.openrewrite.staticanalysis.MissingOverrideAnnotation
36+
- org.openrewrite.staticanalysis.OperatorWrap:
37+
wrapOption: EOL
38+
#- org.openrewrite.staticanalysis.RemoveUnusedLocalVariables
39+
- org.openrewrite.staticanalysis.RemoveUnusedPrivateFields
40+
- org.openrewrite.staticanalysis.RemoveUnusedPrivateMethods
41+
#- org.openrewrite.staticanalysis.UnnecessaryThrows
42+
- org.openrewrite.staticanalysis.UseDiamondOperator

0 commit comments

Comments
 (0)