Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Respect the feature flag
  • Loading branch information
iamdanfox committed Sep 9, 2019
commit 8409959d0a2b3ff386927da54bb8aeb166abfbc3
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,12 @@ class BaselineIdea extends AbstractBaselinePlugin {
project.logger.debug "Baseline: Skipping IDEA eclipse format configuration since baseline-format not applied"
return
}

if (!BaselineFormat.eclipseFormattingEnabled(project)) {
project.logger.debug "Baseline: Not configuring EclipseCodeFormatter because com.palantir.baseline-format.eclipse is not enabled in gradle.properties"
return
}

project.logger.debug "Baseline: Configuring EclipseCodeFormatter plugin for Idea"
node.append(new XmlParser().parseText("""
<component name="EclipseCodeFormatterProjectSettings">
Expand Down