@sinemacula/coding-standards 1.6.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +2 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -166,6 +166,7 @@ native directive - `// phpcs:ignore <code>` for a sniff, `@phpstan-ignore <ident
166
166
  | `SineMacula.Commenting.RequireNonPromotedParameterComment` | Plain params mixed with promoted ones need a comment. |
167
167
  | `SineMacula.Commenting.RequirePromotedPropertyComment` | Every constructor-promoted property needs a doc comment. |
168
168
  | `SineMacula.Exceptions.DisallowBaseException` | No throwing the base `\Exception`; throw a domain exception. |
169
+ | `SineMacula.Exceptions.RequireEmptyCatchComment` | An empty catch block must comment its intentional swallow. |
169
170
  | `SineMacula.Functions.RequireSensitiveParameter` | Secret-named params need `#[\SensitiveParameter]`. |
170
171
  | `SineMacula.Metrics.MaxMethodCount` | A class/interface/trait/enum may declare at most 20 methods (tests exempt). |
171
172
  | `SineMacula.Metrics.MethodLength` | A method body may have at most 50 significant lines (tests exempt). |
@@ -183,7 +184,7 @@ native directive - `// phpcs:ignore <code>` for a sniff, `@phpstan-ignore <ident
183
184
 
184
185
  | Identifier | Enforces |
185
186
  |------------|----------|
186
- | `sineMacula.mutableStaticProperty` | No mutable static state; use instance state or a constant instead. |
187
+ | `sineMacula.mutableStaticProperty` | Static properties written at runtime; `@managed-static` opts out. |
187
188
 
188
189
  ## Requirements
189
190
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinemacula/coding-standards",
3
- "version": "1.6.0",
3
+ "version": "1.7.0",
4
4
  "description": "Centralized coding standards, static analysis configurations, and code quality tooling for all Sine Macula repositories.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Ben Carey <bdmc@sinemacula.co.uk>",