Skip to content

Commit

Permalink
fix(scripts): Don't mess up FFX1012
Browse files Browse the repository at this point in the history
  • Loading branch information
Clashsoft committed Apr 17, 2024
1 parent 1a29b88 commit 5781650
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ERROR_CODES.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ show(new MyComponent()); // Wrong, should not be able to show a controller that
### 1012: `Cannot access private * '*' in class '*' annotated with '*'.`

- Runtime: ✅
- Annotation Processor: ❌aught by the compiler)
- Annotation Processor: ❌ (Caught by the compiler)

This error is thrown when the framework tries to access a private field or method.

Expand Down Expand Up @@ -685,4 +685,4 @@ This error is thrown if closing the file watcher fails.
- Annotation Processor: ❌

This error is thrown if the framework fails to create a copy of an object because no duplicator has been registered for
the object's class.
the object's class.
2 changes: 1 addition & 1 deletion scripts/error-codes.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ for (const property of errorCodesProperties.getKeys()) {
await scanCodes('../framework/src/main/java', 'runtime');
await scanCodes('../annotation-processor/src/main/java', 'annotationProcessor');

const newErrorCodesMd = errorCodesMd.replace(/^### (\d+).*(?:\r?\n)+- Runtime: ..?\r?\n- Annotation Processor: ..?/gm, (match, code) => {
const newErrorCodesMd = errorCodesMd.replace(/^### (\d+).*(?:\r?\n)+- Runtime: .\r?\n- Annotation Processor: ./gmu, (match, code) => {
const error = errorCodes[code];
if (error) {
error.matched = true;
Expand Down

0 comments on commit 5781650

Please sign in to comment.