mirror of
https://github.com/digital-asset/daml.git
synced 2024-11-09 15:37:05 +03:00
4355406259
* set many extra scalac -Xlint options for all Scala projects CHANGELOG_BEGIN CHANGELOG_END * move NoCopy to its own file package.scala:18: warning: it is not recommended to define classes/objects inside of package objects. If possible, define trait NoCopy in package data instead. trait NoCopy { ^ * move more traits, classes, and objects to proper packages - note that `package` is itself a scoping construct, so if your reason is the apparent aesthetic of placing a bunch of things in one `package object`, that is easily remedied by deleting the `object` keyword * fix some type-parameter-shadow warnings - I'm generally in favor of sensible name-shadowing, following the "deliberately hide variables that should not be accessed here" school of thought. But I think type name shadowing isn't quite as valuable and more likely to confuse than general variable shadowing, so have experimentally linted it out. Example warning: EventsTableFlatEventsRangeQueries.scala:11: warning: type parameter Offset defined in trait EventsTableFlatEventsRangeQueries shadows class Offset defined in package v1. You may want to rename your type parameter, or possibly remove it. private[events] sealed trait EventsTableFlatEventsRangeQueries[Offset] { ^ * fix more package-object-classes warnings * fix an inaccessible warning ContractsService.scala:197: warning: method searchDb in class ContractsService references private class ContractsFetch. Classes which cannot access ContractsFetch may be unable to override searchDb. def searchDb(dao: dbbackend.ContractDao, fetch: ContractsFetch)( ^ * enable -Xlint:infer-any - continuing the saga of #6116, #6132 * enable -explaintypes for more detailed type errors * missed header for NoCopy; probably should have left it in the package file * misspelling in comment * revert -Xlint:doc-detached - there are a lot of these fixes, and they are noisy, so shifting to a separate PR - thanks to @leo-da for pointing out |
||
---|---|---|
.. | ||
src | ||
BUILD.bazel | ||
README.md |
JWT (JSON Web Token)
How to generate JWT
TODO