@@ -43,12 +43,16 @@ Studio Code][vscode-task].
4343## 2. Making changes
4444
4545- ** Code style** - Try to maintain the existing code style where possible. Go
46- code should be formatted by [ ` gofumpt ` ] [ gofumpt ] and linted using
47- [ ` golangci-lint ` ] [ golangci-lint ] . Any Markdown or TypeScript files should be
48- formatted and linted by [ Prettier] [ prettier ] . This style is enforced by our CI
49- to ensure that we have a consistent style across the project. You can use the
50- ` task lint ` command to lint the code locally and the ` task lint:fix ` command
51- to automatically fix any issues that are found.
46+ code should be formatted and linted by [ ` golangci-lint ` ] [ golangci-lint ] . This
47+ wraps the [ ` gofumpt ` ] [ gofumpt ] and [ ` gci ` ] [ gci ] formatters and a number of
48+ linters. We recommend that you take a look at the [ golangci-lint
49+ docs] [ golangci-lint-docs ] for a guide on how to setup your editor to
50+ auto-format your code. Any Markdown or TypeScript files should be formatted
51+ and linted by [ Prettier] [ prettier ] . This style is enforced by our CI to ensure
52+ that we have a consistent style across the project. You can use the `task
53+ lint` command to lint the code locally and the ` task lint:fix` command to try
54+ to automatically fix any issues that are found. You can also use the `task
55+ fmt` command to auto-format the files if your editor doesn't do it for you.
5256- ** Documentation** - Ensure that you add/update any relevant documentation. See
5357 the [ updating documentation] ( #updating-documentation ) section below.
5458- ** Tests** - Ensure that you add/update any relevant tests and that all tests
@@ -73,8 +77,9 @@ install the extension.
7377Task uses [ Docusaurus] [ docusaurus ] to host a documentation server. The code for
7478this is located in the core Task repository. This can be setup and run locally
7579by using ` task website ` (requires ` nodejs ` & ` yarn ` ). All content is written in
76- Markdown and is located in the ` website/docs ` directory. All Markdown documents
77- should have an 80 character line wrap limit (enforced by Prettier).
80+ [ MDX] [ mdx ] (an extension of Markdown) and is located in the ` website/docs `
81+ directory. All Markdown documents should have an 80 character line wrap limit
82+ (enforced by Prettier).
7883
7984When making a change, consider whether a change to the [ Usage Guide] ( /usage ) is
8085necessary. This document contains descriptions and examples of how to use Task
@@ -154,7 +159,9 @@ If you have questions, feel free to ask them in the `#help` forum channel on our
154159[ vscode-task ] : https://github.com/go-task/vscode-task
155160[ go ] : https://go.dev
156161[ gofumpt ] : https://github.com/mvdan/gofumpt
162+ [ gci ] : https://github.com/daixiang0/gci
157163[ golangci-lint ] : https://golangci-lint.run
164+ [ golangci-lint-docs ] : https://golangci-lint.run/welcome/integrations/
158165[ prettier ] : https://prettier.io
159166[ nodejs ] : https://nodejs.org/en/
160167[ yarn ] : https://yarnpkg.com/
@@ -166,4 +173,5 @@ If you have questions, feel free to ask them in the `#help` forum channel on our
166173[ discord-server ] : https://discord.gg/6TY36E39UK
167174[ discussion ] : https://github.com/go-task/task/discussions
168175[ conventional-commits ] : https://www.conventionalcommits.org
176+ [ mdx ] : https://mdxjs.com/
169177{ /* prettier-ignore-end */ }
0 commit comments