22 lines
830 B
YAML
22 lines
830 B
YAML
|
|
# The workspace's lint rules (see ../../analysis_options.yaml), minus generated code.
|
||
|
|
include: ../../analysis_options.yaml
|
||
|
|
|
||
|
|
analyzer:
|
||
|
|
exclude:
|
||
|
|
- lib/src/generated/**
|
||
|
|
- test/integration/test_tools/serverpod_test_tools.dart
|
||
|
|
|
||
|
|
# Serverpod's code generator reads this package with an analyzer that doesn't know
|
||
|
|
# Dart v3.13's primary constructors yet, and fails on them in endpoint files ("requires
|
||
|
|
# the 'primary-constructors' language feature"; checked with v4.0.4). So the module
|
||
|
|
# keeps the classic constructor and class-body syntax, as the Halkyon servers do;
|
||
|
|
# switch these back on once Serverpod parses it.
|
||
|
|
linter:
|
||
|
|
rules:
|
||
|
|
empty_container_bodies: false
|
||
|
|
unnecessary_type_name_in_constructor: false
|
||
|
|
use_declaring_parameters: false
|
||
|
|
use_primary_constructors: false
|
||
|
|
|
||
|
|
formatter:
|
||
|
|
trailing_commas: preserve
|