|
| 1 | +# 📚 Audits and Groups |
| 2 | + |
| 3 | +The TypeScript plugin analyzes your codebase using the TypeScript compiler to identify potential issues and enforce best practices. |
| 4 | + |
| 5 | +--- |
| 6 | + |
| 7 | +## 🛡️ Audits Overview |
| 8 | + |
| 9 | +The plugin manages issues through structured audits and groups. Each audit targets a specific type of error, ensuring comprehensive analysis. |
| 10 | + |
| 11 | +| **Audit** | **Slug** | |
| 12 | +| ------------------------------------------- | ----------------------------------------- | |
| 13 | +| **Semantic Errors** | `semantic-errors` | |
| 14 | +| **Syntax Errors** | `syntax-errors` | |
| 15 | +| **Configuration Errors** | `configuration-errors` | |
| 16 | +| **Declaration and Language Service Errors** | `declaration-and-language-service-errors` | |
| 17 | +| **Internal Errors** | `internal-errors` | |
| 18 | +| **No Implicit Any Errors** | `no-implicit-any-errors` | |
| 19 | +| **Unknown Codes** | `unknown-codes` | |
| 20 | + |
| 21 | +--- |
| 22 | + |
| 23 | +### Semantic Errors - `semantic-errors` |
| 24 | + |
| 25 | +Errors that occur during type checking and type inference. |
| 26 | + |
| 27 | +- **Slug:** `semantic-errors` |
| 28 | +- **Title:** Semantic Errors |
| 29 | +- **Description:** Errors that occur during type checking and type inference. |
| 30 | +- **Scoring:** The score is based on the number of issues found. |
| 31 | +- **Value:** The value is the number of issues found. |
| 32 | +- **Display Value:** The display value is the number of issues found. |
| 33 | + |
| 34 | +#### Issues |
| 35 | + |
| 36 | +| Severity | Message | Source file | Line(s) | |
| 37 | +| :--------: | :----------------------------------------------------------------------------------- | :------------------------------------------------------------------------ | :-----: | |
| 38 | +| 🚨 _error_ | TS2307: Cannot find module './non-existent' or its corresponding type declarations. | [`path/to/module-resolution.ts`](../path/to/module-resolution.ts) | 2 | |
| 39 | +| 🚨 _error_ | TS2349: This expression is not callable.<br /> Type 'Number' has no call signatures. | [`path/to/strict-function-types.ts`](../path/to/strict-function-types.ts) | 3 | |
| 40 | +| 🚨 _error_ | TS2304: Cannot find name 'NonExistentType'. | [`path/to/cannot-find-module.ts`](../path/to/cannot-find-module.ts) | 1 | |
| 41 | + |
| 42 | +--- |
| 43 | + |
| 44 | +### Syntax Errors - `syntax-errors` |
| 45 | + |
| 46 | +Errors that occur during parsing and lexing of TypeScript source code. |
| 47 | + |
| 48 | +- **Slug:** `syntax-errors` |
| 49 | +- **Title:** Syntax Errors |
| 50 | +- **Description:** Errors that occur during parsing and lexing of TypeScript source code. |
| 51 | +- **Scoring:** The score is based on the number of issues found. |
| 52 | +- **Value:** The value is the number of issues found. |
| 53 | +- **Display Value:** The display value is the number of issues found. |
| 54 | + |
| 55 | +#### Issues |
| 56 | + |
| 57 | +| Severity | Message | Source file | Line(s) | |
| 58 | +| :--------: | :------------------------------------ | :------------------------------------------------------ | :-----: | |
| 59 | +| 🚨 _error_ | TS1136: Property assignment expected. | [`path/to/syntax-error.ts`](../path/to/syntax-error.ts) | 1 | |
| 60 | + |
| 61 | +--- |
| 62 | + |
| 63 | +### Configuration Errors - `configuration-errors` |
| 64 | + |
| 65 | +Errors that occur when parsing TypeScript configuration files. |
| 66 | + |
| 67 | +- **Slug:** `configuration-errors` |
| 68 | +- **Title:** Configuration Errors |
| 69 | +- **Description:** Errors that occur when parsing TypeScript configuration files. |
| 70 | +- **Scoring:** The score is based on the number of issues found. |
| 71 | +- **Value:** The value is the number of issues found. |
| 72 | +- **Display Value:** The display value is the number of issues found. |
| 73 | + |
| 74 | +#### Issues |
| 75 | + |
| 76 | +| Severity | Message | Source file | Line(s) | |
| 77 | +| :--------: | :----------------------------------------- | :-------------------------------------------------- | :-----: | |
| 78 | +| 🚨 _error_ | TS5023: Unknown compiler option 'invalid'. | [`path/to/tsconfig.json`](../path/to/tsconfig.json) | 1 | |
| 79 | + |
| 80 | +--- |
| 81 | + |
| 82 | +### Declaration and Language Service Errors - `declaration-and-language-service-errors` |
| 83 | + |
| 84 | +Errors that occur during TypeScript language service operations. |
| 85 | + |
| 86 | +- **Slug:** `declaration-and-language-service-errors` |
| 87 | +- **Title:** Declaration and Language Service Errors |
| 88 | +- **Description:** Errors that occur during TypeScript language service operations. |
| 89 | +- **Scoring:** The score is based on the number of issues found. |
| 90 | +- **Value:** The value is the number of issues found. |
| 91 | +- **Display Value:** The display value is the number of issues found. |
| 92 | + |
| 93 | +#### Issues |
| 94 | + |
| 95 | +| Severity | Message | Source file | Line(s) | |
| 96 | +| :--------: | :------------------------------------------------------------------------------------------------------------------------------ | :------------------------------------------------------------------ | :-----: | |
| 97 | +| 🚨 _error_ | TS4112: This member cannot have an 'override' modifier because its containing class 'Standalone' does not extend another class. | [`path/to/incorrect-modifier.ts`](../path/to/incorrect-modifier.ts) | 2 | |
| 98 | + |
| 99 | +--- |
| 100 | + |
| 101 | +### Internal Errors - `internal-errors` |
| 102 | + |
| 103 | +Errors that occur during TypeScript internal operations. |
| 104 | + |
| 105 | +- **Slug:** `internal-errors` |
| 106 | +- **Title:** Internal Errors |
| 107 | +- **Description:** Errors that occur during TypeScript internal operations. |
| 108 | +- **Scoring:** The score is based on the number of issues found. |
| 109 | +- **Value:** The value is the number of issues found. |
| 110 | +- **Display Value:** The display value is the number of issues found. |
| 111 | + |
| 112 | +#### Issues |
| 113 | + |
| 114 | +| Severity | Message | Source file | Line(s) | |
| 115 | +| :--------: | :------------------------------- | :---------------------------------------------------------- | :-----: | |
| 116 | +| 🚨 _error_ | TS9001: Internal compiler error. | [`path/to/internal-error.ts`](../path/to/internal-error.ts) | 4 | |
| 117 | + |
| 118 | +--- |
| 119 | + |
| 120 | +### No Implicit Any Errors - `no-implicit-any-errors` |
| 121 | + |
| 122 | +Errors related to no implicit any compiler option. |
| 123 | + |
| 124 | +- **Slug:** `no-implicit-any-errors` |
| 125 | +- **Title:** No Implicit Any Errors |
| 126 | +- **Description:** Errors related to no implicit any compiler option. |
| 127 | +- **Scoring:** The score is based on the number of issues found. |
| 128 | +- **Value:** The value is the number of issues found. |
| 129 | +- **Display Value:** The display value is the number of issues found. |
| 130 | + |
| 131 | +#### Issues |
| 132 | + |
| 133 | +| Severity | Message | Source file | Line(s) | |
| 134 | +| :--------: | :-------------------------------------------------- | :------------------------------------------------------ | :-----: | |
| 135 | +| 🚨 _error_ | TS7006: Parameter 'x' implicitly has an 'any' type. | [`path/to/implicit-any.ts`](../path/to/implicit-any.ts) | 5 | |
| 136 | + |
| 137 | +--- |
| 138 | + |
| 139 | +### Unknown Codes - `unknown-codes` |
| 140 | + |
| 141 | +Errors that do not match any known TypeScript error code. |
| 142 | + |
| 143 | +- **Slug:** `unknown-codes` |
| 144 | +- **Title:** Unknown Codes |
| 145 | +- **Description:** Errors that do not match any known TypeScript error code. |
| 146 | +- **Scoring:** The score is based on the number of issues found. |
| 147 | +- **Value:** The value is the number of issues found. |
| 148 | +- **Display Value:** The display value is the number of issues found. |
| 149 | + |
| 150 | +#### Issues |
| 151 | + |
| 152 | +| Severity | Message | Source file | Line(s) | |
| 153 | +| :--------: | :-------------------------------------- | :-------------------------------------------------------- | :-----: | |
| 154 | +| 🚨 _error_ | TS9999: Unknown error code encountered. | [`path/to/unknown-error.ts`](../path/to/unknown-error.ts) | 6 | |
| 155 | + |
| 156 | +--- |
| 157 | + |
| 158 | +## 📂 Groups Overview |
| 159 | + |
| 160 | +| **Group** | **Slug** | |
| 161 | +| ----------------- | ------------------ | |
| 162 | +| **Problems** | `problems` | |
| 163 | +| **Configuration** | `ts-configuration` | |
| 164 | +| **Miscellaneous** | `miscellaneous` | |
| 165 | + |
| 166 | +### Problems - `problems` |
| 167 | + |
| 168 | +- **Description:** Syntax, semantic, and internal compiler errors are critical for identifying and preventing bugs. |
| 169 | +- **References:** |
| 170 | + - Syntax Errors (`syntax-errors`) |
| 171 | + - Semantic Errors (`semantic-errors`) |
| 172 | + - No Implicit Any Errors (`no-implicit-any-errors`) |
| 173 | + |
| 174 | +### Configuration - `ts-configuration` |
| 175 | + |
| 176 | +- **Description:** Ensures correct TypeScript project setup, minimizing risks from misconfiguration. |
| 177 | +- **References:** |
| 178 | + - Configuration Errors (`configuration-errors`) |
| 179 | + |
| 180 | +### Miscellaneous - `miscellaneous` |
| 181 | + |
| 182 | +- **Description:** Informational errors that may not impact development directly but are helpful for deeper insights. |
| 183 | +- **References:** |
| 184 | + - Unknown Codes (`unknown-codes`) |
| 185 | + - Internal Errors (`internal-errors`) |
| 186 | + - Declaration and Language Service Errors (`declaration-and-language-service-errors`) |
0 commit comments