Skip to content

Commit

Permalink
Merge pull request #72 from anboralabs/restyled/fix-formatting
Browse files Browse the repository at this point in the history
Restyle Fix formatting
  • Loading branch information
dalgarins authored Jun 8, 2021
2 parents 419bd16 + 74069f5 commit f3f578d
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ data class FirebaseFmtContext private constructor(
}
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ fun FirebaseFormatterBlock.getAlignmentStrategy(): FirebaseAlignmentStrategy = w
}

fun FirebaseAlignmentStrategy.alignUnlessBlockDelim(): FirebaseAlignmentStrategy =
alignIf { c, p, _ -> !c.isDelimiterOfCurrentBlock(p) }
alignIf { c, p, _ -> !c.isDelimiterOfCurrentBlock(p) }
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ fun createSpacingBuilder(commonSettings: CodeStyleSettings): SpacingBuilder {
.after(EQEQ).spacing(1, 1, 0, false, 0)
.after(NE).spacing(1, 1, 0, false, 0)
.before(DOT_COMMA).spacing(0,0,0,false,0)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ fun ASTNode.isDelimiterOfCurrentBlock(parent: ASTNode?): Boolean {
LP, RP -> parentType in PAREN_DELIMITED_BLOCKS
else -> false
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ class FirebaseCodeStyleConfigurable(
): CodeStyleAbstractPanel = FirebaseCodeStyleMainPanel(currentSettings, settings)

override fun getHelpTopic(): String? = null
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ class FirebaseCodeStyleMainPanel(
addIndentOptionsTab(settings)
addSpacesTab(settings)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ import com.intellij.psi.codeStyle.CustomCodeStyleSettings

class FirebaseCodeStyleSettings(
container: CodeStyleSettings?
): CustomCodeStyleSettings("FirebaseCodeStyleSettings", container)
): CustomCodeStyleSettings("FirebaseCodeStyleSettings", container)
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ object FirebaseCodeStyleSettingsProvider: CodeStyleSettingsProvider() {
settings: CodeStyleSettings,
originalSettings: CodeStyleSettings?
): Configurable = FirebaseCodeStyleConfigurable(settings, originalSettings)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ object FirebaseLanguageCodeStyleSettingProvider: LanguageCodeStyleSettingsProvid
}

override fun getIndentOptionsEditor(): IndentOptionsEditor = SmartIndentOptionsEditor()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ object FirebaseFileType: LanguageFileType(FirebaseRulesLanguage) {

override fun getIcon(): Icon = FirebaseIcons.FILE

}
}

0 comments on commit f3f578d

Please sign in to comment.