Prevent import of Micrometer class outside of the Actuator
Closes gh-25760
This commit is contained in:
parent
2b29b99984
commit
f8c1a73bf2
|
|
@ -1,8 +1,8 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<!DOCTYPE import-control PUBLIC "-//Checkstyle//DTD ImportControl Configuration 1.4//EN" "https://checkstyle.org/dtds/import_control_1_4.dtd">
|
<!DOCTYPE import-control PUBLIC "-//Checkstyle//DTD ImportControl Configuration 1.4//EN" "https://checkstyle.org/dtds/import_control_1_4.dtd">
|
||||||
<import-control pkg="org.springframework.boot">
|
<import-control pkg="org.springframework.boot">
|
||||||
|
<disallow pkg="io.micrometer" />
|
||||||
<allow pkg=".*" regex="true" />
|
<allow pkg=".*" regex="true" />
|
||||||
|
|
||||||
<subpackage name="autoconfigure">
|
<subpackage name="autoconfigure">
|
||||||
<subpackage name="web">
|
<subpackage name="web">
|
||||||
<allow pkg="org.springframework.boot.web.server" />
|
<allow pkg="org.springframework.boot.web.server" />
|
||||||
|
|
@ -38,8 +38,10 @@
|
||||||
</subpackage>
|
</subpackage>
|
||||||
</subpackage>
|
</subpackage>
|
||||||
|
|
||||||
|
<subpackage name="actuate">
|
||||||
|
<allow pkg="io.micrometer" />
|
||||||
<!-- Endpoint infrastructure -->
|
<!-- Endpoint infrastructure -->
|
||||||
<subpackage name="actuate.endpoint">
|
<subpackage name="endpoint">
|
||||||
<disallow pkg="org.springframework.http" />
|
<disallow pkg="org.springframework.http" />
|
||||||
<disallow pkg="org.springframework.web" />
|
<disallow pkg="org.springframework.web" />
|
||||||
<subpackage name="web">
|
<subpackage name="web">
|
||||||
|
|
@ -53,6 +55,11 @@
|
||||||
</subpackage>
|
</subpackage>
|
||||||
</subpackage>
|
</subpackage>
|
||||||
</subpackage>
|
</subpackage>
|
||||||
|
</subpackage>
|
||||||
|
|
||||||
|
<subpackage name="docs.actuate">
|
||||||
|
<allow pkg="io.micrometer" />
|
||||||
|
</subpackage>
|
||||||
|
|
||||||
<!-- Logging -->
|
<!-- Logging -->
|
||||||
<subpackage name="logging">
|
<subpackage name="logging">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue