mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-04-30 03:46:52 +08:00
- Replace the YAML-based schema configuration with a Ruby DSL for defining intermediate database schemas - Add table builders, conventions, enums, ignored tables, and output config as composable DSL files in `migrations/config/schema/` - Implement schema resolver that combines DSL config with database introspection to produce resolved schemas - Add generator that produces SQL schema, Ruby models, and enum files from the resolved schema - Add scaffolder for bootstrapping new table configs and differ for comparing config against the database - Add plugin manifest and introspection system to auto-detect plugin-owned columns - Rewrite all schema CLI commands (`add`, `validate`, `diff`, `generate`, `list`, `ignore`, `refresh-plugins`) to use DSL infrastructure - Add comprehensive specs and documentation (`migrations/docs/schema-configuration.md`) - Remove old YAML config, JSON schema, and validation infrastructure
32 lines
606 B
YAML
32 lines
606 B
YAML
---
|
|
detectors:
|
|
IrresponsibleModule:
|
|
enabled: false
|
|
FeatureEnvy:
|
|
enabled: false
|
|
UtilityFunction:
|
|
enabled: false
|
|
BooleanParameter:
|
|
enabled: false
|
|
UncommunicativeVariableName:
|
|
enabled: false
|
|
MissingSafeMethod:
|
|
enabled: false
|
|
InstanceVariableAssumption:
|
|
enabled: false
|
|
NilCheck:
|
|
enabled: false
|
|
|
|
TooManyStatements:
|
|
max_statements: 20
|
|
TooManyInstanceVariables:
|
|
max_instance_variables: 10
|
|
TooManyMethods:
|
|
max_methods: 30
|
|
LongParameterList:
|
|
max_params: 4
|
|
NestedIterators:
|
|
max_allowed_nesting: 2
|
|
|
|
DuplicateMethodCall:
|
|
max_calls: 3
|