Skip to content

Commit 3c58693

Browse files
hyperpolymathclaude
andcommitted
chore: standardise agents doc, config (hook-generated)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 2e81012 commit 3c58693

3 files changed

Lines changed: 3 additions & 11 deletions

File tree

backend/AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ custom classes must fully style the input
5353
end
5454

5555
- **Never** nest multiple modules in the same file as it can cause cyclic dependencies and compilation errors
56-
- **Never** use map access syntax (`changeset[:field]`) on structs as they do not implement the Access behaviour by default. For regular structs, you **must** access the fields directly, such as `my_struct.field` or use higher level APIs that are available on the struct if they exist, `Ecto.Changeset.get_field/2` for changesets
56+
- **Never** use map access syntax (`map[:field]`) on structs as they do not implement the Access behaviour by default. For regular structs, you **must** access the fields directly, such as `my_struct.field`
5757
- Elixir's standard library has everything necessary for date and time manipulation. Familiarize yourself with the common `Time`, `Date`, `DateTime`, and `Calendar` interfaces by accessing their documentation as necessary. **Never** install additional dependencies unless asked or for date/time parsing (which you can use the `date_time_parser` package)
5858
- Don't use `String.to_atom/1` on user input (memory leak risk)
5959
- Predicate function names should not start with `is_` and should end in a question mark. Names like `is_thing` should be reserved for guards

backend/config/config.exs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# SPDX-License-Identifier: PMPL-1.0-or-later
12
# This file is responsible for configuring your application
23
# and its dependencies with the aid of the Config module.
34
#

backend/config/test.exs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
1+
# SPDX-License-Identifier: PMPL-1.0-or-later
12
import Config
23

3-
# Configure the Repo for test — use a separate database and sandbox pool
4-
config :stapeln, Stapeln.Repo,
5-
database: "stapeln_test#{System.get_env("MIX_TEST_PARTITION")}",
6-
username: "postgres",
7-
password: "postgres",
8-
hostname: "localhost",
9-
port: 5432,
10-
pool: Ecto.Adapters.SQL.Sandbox,
11-
pool_size: System.schedulers_online() * 2
12-
134
# We don't run a server during test. If one is required,
145
# you can enable the server option below.
156
config :stapeln, StapelnWeb.Endpoint,

0 commit comments

Comments
 (0)