mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
There are unfortunately a few false-positives, because this isn't aware of type information of course.
19 lines
562 B
YAML
19 lines
562 B
YAML
id: no-context-format
|
|
valid:
|
|
- 'foo.context("static string")'
|
|
- 'foo.with_context(|| format!("error: {}", msg))'
|
|
- 'foo.context(msg)'
|
|
invalid:
|
|
- 'foo.context(format!("error: {}", msg))'
|
|
- 'foo.context(format!("simple message"))'
|
|
- 'foo.bar().context(format!("{} failed", name))'
|
|
---
|
|
id: no-context-turbofmt
|
|
valid:
|
|
- 'foo.context("static string")'
|
|
- 'foo.context(msg)'
|
|
invalid:
|
|
- 'foo.context(turbofmt!("error: {}", msg).await?)'
|
|
- 'foo.context(turbofmt!("simple message").await?)'
|
|
- 'foo.bar().context(turbofmt!("{} failed", name).await?)'
|