Home / Function/ custom_ignore() — tailwindcss Function Reference

custom_ignore() — tailwindcss Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  7c8bc7c4_7dd0_d829_9332_58553c511460["custom_ignore()"]
  c17be58e_dd6a_a37a_33c2_a24a331f4c38["tmpdir()"]
  7c8bc7c4_7dd0_d829_9332_58553c511460 -->|calls| c17be58e_dd6a_a37a_33c2_a24a331f4c38
  88df5ea7_731b_9e65_ef42_3f4f769562ec["wfile()"]
  7c8bc7c4_7dd0_d829_9332_58553c511460 -->|calls| 88df5ea7_731b_9e65_ef42_3f4f769562ec
  0a625c2b_b1dd_2da6_7dda_34ff725be14b["path()"]
  7c8bc7c4_7dd0_d829_9332_58553c511460 -->|calls| 0a625c2b_b1dd_2da6_7dda_34ff725be14b
  98837c46_31c0_83f7_649e_4eeb3580d717["add_custom_ignore_filename()"]
  7c8bc7c4_7dd0_d829_9332_58553c511460 -->|calls| 98837c46_31c0_83f7_649e_4eeb3580d717
  f9057141_74ef_29d7_b851_a214bdc6bfa9["build()"]
  7c8bc7c4_7dd0_d829_9332_58553c511460 -->|calls| f9057141_74ef_29d7_b851_a214bdc6bfa9
  7d9549d0_d5cc_b7c3_b367_0249f8430d02["add_child()"]
  7c8bc7c4_7dd0_d829_9332_58553c511460 -->|calls| 7d9549d0_d5cc_b7c3_b367_0249f8430d02
  3d475977_d06e_4912_978d_07df5c71fed8["matched()"]
  7c8bc7c4_7dd0_d829_9332_58553c511460 -->|calls| 3d475977_d06e_4912_978d_07df5c71fed8
  style 7c8bc7c4_7dd0_d829_9332_58553c511460 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/ignore/src/dir.rs lines 1029–1042

    fn custom_ignore() {
        let td = tmpdir();
        let custom_ignore = ".customignore";
        wfile(td.path().join(custom_ignore), "foo\n!bar");

        let (ig, err) = IgnoreBuilder::new()
            .add_custom_ignore_filename(custom_ignore)
            .build()
            .add_child(td.path());
        assert!(err.is_none());
        assert!(ig.matched("foo", false).is_ignore());
        assert!(ig.matched("bar", false).is_whitelist());
        assert!(ig.matched("baz", false).is_none());
    }

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 7 function(s): add_child, add_custom_ignore_filename, build, matched, path, tmpdir, wfile.

Analyze Your Own Codebase

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

Try Supermodel Free