Skip to content

Commit fb390c8

Browse files
Add README.md
1 parent e7ac235 commit fb390c8

File tree

1 file changed

+36
-2
lines changed

1 file changed

+36
-2
lines changed

README.md

+36-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,37 @@
1-
# CustomModule
1+
# IBlinter plugin for CustomModuleRule
22

3-
A description of this package.
3+
Check if custom class match custom module by `custom_module_rule` config.
4+
5+
6+
## Configuration
7+
8+
| key | description |
9+
|:---------------------|:--------------------------- |
10+
| `custom_module_rule` | Custom module rule configs. |
11+
12+
13+
### CustomModuleConfig
14+
15+
You can configure `custom_module` rule by `CustomModuleConfig` list.
16+
17+
| key | description |
18+
|:-----------|:---------------------------------------------------------------------------- |
19+
| `module` | Module name. |
20+
| `included` | Path to `*.swift` classes of the module for `custom_module` lint. |
21+
| `excluded` | Path to ignore for `*.swift` classes of the module for `custom_module` lint. |
22+
23+
24+
```yaml
25+
enabled_rules:
26+
- relative_to_margin
27+
disabled_rules:
28+
- custom_class_name
29+
excluded:
30+
- Carthage
31+
custom_module_rule:
32+
- module: UIComponents
33+
included:
34+
- UIComponents/Classes
35+
excluded:
36+
- UIComponents/Classes/Config/Generated
37+
```

0 commit comments

Comments
 (0)