Home / Function/ custom_ignore() — tailwindcss Function Reference

custom_ignore() — tailwindcss Function Reference

Architecture documentation for the custom_ignore() function in walk.rs from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  30ff6d53_f031_f738_de31_96dc11684be3["custom_ignore()"]
  e8c725dd_a885_9529_0af1_4e4171753fc6["tmpdir()"]
  30ff6d53_f031_f738_de31_96dc11684be3 -->|calls| e8c725dd_a885_9529_0af1_4e4171753fc6
  a870695d_932a_bfd4_fe92_a94ee09973bb["mkdirp()"]
  30ff6d53_f031_f738_de31_96dc11684be3 -->|calls| a870695d_932a_bfd4_fe92_a94ee09973bb
  65b715d0_a042_86f6_24a2_ee2f89075c41["wfile()"]
  30ff6d53_f031_f738_de31_96dc11684be3 -->|calls| 65b715d0_a042_86f6_24a2_ee2f89075c41
  b383bac3_4e53_18df_7212_4ea69ca72f56["add_custom_ignore_filename()"]
  30ff6d53_f031_f738_de31_96dc11684be3 -->|calls| b383bac3_4e53_18df_7212_4ea69ca72f56
  5fe9aa4d_d793_b1a2_d187_4991d92c8d6e["assert_paths()"]
  30ff6d53_f031_f738_de31_96dc11684be3 -->|calls| 5fe9aa4d_d793_b1a2_d187_4991d92c8d6e
  006bb599_d40b_f53b_44c7_57dfd4237729["path()"]
  30ff6d53_f031_f738_de31_96dc11684be3 -->|calls| 006bb599_d40b_f53b_44c7_57dfd4237729
  style 30ff6d53_f031_f738_de31_96dc11684be3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/ignore/src/walk.rs lines 2154–2167

    fn custom_ignore() {
        let td = tmpdir();
        let custom_ignore = ".customignore";
        mkdirp(td.path().join("a"));
        wfile(td.path().join(custom_ignore), "foo");
        wfile(td.path().join("foo"), "");
        wfile(td.path().join("a/foo"), "");
        wfile(td.path().join("bar"), "");
        wfile(td.path().join("a/bar"), "");

        let mut builder = WalkBuilder::new(td.path());
        builder.add_custom_ignore_filename(&custom_ignore);
        assert_paths(td.path(), &builder, &["bar", "a", "a/bar"]);
    }

Domain

Subdomains

Frequently Asked Questions

What does custom_ignore() do?
custom_ignore() is a function in the tailwindcss codebase.
What does custom_ignore() call?
custom_ignore() calls 6 function(s): add_custom_ignore_filename, assert_paths, mkdirp, path, tmpdir, wfile.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free