Skip to content

Commit 76e3022

Browse files
committed
formatter
1 parent 888dce4 commit 76e3022

33 files changed

Lines changed: 232 additions & 226 deletions

.formatter.exs

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,21 @@
33
# SPDX-License-Identifier: MIT
44

55
# Used by "mix format"
6-
locals_without_parens = [
7-
id: 1,
8-
category: 1,
9-
is_enabled?: 1,
10-
characteristic: 2,
11-
pick: 1,
12-
rename: 1,
13-
field: 3,
14-
expect: 1,
15-
relate: 1,
16-
translate: 1,
17-
guard: 1,
18-
customize: 1,
19-
order: 1,
20-
initial_states: 1,
21-
default_initial_state: 1,
22-
state_attribute: 1,
23-
transition: 1
24-
]
6+
locals_without_parens = []
257

268
[
279
plugins: [Spark.Formatter],
2810
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"],
29-
import_deps: [:ash],
11+
import_deps: [
12+
:diffo,
13+
:ash,
14+
:ash_state_machine,
15+
:ash_neo4j,
16+
:ash_jason,
17+
:ash_outstanding,
18+
:ash_json_api,
19+
:plug
20+
],
3021
locals_without_parens: locals_without_parens,
3122
export: [
3223
locals_without_parens: locals_without_parens

config/runtime.exs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44

55
import Config
66

7+
config :bolty, Bolt,
8+
uri: "bolt://localhost:7687",
9+
auth: [username: "neo4j", password: "password"],
10+
pool_size: 10,
11+
name: Bolt
12+
713
if config_env() == :prod do
814
database_url =
915
System.get_env("DATABASE_URL") ||

lib/access/resources/characteristic_values/cable_value.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ defmodule DiffoExample.Access.CableValue do
1212

1313
jason do
1414
pick [:name, :pairs, :length, :loss, :technology]
15-
compact(true)
15+
compact true
1616
end
1717

1818
outstanding do

lib/access/resources/characteristic_values/card_value.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ defmodule DiffoExample.Access.CardValue do
1212

1313
jason do
1414
pick [:name, :family, :model, :technology]
15-
compact(true)
15+
compact true
1616
end
1717

1818
outstanding do

lib/access/resources/characteristic_values/float_unit.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ defmodule DiffoExample.Access.FloatUnit do
1212

1313
jason do
1414
pick [:amount, :unit]
15-
compact(true)
15+
compact true
1616
end
1717

1818
outstanding do

lib/access/resources/characteristic_values/integer_unit.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ defmodule DiffoExample.Access.IntegerUnit do
1212

1313
jason do
1414
pick [:amount, :unit]
15-
compact(true)
15+
compact true
1616
end
1717

1818
outstanding do

lib/access/resources/characteristic_values/path_value.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ defmodule DiffoExample.Access.PathValue do
1212

1313
jason do
1414
pick [:name, :sections, :length, :loss, :technology]
15-
compact(true)
15+
compact true
1616
end
1717

1818
outstanding do

lib/access/resources/characteristic_values/shelf_value.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ defmodule DiffoExample.Access.ShelfValue do
1212

1313
jason do
1414
pick [:name, :family, :model, :technology]
15-
compact(true)
15+
compact true
1616
end
1717

1818
outstanding do

lib/access/services/characteristic_values/aggregate_interface.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ defmodule DiffoExample.Access.AggregateInterface do
1212

1313
jason do
1414
pick [:name, :physical_interface, :physical_layer, :link_layer, :svlan_id, :vpi]
15-
compact(true)
15+
compact true
1616

1717
rename physical_interface: "physicalInterface",
1818
physical_layer: "physicalLayer",

lib/access/services/characteristic_values/bandwidth_profile.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ defmodule DiffoExample.Access.BandwidthProfile do
1212

1313
jason do
1414
pick [:downstream, :upstream, :units]
15-
compact(true)
15+
compact true
1616
end
1717

1818
outstanding do

0 commit comments

Comments
 (0)