Skip to content

Commit 74f342c

Browse files
anmonteirodnolen
authored andcommitted
CLJS-1795: Support more options in the :closure-warnings compiler option
1 parent f7f2142 commit 74f342c

File tree

1 file changed

+37
-1
lines changed

1 file changed

+37
-1
lines changed

src/main/clojure/cljs/closure.clj

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,29 +97,65 @@
9797

9898
(def warning-types
9999
{:access-controls DiagnosticGroups/ACCESS_CONTROLS
100+
:access-controls-const DiagnosticGroups/ACCESS_CONTROLS_CONST
100101
:ambiguous-function-decl DiagnosticGroups/AMBIGUOUS_FUNCTION_DECL
101-
:debugger-statement-present DiagnosticGroups/DEBUGGER_STATEMENT_PRESENT
102+
:analyzer-checks DiagnosticGroups/ANALYZER_CHECKS
103+
:check-eventful-object-disposal DiagnosticGroups/CHECK_EVENTFUL_OBJECT_DISPOSAL
102104
:check-regexp DiagnosticGroups/CHECK_REGEXP
103105
:check-types DiagnosticGroups/CHECK_TYPES
104106
:check-useless-code DiagnosticGroups/CHECK_USELESS_CODE
105107
:check-variables DiagnosticGroups/CHECK_VARIABLES
108+
:closure-dep-method-usage-checks DiagnosticGroups/CLOSURE_DEP_METHOD_USAGE_CHECKS
109+
:common-js-module-load DiagnosticGroups/COMMON_JS_MODULE_LOAD
110+
:conformance-violations DiagnosticGroups/CONFORMANCE_VIOLATIONS
106111
:const DiagnosticGroups/CONST
107112
:constant-property DiagnosticGroups/CONSTANT_PROPERTY
113+
:debugger-statement-present DiagnosticGroups/DEBUGGER_STATEMENT_PRESENT
108114
:deprecated DiagnosticGroups/DEPRECATED
115+
:deprecated-annotations DiagnosticGroups/DEPRECATED_ANNOTATIONS
109116
:duplicate-message DiagnosticGroups/DUPLICATE_MESSAGE
117+
:duplicate-vars DiagnosticGroups/DUPLICATE_VARS
118+
:es3 DiagnosticGroups/ES3
110119
:es5-strict DiagnosticGroups/ES5_STRICT
120+
:es5-strict-uncommon DiagnosticGroups/ES5_STRICT_UNCOMMON
121+
:es5-strict-reflection DiagnosticGroups/ES5_STRICT_REFLECTION
111122
:externs-validation DiagnosticGroups/EXTERNS_VALIDATION
123+
:extra-require DiagnosticGroups/EXTRA_REQUIRE
112124
:fileoverview-jsdoc DiagnosticGroups/FILEOVERVIEW_JSDOC
125+
:function-params DiagnosticGroups/FUNCTION_PARAMS
113126
:global-this DiagnosticGroups/GLOBAL_THIS
127+
:inferred-const-checks DiagnosticGroups/INFERRED_CONST_CHECKS
114128
:internet-explorer-checks DiagnosticGroups/INTERNET_EXPLORER_CHECKS
115129
:invalid-casts DiagnosticGroups/INVALID_CASTS
130+
:j2cl-checks DiagnosticGroups/J2CL_CHECKS
131+
:late-provide DiagnosticGroups/LATE_PROVIDE
132+
:lint-checks DiagnosticGroups/LINT_CHECKS
133+
:message-descriptions DiagnosticGroups/MESSAGE_DESCRIPTIONS
134+
:misplaced-type-annotation DiagnosticGroups/MISPLACED_TYPE_ANNOTATION
135+
:missing-getcssname DiagnosticGroups/MISSING_GETCSSNAME
136+
:missing-override DiagnosticGroups/MISSING_OVERRIDE
137+
:missing-polyfill DiagnosticGroups/MISSING_POLYFILL
116138
:missing-properties DiagnosticGroups/MISSING_PROPERTIES
139+
:missing-provide DiagnosticGroups/MISSING_PROVIDE
140+
:missing-require DiagnosticGroups/MISSING_REQUIRE
141+
:missing-return DiagnosticGroups/MISSING_RETURN
117142
:non-standard-jsdoc DiagnosticGroups/NON_STANDARD_JSDOC
143+
:report-unknown-types DiagnosticGroups/REPORT_UNKNOWN_TYPES
144+
:strict-missing-require DiagnosticGroups/STRICT_MISSING_REQUIRE
145+
:strict-module-checks DiagnosticGroups/STRICT_MODULE_CHECKS
118146
:strict-module-dep-check DiagnosticGroups/STRICT_MODULE_DEP_CHECK
147+
:strict-requires DiagnosticGroups/STRICT_REQUIRES
148+
:suspicious-code DiagnosticGroups/SUSPICIOUS_CODE
119149
:tweaks DiagnosticGroups/TWEAKS
150+
:type-invalidation DiagnosticGroups/TYPE_INVALIDATION
120151
:undefined-names DiagnosticGroups/UNDEFINED_NAMES
121152
:undefined-variables DiagnosticGroups/UNDEFINED_VARIABLES
153+
:underscore DiagnosticGroups/UNDERSCORE
122154
:unknown-defines DiagnosticGroups/UNKNOWN_DEFINES
155+
:unused-local-variable DiagnosticGroups/UNUSED_LOCAL_VARIABLE
156+
:unused-private-property DiagnosticGroups/UNUSED_PRIVATE_PROPERTY
157+
:use-of-goog-base DiagnosticGroups/USE_OF_GOOG_BASE
158+
:violated-module-dep DiagnosticGroups/VIOLATED_MODULE_DEP
123159
:visiblity DiagnosticGroups/VISIBILITY})
124160

125161
(def known-opts

0 commit comments

Comments
 (0)