Linting is syntax code to verify that the syntax and format are correct and to follow good practice. Linter will tell you if your indentation is incorrect or if you add spaces around your statements =. Linter may also warn you if your code contains well-known security flaws or code smells.
Compilation is a parsing to check the syntax and convert the code to another language (usually faster).
So what's the difference?
Compilation:
- syntax check
- code translated into another language
dust generation:
- syntax check
- formatting style and analysis
- (optional) cheating code / detecting incorrect code
- (optional) safety / performance analysis
source
share