First PR submission, code format check failed

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: 第一次提交pr,代码格式检查不通过

| username: TiDBer_wFAYCzyg

Are there any plugins that can quickly fix code formatting issues in a PR?

| username: pingyu | Original post link

Try make fmt.

| username: TiDBer_wFAYCzyg | Original post link

What is this? It seems that executing directly in the directory doesn’t work.

| username: TiDBer_jYQINSnf | Original post link

For Go, I use go format. For other languages, I use VS Code to format.

| username: pingyu | Original post link

What is the output after execution?

| username: TiDBer_wFAYCzyg | Original post link

There is an extra blank line. This kind.

| username: pingyu | Original post link

I don’t quite understand.
Could you please post the PR link?

| username: Tank001 | Original post link

I didn’t understand it either, haven’t encountered it before :innocent:

| username: buchuitoudegou | Original post link

Which repository was submitted? Generally, plugins like gofmt are sufficient. Moreover, most repositories should have a make check command to perform lint checks.

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.