2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-10-04 17:32:34 +08:00
discourse/.rubocop.yml
Yuriy Kurant 031c0d272c
DEV: enhances rubocop to catch pause_test on commit (#33532)
Enhances `rubocop` to catch custom `pause_test` on pre-commit stage,
like it catches `debugger`, `binding.pry`, and `byebug`.
2025-07-09 09:53:20 +08:00

45 lines
863 B
YAML

inherit_gem:
rubocop-discourse: stree-compat.yml
# Still work to do in ensuring we don't link old files
Discourse/NoAddReferenceOrAliasesActiveRecordMigration:
Enabled: false
Discourse/NoResetColumnInformationInMigrations:
Enabled: true
Discourse/Plugins/CallRequiresPlugin:
Include:
- "plugins/*/app/controllers/**/*"
Discourse/Plugins/UsePluginInstanceOn:
Include:
- "plugins/**/*"
Discourse/Plugins/NamespaceMethods:
Include:
- "plugins/**/*"
Discourse/Plugins/NamespaceConstants:
Include:
- "plugins/**/*"
Discourse/Plugins/UseRequireRelative:
Include:
- "plugins/**/*"
Discourse/Plugins/NoMonkeyPatching:
Include:
- "plugins/**/*"
Lint/Debugger:
Exclude:
- script/**/*
DebuggerMethods:
SystemHelpers:
- pause_test
RSpec/InstanceVariable:
Enabled: true
Include:
- spec/models/**/*