checkstyle / checkstyle/eclipse-cs

LeftCurly FormatterSettings missing for LAMBDA

Open
#101 3 comments 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
Java
Stars
105
Forks
65
Avg merge
1d 10h
Merged PRs (30d)
21

Description

Hi,

I use the actual checkstyle plugin (version 8.12.0.201808161509).
It seems, that the transformer to codeformatter does not support the token "LAMBDA".
No errors in Eclipse message log.
The expression will simply be ignored while creating the formatter.

In the code itsself, the curly bracket is marked as wrong formatted. So, this function works correct.

If I'm correct, the following code is missing in the [eclipse-cs/net.sf.eclipsecs.core/src/net/sf/eclipsecs/core/transformer/ctransformerclasses/LeftCurlyTransformer.java](https://github.com/checkstyle/eclipse-cs/blob/master/net.sf.eclipsecs.core/src/net/sf/eclipsecs/core/transformer/ctransformerclasses/LeftCurlyTransformer.java#L55) (Line 77):
` } else if (tok.equals("LAMBDA")) {
userFormatterSetting("brace_position_for_lambda_body", option);
}`

I'm using Eclipse Oxygen.3a (Release 4.7.3a)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.