Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
f8c1a73b
Commit
f8c1a73b
authored
Mar 23, 2021
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent import of Micrometer class outside of the Actuator
Closes gh-25760
parent
2b29b999
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
13 deletions
+20
-13
import-control.xml
src/checkstyle/import-control.xml
+20
-13
No files found.
src/checkstyle/import-control.xml
View file @
f8c1a73b
<?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,22 +38,29 @@
...
@@ -38,22 +38,29 @@
</subpackage>
</subpackage>
</subpackage>
</subpackage>
<!-- Endpoint infrastructure -->
<subpackage
name=
"actuate"
>
<subpackage
name=
"actuate.endpoint"
>
<allow
pkg=
"io.micrometer"
/>
<disallow
pkg=
"org.springframework.http"
/>
<!-- Endpoint infrastructure -->
<disallow
pkg=
"org.springframework.web"
/>
<subpackage
name=
"endpoint"
>
<subpackage
name=
"web"
>
<disallow
pkg=
"org.springframework.http"
/>
<allow
pkg=
"org.springframework.http"
/>
<disallow
pkg=
"org.springframework.web"
/>
<allow
pkg=
"org.springframework.web"
/>
<subpackage
name=
"web"
>
<subpackage
name=
"servlet"
>
<allow
pkg=
"org.springframework.http"
/>
<disallow
pkg=
"org.springframework.web.reactive"
/>
<allow
pkg=
"org.springframework.web"
/>
</subpackage>
<subpackage
name=
"servlet"
>
<subpackage
name=
"reactive"
>
<disallow
pkg=
"org.springframework.web.reactive"
/>
<disallow
pkg=
"org.springframework.web.servlet"
/>
</subpackage>
<subpackage
name=
"reactive"
>
<disallow
pkg=
"org.springframework.web.servlet"
/>
</subpackage>
</subpackage>
</subpackage>
</subpackage>
</subpackage>
</subpackage>
</subpackage>
<subpackage
name=
"docs.actuate"
>
<allow
pkg=
"io.micrometer"
/>
</subpackage>
<!-- Logging -->
<!-- Logging -->
<subpackage
name=
"logging"
>
<subpackage
name=
"logging"
>
<disallow
pkg=
"org.springframework.context"
/>
<disallow
pkg=
"org.springframework.context"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment