You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The use of .head or .last may yield an exception if the collection is empty.
In unit tests, however, head and last should perhaps be permitted.
Codacy flags the use of head and last in Unit Tests as a slide in code quality.
Actual behaviour:
Codacy should perhaps allow *.spec to use .head and .last without flagging these as a slide in code quality.
Steps to reproduce behaviour:
It should be possible to obtain a codacy report from the sbt shell:
Expected behaviour:
The use of
.head
or.last
may yield an exception if the collection is empty.In unit tests, however,
head
andlast
should perhaps be permitted.Codacy flags the use of head and last in Unit Tests as a slide in code quality.
Actual behaviour:
Codacy should perhaps allow
*.spec
to use .head and .last without flagging these as a slide in code quality.Steps to reproduce behaviour:
It should be possible to obtain a codacy report from the sbt shell:
This github issue depends on completion of Issue 25
The text was updated successfully, but these errors were encountered: