Skip to content

Commit

Permalink
fix: config mappings take priority
Browse files Browse the repository at this point in the history
Signed-off-by: tison <wander4096@gmail.com>
  • Loading branch information
tisonkun committed Apr 1, 2023
1 parent 2094209 commit 74fc828
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,10 @@ public Report call() {
config.isUseDefaultExcludes());
final String[] selectedFiles = selection.getSelectedFiles();

final Set<Mapping> mapping = new HashSet<>();
final Set<Mapping> mapping = new HashSet<>(config.getMapping());
if (config.isUseDefaultMapping()) {
mapping.addAll(DocumentType.defaultMapping());
}
mapping.addAll(config.getMapping());

final Map<String, String> globalProperties = new LinkedHashMap<>();
globalProperties.put("builtin.thisYear", Year.now().toString());
Expand Down

0 comments on commit 74fc828

Please sign in to comment.