Skip to content

Commit c7c2bd4

Browse files
committed
docs: add section about flags migration
1 parent 0ad84c8 commit c7c2bd4

File tree

1 file changed

+81
-0
lines changed

1 file changed

+81
-0
lines changed

docs/src/docs/product/migration-guide.mdx

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2046,3 +2046,84 @@ version: "2"
20462046
```
20472047

20482048
</details>
2049+
2050+
### Flags
2051+
2052+
The following flags has 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 to 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+
```bash
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 by `--default=none`.
2128+
2129+
`--enable-all` has been replaced by `--default=all`.

0 commit comments

Comments
 (0)