MCPcopy Create free account

hub / github.com/ad-si/FastLint / functions

Functions45 in github.com/ad-si/FastLint

↓ 14 callersFunctionwrite
(dir: &Path, name: &str, body: &str)
tests/cli.rs:32
↓ 7 callersFunctionrun
(args: &[&str])
tests/cli.rs:13
↓ 6 callersFunctionmake_repo
()
tests/cli.rs:25
↓ 5 callersFunctioncollect_files
Walk the given paths, returning every file that should be linted. Honors `.gitignore`, `.ignore`, and hidden-file rules of the `ignore` crate (matchin
src/walker.rs:9
↓ 4 callersFunctioncheck
Detect unresolved Git merge-conflict markers.
src/checks/conflict.rs:6
↓ 4 callersFunctionrun
(text: &str)
src/checks/trailing_whitespace.rs:29
↓ 3 callersFunctionrun
(text: &str)
src/checks/conflict.rs:37
↓ 1 callersFunctionbyte_offset_to_line_col
Convert a 0-based byte offset to 1-based (line, column).
src/checks/typos_check.rs:51
↓ 1 callersFunctioncheck
Warn on trailing whitespace at the end of any line.
src/checks/trailing_whitespace.rs:6
↓ 1 callersFunctioncheck
Source-code spell-check using the `typos` crate. Reports candidate misspellings — false positives still happen (domain words, identifiers, vendored sn
src/checks/typos_check.rs:11
↓ 1 callersFunctioncheck_file
(path: &Path)
src/checks/mod.rs:29
↓ 1 callersFunctionis_binary_extension
(ext: &str)
src/walker.rs:77
↓ 1 callersFunctionprint_human
(diagnostics: &[Diagnostic], color: bool)
src/output.rs:14
↓ 1 callersFunctionprint_json
(diagnostics: &[Diagnostic])
src/output.rs:5
↓ 1 callersFunctionrun
Run every check against every file, in parallel, and gather diagnostics.
src/checks/mod.rs:12
↓ 1 callersFunctionrun
(text: &str)
src/checks/typos_check.rs:67
↓ 1 callersFunctionshould_lint
Filter out binary, generated, or obviously-uninteresting paths.
src/walker.rs:50
Functionaccepts_bare_markers_without_branch_name
()
src/checks/conflict.rs:61
Functionclean_directory_exits_zero
()
tests/cli.rs:37
Functionclean_file_is_clean
()
src/checks/conflict.rs:79
Functionclean_text_yields_no_typos
()
src/checks/typos_check.rs:107
Functioncollect_includes_regular_files
()
src/walker.rs:115
Functioncollect_respects_gitignore
()
src/walker.rs:127
Functiondetects_all_three_marker_kinds
()
src/checks/conflict.rs:44
Functiondetects_known_typo_with_suggestion
()
src/checks/typos_check.rs:93
Functionempty_line_is_not_flagged
()
src/checks/trailing_whitespace.rs:53
Functionflags_trailing_spaces
()
src/checks/trailing_whitespace.rs:36
Functionflags_trailing_tabs
()
src/checks/trailing_whitespace.rs:46
Functionignores_similar_but_unrelated_lines
()
src/checks/conflict.rs:67
Functionjson_for_clean_dir_is_empty_array
()
tests/cli.rs:89
Functionjson_output_is_valid_array
()
tests/cli.rs:70
Methodlabel
(self)
src/diagnostic.rs:13
Functionline_col_after_newline
()
src/checks/typos_check.rs:79
Functionline_col_clamped_to_len
()
src/checks/typos_check.rs:87
Functionline_col_first_byte
()
src/checks/typos_check.rs:74
Functionmain
()
src/main.rs:31
Functionmerge_conflict_yields_error_exit
()
tests/cli.rs:46
Functionmissing_path_errors
()
src/walker.rs:155
Functionnonexistent_path_exits_with_usage_error
()
tests/cli.rs:99
Functionpaint
(text: &str, color: Color, enabled: bool)
src/output.rs:73
Functionrespects_gitignore
()
tests/cli.rs:106
Functionsingle_file_path_is_returned_directly
()
src/walker.rs:146
Functionskips_lockfiles_and_binaries
()
src/walker.rs:105
Functiontypos_emit_warnings_but_zero_exit
()
tests/cli.rs:60
Functionwhitespace_only_line_is_flagged
()
src/checks/trailing_whitespace.rs:62