summaryrefslogtreecommitdiff
path: root/flycheck-android-experimental.el
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2022-11-08 17:59:12 +0100
committerJoel Klinghed <the_jk@spawned.biz>2022-11-08 17:59:12 +0100
commit4300aaa1d024feaf234491070545edb8be6cfe10 (patch)
tree00e33325e430b747ee61a06cad91602900166d60 /flycheck-android-experimental.el
parent63e1d4ba62fb9b05e91bf0c0abc2729db10032bf (diff)
Stop trying to share options between two checkers, it does not work
Diffstat (limited to 'flycheck-android-experimental.el')
-rw-r--r--flycheck-android-experimental.el26
1 files changed, 18 insertions, 8 deletions
diff --git a/flycheck-android-experimental.el b/flycheck-android-experimental.el
index 601a180..658e48c 100644
--- a/flycheck-android-experimental.el
+++ b/flycheck-android-experimental.el
@@ -34,15 +34,25 @@
:safe #'stringp)
(make-variable-buffer-local 'flycheck-android-java-checkstyle-properties)
-(flycheck-def-option-var flycheck-android-variant nil '(android-java android-kotlin)
+(flycheck-def-option-var flycheck-android-java-variant nil android-java
"Variant to select instead of first."
:safe #'stringp)
-(make-variable-buffer-local 'flycheck-android-variant)
+(make-variable-buffer-local 'flycheck-android-java-variant)
-(flycheck-def-option-var flycheck-android-skip-gen nil '(android-java android-kotlin)
+(flycheck-def-option-var flycheck-android-kotlin-variant nil android-kotlin
+ "Variant to select instead of first."
+ :safe #'stringp)
+(make-variable-buffer-local 'flycheck-android-kotlin-variant)
+
+(flycheck-def-option-var flycheck-android-java-skip-gen nil android-java
+ "Set to non-nil if generate*Sources task should not be run before checking."
+ :safe #'stringp)
+(make-variable-buffer-local 'flycheck-android-java-skip-gen)
+
+(flycheck-def-option-var flycheck-android-kotlin-skip-gen nil android-kotlin
"Set to non-nil if generate*Sources task should not be run before checking."
:safe #'stringp)
-(make-variable-buffer-local 'flycheck-android-skip-gen)
+(make-variable-buffer-local 'flycheck-android-kotlin-skip-gen)
(flycheck-def-option-var flycheck-android-kotlin-detekt-cli nil android-kotlin
"Path to detekt-cli."
@@ -67,9 +77,9 @@
(option "--checkstyle-properties="
flycheck-android-java-checkstyle-properties concat)
(option "--variant="
- flycheck-android-variant concat)
+ flycheck-android-java-variant concat)
(option-flag "--skip-gen"
- flycheck-android-skip-gen)
+ flycheck-android-java-skip-gen)
(eval (flycheck-android-get-sessiondir))
(eval buffer-file-name)
source)
@@ -102,9 +112,9 @@
(option "--detekt-config="
flycheck-android-kotlin-detekt-config concat)
(option "--variant="
- flycheck-android-variant concat)
+ flycheck-android-kotlin-variant concat)
(option-flag "--skip-gen"
- flycheck-android-skip-gen)
+ flycheck-android-kotlin-skip-gen)
(eval (flycheck-android-get-sessiondir))
(eval buffer-file-name)
source)