scan() — tailwindcss Function Reference
Architecture documentation for the scan() function in scanner.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 1581ed51_04e1_62c1_6e26_ea43cf82d5f9["scan()"] 2c5d72c1_5cbe_ebbe_4eca_30cd90f4d096["scan_with_globs()"] 2c5d72c1_5cbe_ebbe_4eca_30cd90f4d096 -->|calls| 1581ed51_04e1_62c1_6e26_ea43cf82d5f9 b7399399_0b23_6851_c380_99f497b7066e["it_should_work_with_a_set_of_root_files()"] b7399399_0b23_6851_c380_99f497b7066e -->|calls| 1581ed51_04e1_62c1_6e26_ea43cf82d5f9 bbb97f35_1fa5_e6d3_8704_89d58dbde846["it_should_work_with_a_set_of_root_files_and_ignore_ignored_files()"] bbb97f35_1fa5_e6d3_8704_89d58dbde846 -->|calls| 1581ed51_04e1_62c1_6e26_ea43cf82d5f9 f82bcfd8_4ff2_cf89_e768_f08d721bb91a["it_should_list_all_files_in_the_public_folder_explicitly()"] f82bcfd8_4ff2_cf89_e768_f08d721bb91a -->|calls| 1581ed51_04e1_62c1_6e26_ea43cf82d5f9 0351b5bf_81fa_51d0_a6a5_689cecbf9587["it_should_list_nested_folders_explicitly_in_the_public_folder()"] 0351b5bf_81fa_51d0_a6a5_689cecbf9587 -->|calls| 1581ed51_04e1_62c1_6e26_ea43cf82d5f9 1b674589_416f_d8a1_0e70_48685a95ba8f["it_should_list_all_files_in_the_public_folder_explicitly_except_ignored_files()"] 1b674589_416f_d8a1_0e70_48685a95ba8f -->|calls| 1581ed51_04e1_62c1_6e26_ea43cf82d5f9 af1ba05f_1b5a_76f3_fe9a_243e1993505e["it_should_use_a_glob_for_top_level_folders()"] af1ba05f_1b5a_76f3_fe9a_243e1993505e -->|calls| 1581ed51_04e1_62c1_6e26_ea43cf82d5f9 07754aba_12e6_3b43_9a8f_ada2c5369a3c["it_should_ignore_binary_files()"] 07754aba_12e6_3b43_9a8f_ada2c5369a3c -->|calls| 1581ed51_04e1_62c1_6e26_ea43cf82d5f9 0c190c9f_3800_5d5f_e890_cf388f1545c2["it_should_not_ignore_folders_that_end_with_a_binary_extension()"] 0c190c9f_3800_5d5f_e890_cf388f1545c2 -->|calls| 1581ed51_04e1_62c1_6e26_ea43cf82d5f9 c22213ce_ebc4_776c_1998_89e4ce223ae5["it_should_ignore_known_extensions()"] c22213ce_ebc4_776c_1998_89e4ce223ae5 -->|calls| 1581ed51_04e1_62c1_6e26_ea43cf82d5f9 73c157ac_a299_8a9a_8dba_88953129860b["it_should_find_new_extensions()"] 73c157ac_a299_8a9a_8dba_88953129860b -->|calls| 1581ed51_04e1_62c1_6e26_ea43cf82d5f9 14b11d30_8f1f_b15c_c9f0_ea3be9a004fd["it_should_ignore_known_files()"] 14b11d30_8f1f_b15c_c9f0_ea3be9a004fd -->|calls| 1581ed51_04e1_62c1_6e26_ea43cf82d5f9 9412b3bd_f7b7_3201_8865_8c565f56ccac["it_should_ignore_and_expand_nested_ignored_folders()"] 9412b3bd_f7b7_3201_8865_8c565f56ccac -->|calls| 1581ed51_04e1_62c1_6e26_ea43cf82d5f9 f2e18142_cea6_d7ff_3ca3_36a21f9802a2["it_should_scan_for_utilities()"] f2e18142_cea6_d7ff_3ca3_36a21f9802a2 -->|calls| 1581ed51_04e1_62c1_6e26_ea43cf82d5f9 style 1581ed51_04e1_62c1_6e26_ea43cf82d5f9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/oxide/tests/scanner.rs lines 141–143
fn scan(paths_with_content: &[(&str, &str)]) -> ScanResult {
scan_with_globs(paths_with_content, vec!["@source '**/*'"])
}
Domain
Subdomains
Calls
Called By
- it_should_find_new_extensions()
- it_should_ignore_and_expand_nested_ignored_folders()
- it_should_ignore_binary_files()
- it_should_ignore_known_extensions()
- it_should_ignore_known_files()
- it_should_list_all_files_in_the_public_folder_explicitly()
- it_should_list_all_files_in_the_public_folder_explicitly_except_ignored_files()
- it_should_list_nested_folders_explicitly_in_the_public_folder()
- it_should_not_ignore_folders_that_end_with_a_binary_extension()
- it_should_pick_up_new_files()
- it_should_scan_absolute_paths()
- it_should_scan_for_utilities()
- it_should_use_a_glob_for_top_level_folders()
- it_should_work_with_a_set_of_root_files()
- it_should_work_with_a_set_of_root_files_and_ignore_ignored_files()
- scan_with_globs()
- skips_ignore_files_outside_of_a_repo()
- test_allow_default_ignored_files()
- test_allow_default_ignored_files_via_gitignore()
- test_allow_explicit_node_modules_paths()
- test_explicitly_ignore_explicitly_allowed_files()
- test_extract_used_css_variables_from_css()
- test_glob_with_symlinks()
- test_globs_with_recursive_symlinks()
- test_ignore_files_can_be_included_with_custom_source_rule()
- test_manually_scanning_files_should_follow_all_rules()
- test_partial_globs_with_symlinks()
- test_works_with_filenames_containing_glob_characters()
Source
Frequently Asked Questions
What does scan() do?
scan() is a function in the tailwindcss codebase.
What does scan() call?
scan() calls 1 function(s): scan_with_globs.
What calls scan()?
scan() is called by 28 function(s): it_should_find_new_extensions, it_should_ignore_and_expand_nested_ignored_folders, it_should_ignore_binary_files, it_should_ignore_known_extensions, it_should_ignore_known_files, it_should_list_all_files_in_the_public_folder_explicitly, it_should_list_all_files_in_the_public_folder_explicitly_except_ignored_files, it_should_list_nested_folders_explicitly_in_the_public_folder, and 20 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free