MCPcopy Index your code

hub / github.com/PlasmaFAIR/fortitude / functions

Functions1,280 in github.com/PlasmaFAIR/fortitude

↓ 165 callersMethodjoin
(mut self)
crates/fortitude_server/src/server/schedule/thread.rs:88
↓ 148 callersMethodkind
(&'_ self)
crates/fortitude_linter/src/ast/types.rs:273
↓ 136 callersFunctiondefault
()
crates/fortitude_linter/src/diagnostics/message/text.rs:244
↓ 121 callersMethodto_text
(&self, src: &'a str)
crates/fortitude_linter/src/ast.rs:230
↓ 105 callersMethoditer
Returns an iterator over the fixes in the map, along with the file path.
crates/fortitude_linter/src/diagnostics/mod.rs:73
↓ 92 callersMethodclone
(this: &Self)
crates/fortitude_server/src/session/request_queue.rs:154
↓ 63 callersMethodpath
(&self)
crates/fortitude_workspace/src/resolver.rs:590
↓ 53 callersMethodinsert
Inserts `rule` into the set. ## Examples ```rust # use fortitude_linter::registry::{Rule, RuleSet}; let mut set = RuleSet::empty(); assert!(!set.con
crates/fortitude_linter/src/registry/rule_set.rs:211
↓ 52 callersMethodextend
(&mut self, iter: T)
crates/fortitude_linter/src/registry/rule_set.rs:332
↓ 51 callersMethodchild_with_name
(&self, name: &str)
crates/fortitude_linter/src/ast.rs:207
↓ 44 callersMethodlen
Returns the number of rules in this set. ## Examples ```rust # use fortitude_linter::registry::{Rule, RuleSet}; assert_eq!(RuleSet::empty().len(), 0
crates/fortitude_linter/src/registry/rule_set.rs:185
↓ 44 callersMethodstart_textsize
(&self)
crates/fortitude_linter/src/traits.rs:60
↓ 41 callersMethodinto_iter
(self)
crates/fortitude_linter/src/registry/rule_set.rs:342
↓ 37 callersMethodend_textsize
(&self)
crates/fortitude_linter/src/traits.rs:64
↓ 33 callersMethodcontains
(&self, rule: Rule)
crates/fortitude_linter/src/registry/rule_set.rs:253
↓ 33 callersMethodfind
Returns `Some` if this set has an option that resolves to `name` and `None` otherwise. The name can be separated by `.` to find a nested option. ##
crates/fortitude_workspace/src/options_base.rs:258
↓ 33 callersMethodis_empty
(&self)
crates/fortitude_server/src/edit.rs:153
↓ 29 callersMethodas_str
(&self)
crates/fortitude_linter/src/stylist.rs:135
↓ 29 callersMethodget
Return the symbol with the given name if it exists
crates/fortitude_linter/src/ast/symbol_table.rs:73
↓ 29 callersMethoditer
Returns an iterator over the rules in this set. ## Examples ```rust # use fortitude_linter::registry::{Rule, RuleSet}; let set = RuleSet::from_rules
crates/fortitude_linter/src/registry/rule_set.rs:288
↓ 28 callersMethodany
(&self, rules: &[Rule])
crates/fortitude_linter/src/registry/rule_set.rs:264
↓ 28 callersMethodnode
(&self)
crates/fortitude_linter/src/ast/types.rs:94
↓ 24 callersMethodfinish
(self)
crates/fortitude_workspace/src/resolver.rs:387
↓ 24 callersMethodwith_failure_code
(self, code: server::ErrorCode)
crates/fortitude_server/src/server/api.rs:379
↓ 23 callersMethodnext
(&mut self)
crates/fortitude_linter/src/ast.rs:23
↓ 23 callersMethodparse
Parses a match arm such as `(Pycodestyle, "E112") => (RuleGroup::Preview, rules::pycodestyle::rules::logical_lines::NoIndentedBlock),`
crates/fortitude_macros/src/map_codes.rs:596
↓ 23 callersMethodto_source_code
(&self)
crates/fortitude_linter/src/locator.rs:58
↓ 22 callersMethodenabled
(&self, rule: Rule)
crates/fortitude_linter/src/rule_table.rs:38
↓ 22 callersMethodlen
Return the number of bytes in the source code.
crates/fortitude_linter/src/locator.rs:219
↓ 22 callersMethodwith_fix
(mut self, fix: Fix)
crates/fortitude_linter/src/diagnostics/mod.rs:157
↓ 21 callersMethodrule
TODO (peter): Don't return `Option`? Returns the [`Rule`] corresponding to the diagnostic message.
crates/fortitude_linter/src/diagnostics/diagnostic_message.rs:75
↓ 21 callersFunctiontest_path
Run [`check_path`] on a Fortran file in the `resources/test/fixtures` directory.
crates/fortitude_linter/src/test.rs:28
↓ 20 callersMethodancestors
(&self)
crates/fortitude_linter/src/ast.rs:203
↓ 18 callersFunctioncheck
(query: &DocumentQuery, encoding: PositionEncoding)
crates/fortitude_server/src/lint.rs:48
↓ 18 callersMethodfile_name
(&self)
crates/fortitude_workspace/src/resolver.rs:597
↓ 18 callersMethodline_index
(&self)
crates/fortitude_linter/src/locator.rs:54
↓ 17 callersMethodas_str
(&self)
crates/fortitude_linter/src/ast/types.rs:307
↓ 17 callersMethodedit_replacement
(&self, original: &SourceFile, content: String)
crates/fortitude_linter/src/ast.rs:284
↓ 17 callersFunctionread_to_string
Wrapper around `std::fs::read_to_string` with some extra error checking. Check that the file length is representable as `u32` so that we don't need t
crates/fortitude_linter/src/fs.rs:22
↓ 17 callersMethodremove
Removes `rule` from the set. ## Examples ```rust # use fortitude_linter::registry::{Rule, RuleSet}; let mut set = RuleSet::from_rules(&[Rule::Missing
crates/fortitude_linter/src/registry/rule_set.rs:237
↓ 16 callersFunctioncapture_emitter_output
( emitter: &mut dyn Emitter, messages: &[DiagnosticMessage], )
crates/fortitude_linter/src/diagnostics/message/mod.rs:137
↓ 16 callersMethodcontains
(&self, file: P)
crates/fortitude_linter/src/line_filter.rs:90
↓ 16 callersFunctioncreate_messages
()
crates/fortitude_linter/src/diagnostics/message/mod.rs:82
↓ 15 callersMethodrules
Returns rules matching the selector, taking into account rule groups like preview and deprecated.
crates/fortitude_linter/src/rule_selector.rs:227
↓ 15 callersMethodvalues
Returns an iterator over the fixes in the map.
crates/fortitude_linter/src/diagnostics/mod.rs:78
↓ 14 callersMethodis_empty
Return `true` if the source code is empty.
crates/fortitude_linter/src/locator.rs:228
↓ 14 callersMethodline_start
(&self, offset: TextSize)
crates/fortitude_linter/src/locator.rs:268
↓ 14 callersMethodnext
(&mut self)
crates/fortitude_linter/src/registry/rule_set.rs:364
↓ 13 callersMethodemit
( &mut self, writer: &mut dyn Write, messages: &[DiagnosticMessage], )
crates/fortitude_linter/src/diagnostics/message/text.rs:69
↓ 13 callersMethodshow_error_message
Sends a request to display an error to the client with a formatted message. The error is sent in a `window/showMessage` notification. Logs an error i
crates/fortitude_server/src/session/client.rs:217
↓ 12 callersFunctionparse_snippet
(code: &str)
crates/fortitude_linter/src/stylist.rs:316
↓ 12 callersMethodquery
(&self)
crates/fortitude_server/src/session.rs:198
↓ 12 callersMethodtextrange
(&self)
crates/fortitude_linter/src/rules/style/use_statement.rs:179
↓ 11 callersMethodis_empty
Returns `true` if this set contains no rules, `false` otherwise. ## Examples ```rust # use fortitude_linter::registry::{Rule, RuleSet}; assert!(Rule
crates/fortitude_linter/src/registry/rule_set.rs:170
↓ 11 callersMethodrange
(&self)
crates/fortitude_linter/src/diagnostics/mod.rs:205
↓ 10 callersMethodattributes
(&self)
crates/fortitude_linter/src/ast/types.rs:377
↓ 10 callersFunctionnormalize_path
Convert any path to an absolute path (based on the current working directory).
crates/fortitude_linter/src/fs.rs:250
↓ 10 callersMethodprefix_and_code
(&self)
crates/fortitude_linter/src/rule_selector.rs:149
↓ 10 callersMethodresolve
(self, path: &Path)
crates/fortitude_workspace/src/resolver.rs:77
↓ 9 callersMethoddecl_statement
(&'a self)
crates/fortitude_linter/src/ast/types.rs:457
↓ 9 callersMethodfixable
Returns `true` if the message contains a [`Fix`].
crates/fortitude_linter/src/diagnostics/diagnostic_message.rs:69
↓ 9 callersMethodindentation
(&self)
crates/fortitude_linter/src/stylist.rs:25
↓ 9 callersFunctionmatch_candidate_exclusion
Return `true` if the given candidates should be ignored based on the exclusion criteria.
crates/fortitude_workspace/src/resolver.rs:696
↓ 9 callersMethodrecord
(visit: &mut dyn Visit)
crates/fortitude_workspace/src/options_base.rs:43
↓ 9 callersFunctionresolve_root_settings
Extract the [`Settings`] from a given `fortitude.toml` and process the configuration with the given [`ConfigurationTransformer`].
crates/fortitude_workspace/src/resolver.rs:283
↓ 9 callersFunctionresolve_rules
(args: RuleSelection, preview: &PreviewMode)
crates/fortitude_workspace/src/configuration.rs:836
↓ 9 callersMethodresolved_client_capabilities
(&self)
crates/fortitude_server/src/session.rs:160
↓ 9 callersMethodslice
(&self, ranged: T)
crates/fortitude_linter/src/locator.rs:209
↓ 9 callersMethodtext_len
(&self)
crates/fortitude_linter/src/locator.rs:223
↓ 8 callersMethodall_rules
Return all matching rules, regardless of rule group filters like preview and deprecated.
crates/fortitude_linter/src/rule_selector.rs:209
↓ 8 callersMethodcompute_start_location
Computes the start source location for the message.
crates/fortitude_linter/src/diagnostics/diagnostic_message.rs:85
↓ 8 callersMethoddescendants
(&self)
crates/fortitude_linter/src/ast.rs:175
↓ 8 callersMethodfix
Returns the [`Fix`] for the message, if there is any.
crates/fortitude_linter/src/diagnostics/diagnostic_message.rs:64
↓ 8 callersMethodget
(&self, document_path: &Path)
crates/fortitude_server/src/session/index/fortitude_settings.rs:428
↓ 8 callersMethodget
Return offset ranges for filename, if it exists Requires a `SourceFile` to turn line numbers into offsets
crates/fortitude_linter/src/line_filter.rs:97
↓ 8 callersMethodintersects
Returns true if `self` and `other` contain at least one common rule. ## Examples ```rust # use fortitude_linter::registry::{Rule, RuleSet}; let set_1
crates/fortitude_linter/src/registry/rule_set.rs:145
↓ 8 callersMethodinto_settings
(self, client: Client)
crates/fortitude_server/src/session/options.rs:66
↓ 8 callersMethodinto_url
Converts the key back into its original URL.
crates/fortitude_server/src/edit.rs:69
↓ 8 callersMethodline_end
(&self, offset: TextSize)
crates/fortitude_linter/src/locator.rs:283
↓ 8 callersFunctionresolve_bool_arg
Resolve `--foo` and `--no-foo` arguments
crates/fortitude_workspace/src/configuration.rs:175
↓ 8 callersFunctionsettings_toml
Return the path to the `fpm/fortitude/pyproject.toml` file in a given directory. Adapted from ruff
crates/fortitude_workspace/src/configuration.rs:81
↓ 8 callersMethodtake_snapshot
Creates a document snapshot with the URL referencing the document to snapshot.
crates/fortitude_server/src/session.rs:96
↓ 7 callersMethodall
Returns all code actions kinds that the server currently supports.
crates/fortitude_server/src/server.rs:231
↓ 7 callersFunctionapply_fixes
Apply a series of fixes.
crates/fortitude_linter/src/fix/mod.rs:60
↓ 7 callersMethodbody
Returns the message body to display to the user.
crates/fortitude_linter/src/diagnostics/diagnostic_message.rs:49
↓ 7 callersMethodcombine
(self, other: Self)
crates/fortitude_server/src/session/options.rs:395
↓ 7 callersFunctioncompute_replacement
(source: &str, modified: &str)
crates/fortitude_server/src/edit/replacement.rs:70
↓ 7 callersFunctiondeserialize_fixture
(content: &str)
crates/fortitude_server/src/session/options.rs:487
↓ 7 callersMethodis_empty
(&self)
crates/fortitude_linter/src/diagnostics/mod.rs:41
↓ 7 callersMethodmessage_formats
()
crates/fortitude_linter/src/diagnostics/violation.rs:85
↓ 7 callersMethodnames
(&self)
crates/fortitude_linter/src/ast/types.rs:381
↓ 7 callersMethodnode
(&'a self)
crates/fortitude_linter/src/ast.rs:546
↓ 7 callersMethodset_fix
(&mut self, fix: Fix)
crates/fortitude_linter/src/diagnostics/mod.rs:164
↓ 7 callersMethodsource_file
Returns the [`SourceFile`] which the message belongs to.
crates/fortitude_linter/src/diagnostics/diagnostic_message.rs:100
↓ 7 callersMethodwrite_str
(&mut self, s: &str)
crates/fortitude_linter/src/diagnostics/message/grouped.rs:167
↓ 6 callersMethodas_char
(&self)
crates/fortitude_linter/src/stylist.rs:139
↓ 6 callersFunctioncreate_diagnostics
(edit: impl IntoIterator<Item = Edit>)
crates/fortitude_linter/src/fix/mod.rs:158
↓ 6 callersMethodedit_delete
(&self, source_file: &SourceFile)
crates/fortitude_linter/src/ast.rs:263
↓ 6 callersMethodgoto_ref
(&'a self)
crates/fortitude_linter/src/ast.rs:535
↓ 6 callersMethodinto_iter
(self)
crates/fortitude/src/commands/completions/config.rs:18
next →1–100 of 1,280, ranked by callers