@@ -2046,3 +2046,104 @@ version: "2"
20462046` ` `
20472047
20482048</details>
2049+
2050+ # ## Command Line Flags
2051+
2052+ The following flags have been removed :
2053+
2054+ - ` --disable-all`
2055+ - ` --enable-all`
2056+ - ` -p, --presets`
2057+ - ` --fast`
2058+ - ` -e, --exclude`
2059+ - ` --exclude-case-sensitive`
2060+ - ` --exclude-dirs-use-default`
2061+ - ` --exclude-dirs`
2062+ - ` --exclude-files`
2063+ - ` --exclude-generated`
2064+ - ` --exclude-use-default`
2065+ - ` --go string`
2066+ - ` --sort-order`
2067+ - ` --sort-results`
2068+ - ` --out-format`
2069+
2070+ # ### `--out-format`
2071+
2072+ `--out-format` has been replaced with the following flags :
2073+
2074+ ` ` ` bash
2075+ # Previously 'colored-line-number' and 'line-number'
2076+ --output.text.path
2077+ --output.text.print-linter-name
2078+ --output.text.print-issued-lines
2079+ --output.text.colors
2080+ ` ` `
2081+
2082+ ` ` ` bash
2083+ # Previously 'json'
2084+ --output.json.path
2085+ ` ` `
2086+
2087+ ` ` ` bash
2088+ # Previously 'colored-tab' and 'tab'
2089+ --output.tab.path
2090+ --output.tab.print-linter-name
2091+ --output.tab.colors
2092+ ` ` `
2093+
2094+ ` ` ` bash
2095+ # Previously 'html'
2096+ --output.html.path
2097+ ` ` `
2098+
2099+ ` ` ` bash
2100+ # Previously 'checkstyle'
2101+ --output.checkstyle.path
2102+ ` ` `
2103+
2104+ ` ` ` bash
2105+ # Previously 'code-climate'
2106+ --output.code-climate.path
2107+ ` ` `
2108+
2109+ ` ` ` bash
2110+ # Previously 'junit-xml' and 'junit-xml-extended'
2111+ --output.junit-xml.path
2112+ --output.junit-xml.extended
2113+ ` ` `
2114+
2115+ ` ` ` bash
2116+ # Previously 'teamcity'
2117+ --output.teamcity.path
2118+ ` ` `
2119+
2120+ ` ` ` bash
2121+ # Previously 'sarif'
2122+ --output.sarif.path
2123+ ` ` `
2124+
2125+ # ### `--disable-all` and `--enable-all`
2126+
2127+ ` --disable-all` has been replaced with `--default=none`.
2128+
2129+ ` --enable-all` has been replaced with `--default=all`.
2130+
2131+ # ### Example
2132+
2133+ <details>
2134+ <summary style={{color : ' #737380' , paddingLeft: '1rem'}}>v1</summary>
2135+
2136+ ` ` ` bash
2137+ golangci-lint run --disable-all --enable-only=govet --out-format=colored-tab --sort-order=linter --sort-results
2138+ ` ` `
2139+
2140+ </details>
2141+
2142+ <details>
2143+ <summary style={{color : ' #737380' , paddingLeft: '1rem'}}>v2</summary>
2144+
2145+ ` ` ` bash
2146+ golangci-lint run --default=none --enable-only=govet --out-format=colored-tab
2147+ ` ` `
2148+
2149+ </details>
0 commit comments