- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
在此处的文档中https://sorbet.org/docs/adopting#step-4-fix-constant-resolution-errors它指出:
At this point, it’s likely that there are lots of errors in our project, but Sorbet silences them by default. Our next job is to unsilence them and then fix the root causes. Empirically, there are a handful of categories of errors people encounter at this step:
但没有说明如何消除错误
我已经浏览了文档、问题以及之前标记的问题。还尝试过 srb tc -h 和 srb rbi -h 命令,但到目前为止什么也没发现 - 这是否只是将 typed: false 交换为其他设置之一?
最佳答案
答案在这里:https://sorbet.org/docs/static
However, in step (3), most kinds of errors are silenced by default, instead of being reported. To opt into more checks, we use
# typed:
sigils.
所以是的,只需使用更强的严格级别,例如 true
。
关于sorbet - 有关冰糕设置的问题 : How to unsilence the errors in step 4,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56703536/
我是一名优秀的程序员,十分优秀!