_WEAPON.md
| source_url | https://github.com/nuke-on-rails/nuke-on-rails/blob/67c72332e6eea2a2897f3ed72a061ac8fc175140/templates/_WEAPON.md |
|---|
Weapon:
<One or two sentences framing the territory the scanners miss. What does rubycritic/Brakeman/bundler-audit NOT see here, and why does reading the code with the app's domain in mind catch it? Name the files to read (app/..., config/...).>
<Optional: Reference: <official source> — for security weapons, link the Rails Security Guide section. Distil from it; don't copy.>
<One or two sentences: what the problem is, the detectable signal, and why it matters here. Then a tight Problem/Fix example — usually two lines, the labels as trailing comments. The example is required for any code-level problem; keep it minimal so the file still scans.>
Model.find(params[:id]) # Problem — what's wrong, in a few words
current_user.things.find(params[:id]) # Fix — the one-line correction
<Same shape. One topic = one coherent finding, with its own example.>
bad_thing # Problem — ...
good_thing # Fix — ...
<Repeat for each distinct finding. Hold an opinion; acknowledge a counter-position in a clause, not an essay. Say "this weapon covers X; it does not guarantee it" where that honesty matters. Cross-reference sibling weapons with arsenal/<other>.md instead of duplicating.>
Severity and remedies
<Rank the findings by impact — what actually costs the most (a confirmed exploit on money/PII > a theoretical warning > a quality nit). For security findings, state the exploit in one sentence and hold them to the higher bar: no articulable exploit path → "theoretical", never "confirmed". Name the concrete remedy (often a one-liner, or the canonical gem: strong_migrations, rack-attack, discard, …). Cross-reference related weapons.>
Copyright (c) 2026 Nuke on Rails contributors License files are attached. MIT
MIT notice
MIT License
Copyright (c) 2026 Nuke on Rails contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Children
No children yet.
Like how this is organised?
Build your own Memory tree on knowen.md: notes, decisions and tasks in one connected markdown graph, shared with your team and your AI agents.