summaryrefslogtreecommitdiff
path: root/.projections.json.example
diff options
context:
space:
mode:
Diffstat (limited to '.projections.json.example')
-rw-r--r--.projections.json.example36
1 files changed, 36 insertions, 0 deletions
diff --git a/.projections.json.example b/.projections.json.example
new file mode 100644
index 00000000000..7ea0862f56a
--- /dev/null
+++ b/.projections.json.example
@@ -0,0 +1,36 @@
+{
+ "app/*.rb": {
+ "alternate": "spec/{}_spec.rb",
+ "type": "source"
+ },
+ "spec/*_spec.rb": {
+ "alternate": "app/{}.rb",
+ "type": "test"
+ },
+ "lib/*.rb": {
+ "alternate": "spec/lib/{}_spec.rb",
+ "type": "source"
+ },
+ "spec/lib/*_spec.rb": {
+ "alternate": "lib/{}.rb",
+ "type": "test"
+ },
+ "ee/app/*.rb": {
+ "alternate": "ee/spec/{}_spec.rb",
+ "type": "source"
+ },
+ "ee/spec/*_spec.rb": {
+ "alternate": "ee/app/{}.rb",
+ "type": "test"
+ },
+ "ee/lib/*.rb": {
+ "alternate": "ee/spec/lib/{}_spec.rb",
+ "type": "source"
+ },
+ "ee/spec/lib/*_spec.rb": {
+ "alternate": "ee/lib/{}.rb",
+ "type": "test"
+ },
+ "*.rb": {"dispatch": "bundle exec rubocop {file}"},
+ "*_spec.rb": {"dispatch": "bundle exec rspec {file}"}
+}