Commit f304dce 1 parent 18f1ca1 commit f304dce Copy full SHA for f304dce
File tree 1 file changed +15
-1
lines changed
1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,8 @@ Files that had already been in a correct format will not be emitted.
20
20
This may be useful for integrating with some external tools.
21
21
22
22
You can choose packages to format with ` --package / --workspace ` arguments.
23
- When formatting a package, all cairo files in package root and directories below will be formatted (not only the ` src/* ` directory).
23
+ When formatting a package, all cairo files in package root and directories below will be formatted (not only the ` src/* `
24
+ directory).
24
25
25
26
## Formatting options
26
27
@@ -58,3 +59,16 @@ You can create multiple ignore files on different levels of your directory struc
58
59
` .gitignore ` files.
59
60
60
61
Additionally, files ignored by the ` .gitignore ` files will be omitted as well.
62
+
63
+ ## Ignoring lines
64
+
65
+ Mark statements or expressions with ` #[cairofmt::skip] ` attribute to omit them during formatting. See example below:
66
+
67
+ ``` cairo
68
+ #[cairofmt::skip]
69
+ let a = array![
70
+ 1,
71
+ 2,
72
+ 3
73
+ ];
74
+ ```
You can’t perform that action at this time.
0 commit comments