---
title: Charm
order: 8
description: "An execution modifier attached with : (lint:rw) that changes how a target runs, not which one; the built-in rw flips a check-only target to mutate in place, and ci always strips it."
tags: [glossary, core-model]
---

# Charm

An execution modifier attached with `:` (`lint:rw`) that changes _how_ a target
runs, not _which_ one; the built-in `rw` flips a check-only target to mutate in
place, and `ci` always strips it.

## Example

`:rw` turns the check-only `lint` into one that fixes in place.

```sh
magus run lint:rw docs
```

## Used in

<!-- BEGIN GLOSSARY USAGE (generated by glossary-usage-generate from the knowledge graph; edit the generator, not this list) -->

In the docs:

- [1. Built-in command spells (import "magus/charm")](../concepts/charms.md#1-built-in-command-spells-import-maguscharm)
- [C. A :linux charm](../decisions/0003-running-an-invocation-on-another-operating-system.md#c-a-linux-charm)
- [A charm is an adverb](../recommendations.md#a-charm-is-an-adverb)
- [charm](../reference/buzz/charm.md#charm)
- [hasCharm](../reference/buzz/magus.md#hascharm)
- [MGS6001: charm patch does not apply to the command](../reference/codes/charms/MGS6001.md#mgs6001-charm-patch-does-not-apply-to-the-command)

In the code (`magus refs <name>` lists every site):

- `spells.Charm` (Go)

<!-- END GLOSSARY USAGE -->

## See also

- [Charms](../concepts/charms.md)
- [Target](target.md)
