Create an empty IgnoreRules (ignores nothing except built-in patterns). This is useful for testing or when you want to start fresh.
(repo_root: &Path)
| 147 | /// |
| 148 | /// This is useful for testing or when you want to start fresh. |
| 149 | pub fn empty(repo_root: &Path) -> Self { |
| 150 | Self { |
| 151 | global: None, |
| 152 | local: None, |
| 153 | repo_root: repo_root.to_path_buf(), |
| 154 | } |
| 155 | } |
| 156 | |
| 157 | /// Load ignore rules from a specific file only. |
| 158 | /// |
nothing calls this directly
no outgoing calls
no test coverage detected