daml/daml-assistant
Stephen Compall 96624a7677
use -Ywarn-unused for all Scala code (#6907)
* add -Ywarn-unused to all scalac options

* remove some unused arguments

* remove some unused definitions

* remove some unused variable names

* suppress some unused variable names

* changeExtension doesn't use baseName

* no changelog

CHANGELOG_BEGIN
CHANGELOG_END

* work around no plugins in scenario interpreter perf tests

* remove many more unused things

* remove more unused things, restore some used things

* remove more unused things, restore a couple signature mistakes

* missed import

* unused argument

* remove more unused loggingContexts

* some unused code in triggers

* some unused code in sandbox and kvutils

* some unused code in repl-service and daml-script

* some unused code in bindings-rxjava tests

* some unused code in triggers runner

* more comments on silent usages

- suggested by @cocreature; thanks

* fix missing reference in TestCommands

* more unused in triggers

* more unused in sandbox

* more unused in daml-script

* more unused in ledger-client tests

* more unused in triggers

* more unused in kvutils

* more unused in daml-script

* more unused in sandbox

* remove unused in ledger-api-test-tool

* suppress final special case for codegen unused warnings

.../com/daml/sample/mymain/ContractIdNT.scala:24: warning: parameter value ev 0 in method ContractIdNT Value is never used
      implicit def `ContractIdNT Value`[a_a1dk](implicit `ev 0`: ` lfdomainapi`.Value[a_a1dk]): ` lfdomainapi`.Value[_root_.com.daml.sample.MyMain.ContractIdNT[a_a1dk]] = {
                                                         ^
.../com/daml/sample/mymain/ContractIdNT.scala:41: warning: parameter value eva_a1dk in method ContractIdNT LfEncodable is never used
      implicit def `ContractIdNT LfEncodable`[a_a1dk](implicit eva_a1dk: ` lfdomainapi`.encoding.LfEncodable[a_a1dk]): ` lfdomainapi`.encoding.LfEncodable[_root_.com.daml.sample.MyMain.ContractIdNT[a_a1dk]] = {
                                                               ^

* one more unused in daml-script

* special scaladoc rules may need silencer, too

* unused in compatibility/sandbox-migration

* more commas, a different way to `find`

- suggested by @remyhaemmerle-da; thanks
2020-08-07 13:16:09 -04:00
..
daml-helper Extend daml new to accept template as an option (#6877) 2020-07-27 16:30:48 +02:00
daml-project-config/DA/Daml/Project Fix damlc test with relative --project-root (#6541) 2020-06-30 16:45:28 +02:00
daml-sdk Split sandbox code into separate packages (#6695) 2020-07-17 17:06:06 +02:00
exe/DA/Daml Trigger service docs and SDK integration basics (#6329) 2020-06-12 18:54:38 +00:00
integration-tests Factor out reproducibility flags for tar and gzip (#6884) 2020-08-05 14:27:14 +00:00
scala-daml-project-config use -Ywarn-unused for all Scala code (#6907) 2020-08-07 13:16:09 -04:00
src/DA/Daml/Assistant Update Bazel 2.1.0 --> 3.3.1 (#6761) 2020-07-23 09:46:04 +02:00
test/DA/Daml/Assistant Use relative symlink in daml install on unix. (#5596) 2020-04-17 13:08:49 +01:00
BUILD.bazel Refactor deployment tests: (#5342) 2020-04-02 10:17:21 +01:00
daml-project-config.cabal update copyright notices to 2020 (#3939) 2020-01-02 21:21:13 +01:00
get-daml.sh replace DAML Authors with DA in copyright headers (#5228) 2020-03-27 01:26:10 +01:00