Skip to content

Walkthrough: Code Linters and formatters #137

@mahesh-panchal

Description

@mahesh-panchal

How to lint and format code following best practices

  • A linter is like a proofreader who checks your writing for grammar mistakes, logical errors, and awkward phrasing (potential bugs).

  • A formatter is like a typesetter who adjusts the document's margins, font size, and line spacing to make it look clean and consistent.

Potential tools to cover:

  • Nextflow lint and --format
  • Python: Ruff
  • R: Styler and lintr
  • Shell: shellchk
  • Javascript: ESLint and Prettier
  • Markdown: Prettier

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions