From 209654f19e69932fcc35fade290b878f85f30d81 Mon Sep 17 00:00:00 2001
From: Reinier Zwitserloot lombok.config file with their preferences in a workspace or project root directory, with the special config.stopBubbling = true key to tell lombok this is your root directory. You can then create lombok.config files in any subdirectories (generally representing projects or source packages) with different settings.
An up to date list of all configuration keys supported by your version of lombok can be generated by running: -
java -jar lombok.jar config -g --verbosejava -jar lombok.jar config -g --verbose
+ lombok.config file.
@@ -42,7 +44,7 @@
Configuration files are hierarchical: Any configuration setting applies to all source files in that directory, and all source files in subdirectories, but configuration settings closer to the source file take precedence. For example, if you have in /Users/me/projects/lombok.config the following:
lombok.log.fieldName = foobar
- /Users/me/projects/MyProject/lombok.config you have:
lombok.log.fieldName = xyzzy
@@ -61,14 +63,27 @@
lombok.accessors.prefix += m_
+ Comments can be included in lombok.config files; any line that starts with # is considered a comment.
+
To stop lombok from looking at parent directories for more configuration files, the special key:
config.stopBubbling = true
- Comments can be included in lombok.config files; any line that starts with # is considered a comment.
-
@javax.annotation.Generated annotations to all generated nodes where possible. You can stop this with:
+ lombok.addGeneratedAnnotation = false
+
+ Lombok can add the @SuppressFBWarnings annotation which is useful if you want to run FindBugs on your class files. To enable this feature, make sure findbugs is on the classpath when you compile, and add the following config key:
+
lombok.extern.findbugs.addSuppressFBWarnings = true
+