@@ -2070,6 +2070,8 @@ The following flags have been removed:
20702070- ` --sort-order`
20712071- ` --sort-results`
20722072- ` --out-format`
2073+ - ` --print-issued-lines`
2074+ - ` --print-linter-name`
20732075
20742076# ### `--out-format`
20752077
@@ -2126,13 +2128,23 @@ The following flags have been removed:
21262128--output.sarif.path
21272129` ` `
21282130
2131+ # ### `--print-issued-lines`
2132+
2133+ ` --print-issued-lines` has been replaced with `--output.text.print-issued-lines`.
2134+
2135+ # ### `--print-linter-name`
2136+
2137+ ` --print-linter-name` has been replaced with `--output.text.print-linter-name` or `--output.tab.print-linter-name`.
2138+
21292139# ### `--disable-all` and `--enable-all`
21302140
21312141` --disable-all` has been replaced with `--default=none`.
21322142
21332143` --enable-all` has been replaced with `--default=all`.
21342144
2135- # ### Example
2145+ # ### Examples
2146+
2147+ Run only the `govet` linter, output results to stdout in JSON format, and sort results :
21362148
21372149<details>
21382150 <summary style={{color : ' #737380' , paddingLeft: '1rem'}}>v1</summary>
@@ -2151,3 +2163,23 @@ golangci-lint run --default=none --enable=govet --output.json.path=stdout
21512163` ` `
21522164
21532165</details>
2166+
2167+ Do not print issued lines, output results to stdout without colors in text format, and to `gl-code-quality-report.json` file in Code Climate's format :
2168+
2169+ <details>
2170+ <summary style={{color : ' #737380' , paddingLeft: '1rem'}}>v1</summary>
2171+
2172+ ` ` ` bash
2173+ golangci-lint run --print-issued-lines=false --out-format code-climate:gl-code-quality-report.json,line-number
2174+ ` ` `
2175+
2176+ </details>
2177+
2178+ <details>
2179+ <summary style={{color : ' #737380' , paddingLeft: '1rem'}}>v2</summary>
2180+
2181+ ` ` ` bash
2182+ golangci-lint run --output.text.path=stdout --output.text.colors=false --output.text.print-issued-lines=false --output.code-climate.path=gl-code-quality-report.json
2183+ ` ` `
2184+
2185+ </details>
0 commit comments