Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RequireMsgSym[_,_,Info] and more #186

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tribbloid
Copy link

@tribbloid tribbloid commented Apr 19, 2021

This patch has the following 2 changes:

  1. add Info as a validation option for RequireMsgSym

  2. Warn and Info validation options for RequireMsgSym now also invoke scala compiler FontEnds logging.

The purpose of 2 is to allow warning and info logs to be identified by any build & code inspection systems, e.g. bloop language server in the following screenshot:

Screenshot from 2021-04-19 18-17-37

Unfortunately at this moment only INFO seems to be working. WARNING will be omitted by both scalac & bloop. It is probably caused by scala/bug#6910.

If you know the reason for this behaviour please let me know, I'll correct it

Warn and Info validation options for RequireMsgSym now also invoke scala compiler FontEnds logging.
@codecov
Copy link

codecov bot commented Apr 19, 2021

Codecov Report

Merging #186 (630137b) into master (f71754a) will decrease coverage by 1.00%.
The diff coverage is 20.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #186      +/-   ##
==========================================
- Coverage   91.57%   90.56%   -1.01%     
==========================================
  Files          10       10              
  Lines         700      710      +10     
  Branches       11        9       -2     
==========================================
+ Hits          641      643       +2     
- Misses         59       67       +8     
Impacted Files Coverage Δ
src/main/scala/singleton/ops/package.scala 100.00% <ø> (ø)
.../main/scala/singleton/ops/impl/GeneralMacros.scala 90.11% <20.00%> (-1.14%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f71754a...630137b. Read the comment docs.

tribbloid pushed a commit to tribbloid/shapesafe that referenced this pull request Apr 21, 2021
@tribbloid
Copy link
Author

Sorry I don't know how to write unit test for this case, It appears that there is no coverage for Warn symbol as well, so I doubt if it could be tested

@soronpo
Copy link
Collaborator

soronpo commented Apr 21, 2021

Thanks for the PR. I'll only have time to review it next month.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants