Skill: Coding conventions, code formatting and linting
Competency pathway
Understanding and applying coding standards, using code formatting tools and linters to ensure code quality consistency and readability.
Learning resources
| Name | Description | Language | Provider |
|---|---|---|---|
| Code Styling and Linting - The Turing Way | Handbook guidance on code formatting, style conventions and linting tools to improve readability and consistency. | English | The Turing Way |
| Building Better Research Software | Training materials on improving research software through practical software engineering practices and maintainable development approaches. | English | Software Carpentry |
Computational tools
| Name | Description |
|---|---|
| Linters | Tools that check source code against a set of style guidelines. |
| Black | The uncompromising Python code formatter. |
| lintr | The canonical way to configure R projects and packages for linting. |
| styler | An R package that formats your code according to the tidyverse style guide. |
| Ruff | An extremely fast Python linter and code formatter. |
| JSLint | A static code analysis tool used in software development for checking JavaScript source code. |
| ESLint | A static code analysis tool for identifying problematic patterns found in JavaScript code. |
Methodologies
| Name | Description |
|---|---|
| Static program analysis | Examining code without executing it to find errors or style issues. |