Skip to content

Commit

Permalink
fixed outdated documentation of ModifierOrder check
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexHaxe committed Jun 22, 2024
1 parent caedf8b commit 0f34e90
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions haxe-checkstyle/modifierorder.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ Checks that the order of modifiers conforms to the standards.
"PUBLIC_PRIVATE",
"STATIC",
"INLINE",
"DYNAMIC"
"DYNAMIC",
"FINAL"
]
}
}
Expand All @@ -40,10 +41,10 @@ override public function close() {}
inline public static var COUNT:Int = 1;
```

{{site.data.alerts.error}} Invalid access modifier order: COUNT (modifier: PUBLIC_PRIVATE) {{site.data.alerts.end}}
{{site.data.alerts.error}} modifier order for field "COUNT" is "inline public static" but should be "public static inline" {{site.data.alerts.end}}

```java
public override function close() {}
```

{{site.data.alerts.error}} Invalid access modifier order: close (modifier: OVERRIDE) {{site.data.alerts.end}}
{{site.data.alerts.error}} modifier order for field "close" is "public override" but should be "override public" {{site.data.alerts.end}}

0 comments on commit 0f34e90

Please sign in to comment.