Project

General

Profile

Actions

Architecture #11970

closed

Architecture #11955: Remove most scala compilation warning

Some more warning with -Ywarn-unused:...

Added by François ARMAND almost 7 years ago. Updated almost 7 years ago.

Status:
Released
Priority:
N/A
Category:
Architecture - Code maintenance
Target version:
Effort required:
Name check:
Fix check:
Regression:

Description

I removed some more warning with some more -Y option. Now, one can use:

-deprecation -explaintypes -feature -unchecked -Ypartial-unification  -language:existentials -language:higherKinds -language:implicitConversions 
-Xlint:_,-nullary-unit,-missing-interpolator -Yno-adapted-args -Ywarn-dead-code -Ywarn-extra-implicit -Ywarn-inaccessible -Ywarn-infer-any 
-Ywarn-nullary-override -Ywarn-numeric-widen -Ywarn-unused:imports -Ywarn-unused:locals -Ywarn-unused:privates

And still only get the 5 deprecation warning that are hard to remove.

(we can't yet add these option to our main scala build because rudder-commons / scala-ldap / ldap-inventory have a lot of warnings)

Actions

Also available in: Atom PDF