The upstreamableDecl
linter #
The upstreamableDecl
linter detects declarations that could be moved to a file higher up in the
import hierarchy. This is intended to assist with splitting files.
Does this declaration come from the current file?
Equations
- Lean.Name.isLocal env decl = (env.getModuleIdxFor? decl).isNone
Instances For
Does the declaration with this name depend on def
s in the current file?
Equations
- One or more equations did not get rendered due to their size.
Instances For
The upstreamableDecl
linter detects declarations that could be moved to a file higher up in the
import hierarchy. If this is the case, it emits a warning.
This is intended to assist with splitting files.
The linter does not place a warning on any declaration depending on a definition in the current file (while it does place a warning on the definition itself), since we often create a new file for a definition on purpose.
The upstreamableDecl
linter detects declarations that could be moved to a file higher up in the
import hierarchy. If this is the case, it emits a warning.
This is intended to assist with splitting files.
The linter does not place a warning on any declaration depending on a definition in the current file (while it does place a warning on the definition itself), since we often create a new file for a definition on purpose.
Equations
- One or more equations did not get rendered due to their size.