This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-lang.git
The following commit(s) were added to refs/heads/master by this push: new 73f992309 Don't allow references to the java.sql JPMS module 73f992309 is described below commit 73f99230910010c1056bb6c04b36a04261da8b7d Author: Gary D. Gregory <garydgreg...@gmail.com> AuthorDate: Sat May 17 16:55:41 2025 -0400 Don't allow references to the java.sql JPMS module --- src/conf/checkstyle/import-control.xml | 24 ++++++++++++++++++++++++ src/site/resources/checkstyle/checkstyle.xml | 4 ++++ 2 files changed, 28 insertions(+) diff --git a/src/conf/checkstyle/import-control.xml b/src/conf/checkstyle/import-control.xml new file mode 100644 index 000000000..096767902 --- /dev/null +++ b/src/conf/checkstyle/import-control.xml @@ -0,0 +1,24 @@ +<?xml version="1.0"?> +<!-- +Licensed to the Apache Software Foundation (ASF) under one or more +contributor license agreements. See the NOTICE file distributed with +this work for additional information regarding copyright ownership. +The ASF licenses this file to You under the Apache License, Version 2.0 +(the "License"); you may not use this file except in compliance with +the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +--> +<!DOCTYPE import-control PUBLIC + "-//Checkstyle//DTD ImportControl Configuration 1.4//EN" + "https://checkstyle.org/dtds/import_control_1_4.dtd"> +<import-control pkg="org.apache.commons.lang3" strategyOnMismatch="allowed"> + <disallow pkg="java.sql" /> + <disallow pkg="javax.sql" /> +</import-control> diff --git a/src/site/resources/checkstyle/checkstyle.xml b/src/site/resources/checkstyle/checkstyle.xml index d64a90397..0b11dfd4c 100644 --- a/src/site/resources/checkstyle/checkstyle.xml +++ b/src/site/resources/checkstyle/checkstyle.xml @@ -85,5 +85,9 @@ limitations under the License. <module name="UpperEll" /> <module name="WhitespaceAfter"/> <module name="WhitespaceAround"/> + <module name="ImportControl"> + <property name="file" value="src/conf/checkstyle/import-control.xml"/> + <property name="path" value="^.*[\\/]src[\\/]main[\\/].*$"/> + </module> </module> </module>