public void testCaptureQualifierDotNameArityWithSpaceAroundMultiplication() { assertFormatted( "capture_qualifier_dot_name_arity_with_space_around_multiplication.ex", () -> { temporaryCodeStyleSettings .getCommonSettings(ElixirLanguage.INSTANCE) .SPACE_AROUND_MULTIPLICATIVE_OPERATORS = true; } ); }
private CommonCodeStyleSettings commonCodeStyleSettings(@NotNull ASTNode node) { return CodeStyleSettingsManager .getInstance(node.getPsi().getProject()) .getCurrentSettings() .getCommonSettings(ElixirLanguage.INSTANCE); }
public void testWithSpaceBeforeComma() { myFixture.configureByFile("without_space_before_comma.ex"); temporaryCodeStyleSettings.getCommonSettings(ElixirLanguage.INSTANCE).SPACE_BEFORE_COMMA = true; reformatFixture(); myFixture.checkResultByFile("with_space_before_comma.ex"); }
public void testWithSpaceAroundMultiplicationOperators() { myFixture.configureByFile("without_space_around_multiplication_operators.ex"); temporaryCodeStyleSettings .getCommonSettings(ElixirLanguage.INSTANCE) .SPACE_AROUND_MULTIPLICATIVE_OPERATORS = true; reformatFixture(); myFixture.checkResultByFile("with_space_around_multiplication_operators.ex"); }
public void testWithSpaceWithinParentheses() { myFixture.configureByFile("without_space_within_parentheses.ex"); temporaryCodeStyleSettings.getCommonSettings(ElixirLanguage.INSTANCE).SPACE_WITHIN_PARENTHESES = true; reformatFixture(); myFixture.checkResultByFile("with_space_within_parentheses.ex"); }
public void testWithoutSpaceAfterComma() { myFixture.configureByFile("with_space_after_comma.ex"); temporaryCodeStyleSettings.getCommonSettings(ElixirLanguage.INSTANCE).SPACE_AFTER_COMMA = false; reformatFixture(); myFixture.checkResultByFile("without_space_after_comma.ex"); }
public void testWithoutSpaceBeforeComma() { myFixture.configureByFile("with_space_before_comma.ex"); temporaryCodeStyleSettings.getCommonSettings(ElixirLanguage.INSTANCE).SPACE_BEFORE_COMMA = false; reformatFixture(); myFixture.checkResultByFile("without_space_before_comma.ex"); }
public void testWithSpaceAroundMatchOperator() { myFixture.configureByFile("without_space_around_match_operator.ex"); temporaryCodeStyleSettings.getCommonSettings(ElixirLanguage.INSTANCE).SPACE_AROUND_ASSIGNMENT_OPERATORS = true; reformatFixture(); myFixture.checkResultByFile("with_space_around_match_operator.ex"); }
public void testWithoutSpaceAroundMultiplicationOperators() { myFixture.configureByFile("with_space_around_multiplication_operators.ex"); temporaryCodeStyleSettings .getCommonSettings(ElixirLanguage.INSTANCE) .SPACE_AROUND_MULTIPLICATIVE_OPERATORS = false; reformatFixture(); myFixture.checkResultByFile("without_space_around_multiplication_operators.ex"); }
public void testWithSpaceAroundRelationalOperators() { myFixture.configureByFile("without_space_around_relational_operators.ex"); temporaryCodeStyleSettings.getCommonSettings(ElixirLanguage.INSTANCE).SPACE_AROUND_RELATIONAL_OPERATORS = true; reformatFixture(); myFixture.checkResultByFile("with_space_around_relational_operators.ex"); }
public void testWithSpaceAroundUnaryOperators() { myFixture.configureByFile("without_space_around_unary_operators.ex"); temporaryCodeStyleSettings.getCommonSettings(ElixirLanguage.INSTANCE).SPACE_AROUND_UNARY_OPERATOR = true; reformatFixture(); myFixture.checkResultByFile("with_space_around_unary_operators.ex"); }
public void testWithoutSpaceWithinBrackets() { myFixture.configureByFile("with_space_within_brackets.ex"); temporaryCodeStyleSettings.getCommonSettings(ElixirLanguage.INSTANCE).SPACE_WITHIN_BRACKETS = false; reformatFixture(); myFixture.checkResultByFile("without_space_within_brackets.ex"); }
public void testWithSpaceWithinCurlyBraces() { myFixture.configureByFile("without_space_within_curly_braces.ex"); temporaryCodeStyleSettings.getCommonSettings(ElixirLanguage.INSTANCE).SPACE_WITHIN_BRACES = true; reformatFixture(); myFixture.checkResultByFile("with_space_within_curly_braces.ex"); }
public void testWithoutSpaceWithinCurlyBraces() { myFixture.configureByFile("with_space_within_curly_braces.ex"); temporaryCodeStyleSettings.getCommonSettings(ElixirLanguage.INSTANCE).SPACE_WITHIN_BRACES = false; reformatFixture(); myFixture.checkResultByFile("without_space_within_curly_braces.ex"); }
public void testWithSpaceAroundStabOperator() { myFixture.configureByFile("without_space_around_stab_operator.ex"); temporaryCodeStyleSettings.getCommonSettings(ElixirLanguage.INSTANCE).SPACE_AROUND_LAMBDA_ARROW = true; reformatFixture(); myFixture.checkResultByFile("with_space_around_stab_operator.ex"); }
public void testWithoutSpaceAroundStabOperator() { myFixture.configureByFile("with_space_around_stab_operator.ex"); temporaryCodeStyleSettings.getCommonSettings(ElixirLanguage.INSTANCE).SPACE_AROUND_LAMBDA_ARROW = false; reformatFixture(); myFixture.checkResultByFile("without_space_around_stab_operator.ex"); }
public void testWithoutSpaceAroundUnaryOperators() { myFixture.configureByFile("with_space_around_unary_operators.ex"); temporaryCodeStyleSettings.getCommonSettings(ElixirLanguage.INSTANCE).SPACE_AROUND_UNARY_OPERATOR = false; reformatFixture(); myFixture.checkResultByFile("without_space_around_unary_operators.ex"); }
public void testWithSpaceAroundAdditionOperators() { myFixture.configureByFile("without_space_around_addition_operators.ex"); temporaryCodeStyleSettings.getCommonSettings(ElixirLanguage.INSTANCE).SPACE_AROUND_ADDITIVE_OPERATORS = true; reformatFixture(); myFixture.checkResultByFile("with_space_around_addition_operators.ex"); }
public void testWithoutSpaceAroundAdditionOperators() { myFixture.configureByFile("with_space_around_addition_operators.ex"); temporaryCodeStyleSettings.getCommonSettings(ElixirLanguage.INSTANCE).SPACE_AROUND_ADDITIVE_OPERATORS = false; reformatFixture(); myFixture.checkResultByFile("without_space_around_addition_operators.ex"); }
public void testWithSpaceAroundComparisonOperators() { myFixture.configureByFile("without_space_around_comparison_operators.ex"); temporaryCodeStyleSettings.getCommonSettings(ElixirLanguage.INSTANCE).SPACE_AROUND_EQUALITY_OPERATORS = true; reformatFixture(); myFixture.checkResultByFile("with_space_around_comparison_operators.ex"); }