File tree Expand file tree Collapse file tree 11 files changed +163
-11
lines changed
main/java/org/checkstyle/autofix
test/java/org/checkstyle/autofix Expand file tree Collapse file tree 11 files changed +163
-11
lines changed Original file line number Diff line number Diff line change 1-
21checkstyle.suppressions.file =config/suppressions.xml
32checkstyle.suppressions-xpath.file =config/suppressions.xml
4- checkstyle.header.file =https://raw.githubusercontent.com/checkstyle/checkstyle/master/ config/java. header
5- checkstyle.regexp.header.file =https://raw.githubusercontent.com/checkstyle/checkstyle/master/ config/java- regexp. header
3+ checkstyle.header.file =config/header.txt
4+ checkstyle.regexp.header.file =config/regexp- header.txt
65checkstyle.importcontrol.file =config/import-control.xml
76checkstyle.importcontroltest.file =config/import-control-test.xml
8- checkstyle.java.version =11
7+ checkstyle.java.version =11
Original file line number Diff line number Diff line change 1+ ///////////////////////////////////////////////////////////////////////////////////////////////
2+ // checkstyle-openrewrite-recipes: Automatically fix Checkstyle violations with OpenRewrite.
3+ // Copyright (C) 2025 The Checkstyle OpenRewrite Recipes Authors
4+ //
5+ // Licensed under the Apache License, Version 2.0 (the "License");
6+ // you may not use this file except in compliance with the License.
7+ // You may obtain a copy of the License at
8+ //
9+ // http://www.apache.org/licenses/LICENSE-2.0
10+ //
11+ // Unless required by applicable law or agreed to in writing, software
12+ // distributed under the License is distributed on an "AS IS" BASIS,
13+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+ // See the License for the specific language governing permissions and
15+ // limitations under the License.
16+ ///////////////////////////////////////////////////////////////////////////////////////////////
Original file line number Diff line number Diff line change 1+ ^/{95}$
2+ ^// checkstyle-openrewrite-recipes: Automatically fix Checkstyle violations with OpenRewrite\.$
3+ ^// Copyright \(C\) 2025 The Checkstyle OpenRewrite Recipes Authors$
4+ ^//$
5+ ^// Licensed under the Apache License, Version 2\.0 \(the "License"\);$
6+ ^// you may not use this file except in compliance with the License\.$
7+ ^// You may obtain a copy of the License at$
8+ ^//$
9+ ^// http://www\.apache\.org/licenses/LICENSE-2\.0$
10+ ^//$
11+ ^// Unless required by applicable law or agreed to in writing, software$
12+ ^// distributed under the License is distributed on an "AS IS" BASIS,$
13+ ^// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\.$
14+ ^// See the License for the specific language governing permissions and$
15+ ^// limitations under the License\.$
16+ ^/{95}$
Original file line number Diff line number Diff line change 44 "-//Checkstyle//DTD SuppressionFilter Configuration 1.1//EN"
55 "https://checkstyle.org/dtds/suppressions_1_1.dtd">
66
7- <suppressions >
8- <suppress checks =" HeaderCheck" files =" .*" />
9- <suppress checks =" RegexpHeader" files =" .*" />
10- <suppress checks =" header" files =" .*\.java" />
11- <suppress checks =" multiFileRegexpHeader" files =" .*" />
12- <suppress checks =" JavadocPackage" files =" .*" />
13- </suppressions >
7+ <suppressions />
Original file line number Diff line number Diff line change 1+ ///////////////////////////////////////////////////////////////////////////////////////////////
2+ // checkstyle-openrewrite-recipes: Automatically fix Checkstyle violations with OpenRewrite.
3+ // Copyright (C) 2025 The Checkstyle OpenRewrite Recipes Authors
4+ //
5+ // Licensed under the Apache License, Version 2.0 (the "License");
6+ // you may not use this file except in compliance with the License.
7+ // You may obtain a copy of the License at
8+ //
9+ // http://www.apache.org/licenses/LICENSE-2.0
10+ //
11+ // Unless required by applicable law or agreed to in writing, software
12+ // distributed under the License is distributed on an "AS IS" BASIS,
13+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+ // See the License for the specific language governing permissions and
15+ // limitations under the License.
16+ ///////////////////////////////////////////////////////////////////////////////////////////////
17+
118package org .checkstyle .autofix ;
219
320import java .util .Collections ;
Original file line number Diff line number Diff line change 1+ ///////////////////////////////////////////////////////////////////////////////////////////////
2+ // checkstyle-openrewrite-recipes: Automatically fix Checkstyle violations with OpenRewrite.
3+ // Copyright (C) 2025 The Checkstyle OpenRewrite Recipes Authors
4+ //
5+ // Licensed under the Apache License, Version 2.0 (the "License");
6+ // you may not use this file except in compliance with the License.
7+ // You may obtain a copy of the License at
8+ //
9+ // http://www.apache.org/licenses/LICENSE-2.0
10+ //
11+ // Unless required by applicable law or agreed to in writing, software
12+ // distributed under the License is distributed on an "AS IS" BASIS,
13+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+ // See the License for the specific language governing permissions and
15+ // limitations under the License.
16+ ///////////////////////////////////////////////////////////////////////////////////////////////
17+
18+ /**
19+ * Checkstyle autofix utilities and core functionality.
20+ */
21+ package org .checkstyle .autofix ;
Original file line number Diff line number Diff line change 1+ ///////////////////////////////////////////////////////////////////////////////////////////////
2+ // checkstyle-openrewrite-recipes: Automatically fix Checkstyle violations with OpenRewrite.
3+ // Copyright (C) 2025 The Checkstyle OpenRewrite Recipes Authors
4+ //
5+ // Licensed under the Apache License, Version 2.0 (the "License");
6+ // you may not use this file except in compliance with the License.
7+ // You may obtain a copy of the License at
8+ //
9+ // http://www.apache.org/licenses/LICENSE-2.0
10+ //
11+ // Unless required by applicable law or agreed to in writing, software
12+ // distributed under the License is distributed on an "AS IS" BASIS,
13+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+ // See the License for the specific language governing permissions and
15+ // limitations under the License.
16+ ///////////////////////////////////////////////////////////////////////////////////////////////
17+
118package org .checkstyle .autofix .recipe ;
219
320import org .openrewrite .ExecutionContext ;
Original file line number Diff line number Diff line change 1+ ///////////////////////////////////////////////////////////////////////////////////////////////
2+ // checkstyle-openrewrite-recipes: Automatically fix Checkstyle violations with OpenRewrite.
3+ // Copyright (C) 2025 The Checkstyle OpenRewrite Recipes Authors
4+ //
5+ // Licensed under the Apache License, Version 2.0 (the "License");
6+ // you may not use this file except in compliance with the License.
7+ // You may obtain a copy of the License at
8+ //
9+ // http://www.apache.org/licenses/LICENSE-2.0
10+ //
11+ // Unless required by applicable law or agreed to in writing, software
12+ // distributed under the License is distributed on an "AS IS" BASIS,
13+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+ // See the License for the specific language governing permissions and
15+ // limitations under the License.
16+ ///////////////////////////////////////////////////////////////////////////////////////////////
17+
18+ /**
19+ * OpenRewrite recipes for automatically fixing Checkstyle violations.
20+ */
21+ package org .checkstyle .autofix .recipe ;
Original file line number Diff line number Diff line change 1+ ///////////////////////////////////////////////////////////////////////////////////////////////
2+ // checkstyle-openrewrite-recipes: Automatically fix Checkstyle violations with OpenRewrite.
3+ // Copyright (C) 2025 The Checkstyle OpenRewrite Recipes Authors
4+ //
5+ // Licensed under the Apache License, Version 2.0 (the "License");
6+ // you may not use this file except in compliance with the License.
7+ // You may obtain a copy of the License at
8+ //
9+ // http://www.apache.org/licenses/LICENSE-2.0
10+ //
11+ // Unless required by applicable law or agreed to in writing, software
12+ // distributed under the License is distributed on an "AS IS" BASIS,
13+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+ // See the License for the specific language governing permissions and
15+ // limitations under the License.
16+ ///////////////////////////////////////////////////////////////////////////////////////////////
17+
118package org .checkstyle .autofix ;
219
320import org .openrewrite .ExecutionContext ;
Original file line number Diff line number Diff line change 1+ ///////////////////////////////////////////////////////////////////////////////////////////////
2+ // checkstyle-openrewrite-recipes: Automatically fix Checkstyle violations with OpenRewrite.
3+ // Copyright (C) 2025 The Checkstyle OpenRewrite Recipes Authors
4+ //
5+ // Licensed under the Apache License, Version 2.0 (the "License");
6+ // you may not use this file except in compliance with the License.
7+ // You may obtain a copy of the License at
8+ //
9+ // http://www.apache.org/licenses/LICENSE-2.0
10+ //
11+ // Unless required by applicable law or agreed to in writing, software
12+ // distributed under the License is distributed on an "AS IS" BASIS,
13+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+ // See the License for the specific language governing permissions and
15+ // limitations under the License.
16+ ///////////////////////////////////////////////////////////////////////////////////////////////
17+
118package org .checkstyle .autofix .recipe ;
219
320import static org .junit .jupiter .api .Assertions .assertDoesNotThrow ;
You can’t perform that action at this time.
0 commit comments