Skip to content

Commit d4badaf

Browse files
committed
style: misc
1 parent 28b2e16 commit d4badaf

File tree

3 files changed

+6
-52
lines changed

3 files changed

+6
-52
lines changed

analysis_options.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ analyzer:
88
lines_longer_than_80_chars: ignore
99
avoid_dynamic_calls: ignore
1010
avoid_catching_errors: ignore
11+
document_ignores: ignore
1112
exclude:
1213
- build/**
1314
linter:

lib/src/permissions.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1+
// ignore_for_file: public_member_api_docs
2+
13
/// Defines the roles and permissions used in the RBAC system.
24
///
35
/// Permissions are defined as constants in the format `resource.action`.
46
/// Roles are defined as constants.
57
/// The `rolePermissions` map defines which permissions are granted to each role.
68
9+
library;
10+
711
/// {@template role}
812
/// Defines the available user roles in the system.
913
/// {@endtemplate}
@@ -60,7 +64,7 @@ abstract class Permission {
6064
/// The key is the role string, and the value is a set of permission strings.
6165
final Map<String, Set<String>> rolePermissions = {
6266
Role.admin: {
63-
// Admins have all permissions. In a real system, you might have a more
67+
// Admins have all permissions. You might have a more
6468
// sophisticated way to represent this, but listing them explicitly is clear.
6569
Permission.headlineRead,
6670
Permission.headlineCreate,

rbac-plan.dart

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)