scan() — tailwindcss Function Reference
Architecture documentation for the scan() function in scanner.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 2f3305c3_ad36_6002_daa9_52b16e0424fd["scan()"] 340ddba0_15e4_a309_9dea_cf6d6e73381d["scanner.rs"] 2f3305c3_ad36_6002_daa9_52b16e0424fd -->|defined in| 340ddba0_15e4_a309_9dea_cf6d6e73381d a53d0655_c789_b0d9_0c48_cfd60da7194b["scan_with_globs()"] a53d0655_c789_b0d9_0c48_cfd60da7194b -->|calls| 2f3305c3_ad36_6002_daa9_52b16e0424fd 222e4d7c_ca33_f555_207b_da9cb14e6508["it_should_work_with_a_set_of_root_files()"] 222e4d7c_ca33_f555_207b_da9cb14e6508 -->|calls| 2f3305c3_ad36_6002_daa9_52b16e0424fd 45184943_1e84_e90e_684b_dc6e8e7b4fba["it_should_work_with_a_set_of_root_files_and_ignore_ignored_files()"] 45184943_1e84_e90e_684b_dc6e8e7b4fba -->|calls| 2f3305c3_ad36_6002_daa9_52b16e0424fd e7e1f427_92f7_ed1f_bb73_9df3c9bdb39b["it_should_list_all_files_in_the_public_folder_explicitly()"] e7e1f427_92f7_ed1f_bb73_9df3c9bdb39b -->|calls| 2f3305c3_ad36_6002_daa9_52b16e0424fd a8737a09_f81d_b85c_5806_1ac0e8396984["it_should_list_nested_folders_explicitly_in_the_public_folder()"] a8737a09_f81d_b85c_5806_1ac0e8396984 -->|calls| 2f3305c3_ad36_6002_daa9_52b16e0424fd ce2ffe8d_e5dc_d784_ab42_90745c3825e7["it_should_list_all_files_in_the_public_folder_explicitly_except_ignored_files()"] ce2ffe8d_e5dc_d784_ab42_90745c3825e7 -->|calls| 2f3305c3_ad36_6002_daa9_52b16e0424fd 26ea359f_e89d_d09c_44a1_4bd10bb22c91["it_should_use_a_glob_for_top_level_folders()"] 26ea359f_e89d_d09c_44a1_4bd10bb22c91 -->|calls| 2f3305c3_ad36_6002_daa9_52b16e0424fd dedb94da_cbf9_b9fa_66cc_c2d7be6fe552["it_should_ignore_binary_files()"] dedb94da_cbf9_b9fa_66cc_c2d7be6fe552 -->|calls| 2f3305c3_ad36_6002_daa9_52b16e0424fd b8f9676d_b005_845f_7e8b_c7ed63fcc9b7["it_should_not_ignore_folders_that_end_with_a_binary_extension()"] b8f9676d_b005_845f_7e8b_c7ed63fcc9b7 -->|calls| 2f3305c3_ad36_6002_daa9_52b16e0424fd 328b1812_ed31_796b_f0d6_6a97b05bfde5["it_should_ignore_known_extensions()"] 328b1812_ed31_796b_f0d6_6a97b05bfde5 -->|calls| 2f3305c3_ad36_6002_daa9_52b16e0424fd 53a1563d_0ba3_2536_33f4_7432ccd5d9c6["it_should_find_new_extensions()"] 53a1563d_0ba3_2536_33f4_7432ccd5d9c6 -->|calls| 2f3305c3_ad36_6002_daa9_52b16e0424fd 811c79a2_ba50_06c0_a8f2_1ba4e7d80c06["it_should_ignore_known_files()"] 811c79a2_ba50_06c0_a8f2_1ba4e7d80c06 -->|calls| 2f3305c3_ad36_6002_daa9_52b16e0424fd 9eafa991_290a_8814_30b1_269a3bd165b2["it_should_ignore_and_expand_nested_ignored_folders()"] 9eafa991_290a_8814_30b1_269a3bd165b2 -->|calls| 2f3305c3_ad36_6002_daa9_52b16e0424fd style 2f3305c3_ad36_6002_daa9_52b16e0424fd 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
Defined In
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, defined in crates/oxide/tests/scanner.rs.
Where is scan() defined?
scan() is defined in crates/oxide/tests/scanner.rs at line 141.
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