Skip to content

Commit

Permalink
feat: add class level package exclude filters
Browse files Browse the repository at this point in the history
  • Loading branch information
chenqi146 committed Feb 18, 2024
1 parent 19cb145 commit 3a8ca0b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/com/ly/doc/template/IRestDocTemplate.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ default List<ApiDoc> processApiData(ProjectDocConfigBuilder projectBuilder, Fram
continue;
}
}
if (StringUtil.isNotEmpty(apiConfig.getPackageExcludeFilters())) {
if (DocUtil.isMatch(apiConfig.getPackageExcludeFilters(), cls)) {
continue;
}
}
// from tag
DocletTag ignoreTag = cls.getTagByName(DocTags.IGNORE);
if (!isEntryPoint(cls, frameworkAnnotations) || Objects.nonNull(ignoreTag)) {
Expand Down

0 comments on commit 3a8ca0b

Please sign in to comment.