This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| defmodule MyApp.Prompts.Audit do | |
| @moduledoc """ | |
| Prompts for the audit pipeline. Two entry points: | |
| * `audit_file/4` — embeds a single source file in the prompt and | |
| runs `MyApp.CodingAgent` against it. Style is `:simple` or | |
| `:deep`; the executor picks based on `audit.strategy`. | |
| * `audit_directory/2` — whole-package audit. Spawns the agent with | |
| `:cwd` set to the source dir so it can use Read/Grep/Bash. | |
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # | |
| # This git hook should let us prevent commits from containing words that we sometimes use | |
| # as "sky is blue" proof that a method is working when it's behaving strangely. | |
| disallowed="poop fart poopy farty shit fuck" | |
| git diff --cached --name-status | while read x file; do | |
| if [ "$x" == 'D' ]; then continue; fi | |
| for word in $disallowed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "lib/**/views/*_view.ex": { | |
| "type": "view", | |
| "alternate": "test/{dirname}/views/{basename}_view_test.exs", | |
| "template": [ | |
| "defmodule {dirname|camelcase|capitalize}.{basename|camelcase|capitalize}View do", | |
| " use {dirname|camelcase|capitalize}, :view", | |
| "end" | |
| ] | |
| }, |