Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/PlasmaFAIR/fortitude
/ functions
Functions
1,280 in github.com/PlasmaFAIR/fortitude
⨍
Functions
1,280
◇
Types & classes
430
↓ 165 callers
Method
join
(mut self)
crates/fortitude_server/src/server/schedule/thread.rs:88
↓ 148 callers
Method
kind
(&'_ self)
crates/fortitude_linter/src/ast/types.rs:273
↓ 136 callers
Function
default
()
crates/fortitude_linter/src/diagnostics/message/text.rs:244
↓ 121 callers
Method
to_text
(&self, src: &'a str)
crates/fortitude_linter/src/ast.rs:230
↓ 105 callers
Method
iter
Returns an iterator over the fixes in the map, along with the file path.
crates/fortitude_linter/src/diagnostics/mod.rs:73
↓ 92 callers
Method
clone
(this: &Self)
crates/fortitude_server/src/session/request_queue.rs:154
↓ 63 callers
Method
path
(&self)
crates/fortitude_workspace/src/resolver.rs:590
↓ 53 callers
Method
insert
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 callers
Method
extend
(&mut self, iter: T)
crates/fortitude_linter/src/registry/rule_set.rs:332
↓ 51 callers
Method
child_with_name
(&self, name: &str)
crates/fortitude_linter/src/ast.rs:207
↓ 44 callers
Method
len
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 callers
Method
start_textsize
(&self)
crates/fortitude_linter/src/traits.rs:60
↓ 41 callers
Method
into_iter
(self)
crates/fortitude_linter/src/registry/rule_set.rs:342
↓ 37 callers
Method
end_textsize
(&self)
crates/fortitude_linter/src/traits.rs:64
↓ 33 callers
Method
contains
(&self, rule: Rule)
crates/fortitude_linter/src/registry/rule_set.rs:253
↓ 33 callers
Method
find
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 callers
Method
is_empty
(&self)
crates/fortitude_server/src/edit.rs:153
↓ 29 callers
Method
as_str
(&self)
crates/fortitude_linter/src/stylist.rs:135
↓ 29 callers
Method
get
Return the symbol with the given name if it exists
crates/fortitude_linter/src/ast/symbol_table.rs:73
↓ 29 callers
Method
iter
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 callers
Method
any
(&self, rules: &[Rule])
crates/fortitude_linter/src/registry/rule_set.rs:264
↓ 28 callers
Method
node
(&self)
crates/fortitude_linter/src/ast/types.rs:94
↓ 24 callers
Method
finish
(self)
crates/fortitude_workspace/src/resolver.rs:387
↓ 24 callers
Method
with_failure_code
(self, code: server::ErrorCode)
crates/fortitude_server/src/server/api.rs:379
↓ 23 callers
Method
next
(&mut self)
crates/fortitude_linter/src/ast.rs:23
↓ 23 callers
Method
parse
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 callers
Method
to_source_code
(&self)
crates/fortitude_linter/src/locator.rs:58
↓ 22 callers
Method
enabled
(&self, rule: Rule)
crates/fortitude_linter/src/rule_table.rs:38
↓ 22 callers
Method
len
Return the number of bytes in the source code.
crates/fortitude_linter/src/locator.rs:219
↓ 22 callers
Method
with_fix
(mut self, fix: Fix)
crates/fortitude_linter/src/diagnostics/mod.rs:157
↓ 21 callers
Method
rule
TODO (peter): Don't return `Option`? Returns the [`Rule`] corresponding to the diagnostic message.
crates/fortitude_linter/src/diagnostics/diagnostic_message.rs:75
↓ 21 callers
Function
test_path
Run [`check_path`] on a Fortran file in the `resources/test/fixtures` directory.
crates/fortitude_linter/src/test.rs:28
↓ 20 callers
Method
ancestors
(&self)
crates/fortitude_linter/src/ast.rs:203
↓ 18 callers
Function
check
(query: &DocumentQuery, encoding: PositionEncoding)
crates/fortitude_server/src/lint.rs:48
↓ 18 callers
Method
file_name
(&self)
crates/fortitude_workspace/src/resolver.rs:597
↓ 18 callers
Method
line_index
(&self)
crates/fortitude_linter/src/locator.rs:54
↓ 17 callers
Method
as_str
(&self)
crates/fortitude_linter/src/ast/types.rs:307
↓ 17 callers
Method
edit_replacement
(&self, original: &SourceFile, content: String)
crates/fortitude_linter/src/ast.rs:284
↓ 17 callers
Function
read_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 callers
Method
remove
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 callers
Function
capture_emitter_output
( emitter: &mut dyn Emitter, messages: &[DiagnosticMessage], )
crates/fortitude_linter/src/diagnostics/message/mod.rs:137
↓ 16 callers
Method
contains
(&self, file: P)
crates/fortitude_linter/src/line_filter.rs:90
↓ 16 callers
Function
create_messages
()
crates/fortitude_linter/src/diagnostics/message/mod.rs:82
↓ 15 callers
Method
rules
Returns rules matching the selector, taking into account rule groups like preview and deprecated.
crates/fortitude_linter/src/rule_selector.rs:227
↓ 15 callers
Method
values
Returns an iterator over the fixes in the map.
crates/fortitude_linter/src/diagnostics/mod.rs:78
↓ 14 callers
Method
is_empty
Return `true` if the source code is empty.
crates/fortitude_linter/src/locator.rs:228
↓ 14 callers
Method
line_start
(&self, offset: TextSize)
crates/fortitude_linter/src/locator.rs:268
↓ 14 callers
Method
next
(&mut self)
crates/fortitude_linter/src/registry/rule_set.rs:364
↓ 13 callers
Method
emit
( &mut self, writer: &mut dyn Write, messages: &[DiagnosticMessage], )
crates/fortitude_linter/src/diagnostics/message/text.rs:69
↓ 13 callers
Method
show_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 callers
Function
parse_snippet
(code: &str)
crates/fortitude_linter/src/stylist.rs:316
↓ 12 callers
Method
query
(&self)
crates/fortitude_server/src/session.rs:198
↓ 12 callers
Method
textrange
(&self)
crates/fortitude_linter/src/rules/style/use_statement.rs:179
↓ 11 callers
Method
is_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 callers
Method
range
(&self)
crates/fortitude_linter/src/diagnostics/mod.rs:205
↓ 10 callers
Method
attributes
(&self)
crates/fortitude_linter/src/ast/types.rs:377
↓ 10 callers
Function
normalize_path
Convert any path to an absolute path (based on the current working directory).
crates/fortitude_linter/src/fs.rs:250
↓ 10 callers
Method
prefix_and_code
(&self)
crates/fortitude_linter/src/rule_selector.rs:149
↓ 10 callers
Method
resolve
(self, path: &Path)
crates/fortitude_workspace/src/resolver.rs:77
↓ 9 callers
Method
decl_statement
(&'a self)
crates/fortitude_linter/src/ast/types.rs:457
↓ 9 callers
Method
fixable
Returns `true` if the message contains a [`Fix`].
crates/fortitude_linter/src/diagnostics/diagnostic_message.rs:69
↓ 9 callers
Method
indentation
(&self)
crates/fortitude_linter/src/stylist.rs:25
↓ 9 callers
Function
match_candidate_exclusion
Return `true` if the given candidates should be ignored based on the exclusion criteria.
crates/fortitude_workspace/src/resolver.rs:696
↓ 9 callers
Method
record
(visit: &mut dyn Visit)
crates/fortitude_workspace/src/options_base.rs:43
↓ 9 callers
Function
resolve_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 callers
Function
resolve_rules
(args: RuleSelection, preview: &PreviewMode)
crates/fortitude_workspace/src/configuration.rs:836
↓ 9 callers
Method
resolved_client_capabilities
(&self)
crates/fortitude_server/src/session.rs:160
↓ 9 callers
Method
slice
(&self, ranged: T)
crates/fortitude_linter/src/locator.rs:209
↓ 9 callers
Method
text_len
(&self)
crates/fortitude_linter/src/locator.rs:223
↓ 8 callers
Method
all_rules
Return all matching rules, regardless of rule group filters like preview and deprecated.
crates/fortitude_linter/src/rule_selector.rs:209
↓ 8 callers
Method
compute_start_location
Computes the start source location for the message.
crates/fortitude_linter/src/diagnostics/diagnostic_message.rs:85
↓ 8 callers
Method
descendants
(&self)
crates/fortitude_linter/src/ast.rs:175
↓ 8 callers
Method
fix
Returns the [`Fix`] for the message, if there is any.
crates/fortitude_linter/src/diagnostics/diagnostic_message.rs:64
↓ 8 callers
Method
get
(&self, document_path: &Path)
crates/fortitude_server/src/session/index/fortitude_settings.rs:428
↓ 8 callers
Method
get
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 callers
Method
intersects
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 callers
Method
into_settings
(self, client: Client)
crates/fortitude_server/src/session/options.rs:66
↓ 8 callers
Method
into_url
Converts the key back into its original URL.
crates/fortitude_server/src/edit.rs:69
↓ 8 callers
Method
line_end
(&self, offset: TextSize)
crates/fortitude_linter/src/locator.rs:283
↓ 8 callers
Function
resolve_bool_arg
Resolve `--foo` and `--no-foo` arguments
crates/fortitude_workspace/src/configuration.rs:175
↓ 8 callers
Function
settings_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 callers
Method
take_snapshot
Creates a document snapshot with the URL referencing the document to snapshot.
crates/fortitude_server/src/session.rs:96
↓ 7 callers
Method
all
Returns all code actions kinds that the server currently supports.
crates/fortitude_server/src/server.rs:231
↓ 7 callers
Function
apply_fixes
Apply a series of fixes.
crates/fortitude_linter/src/fix/mod.rs:60
↓ 7 callers
Method
body
Returns the message body to display to the user.
crates/fortitude_linter/src/diagnostics/diagnostic_message.rs:49
↓ 7 callers
Method
combine
(self, other: Self)
crates/fortitude_server/src/session/options.rs:395
↓ 7 callers
Function
compute_replacement
(source: &str, modified: &str)
crates/fortitude_server/src/edit/replacement.rs:70
↓ 7 callers
Function
deserialize_fixture
(content: &str)
crates/fortitude_server/src/session/options.rs:487
↓ 7 callers
Method
is_empty
(&self)
crates/fortitude_linter/src/diagnostics/mod.rs:41
↓ 7 callers
Method
message_formats
()
crates/fortitude_linter/src/diagnostics/violation.rs:85
↓ 7 callers
Method
names
(&self)
crates/fortitude_linter/src/ast/types.rs:381
↓ 7 callers
Method
node
(&'a self)
crates/fortitude_linter/src/ast.rs:546
↓ 7 callers
Method
set_fix
(&mut self, fix: Fix)
crates/fortitude_linter/src/diagnostics/mod.rs:164
↓ 7 callers
Method
source_file
Returns the [`SourceFile`] which the message belongs to.
crates/fortitude_linter/src/diagnostics/diagnostic_message.rs:100
↓ 7 callers
Method
write_str
(&mut self, s: &str)
crates/fortitude_linter/src/diagnostics/message/grouped.rs:167
↓ 6 callers
Method
as_char
(&self)
crates/fortitude_linter/src/stylist.rs:139
↓ 6 callers
Function
create_diagnostics
(edit: impl IntoIterator<Item = Edit>)
crates/fortitude_linter/src/fix/mod.rs:158
↓ 6 callers
Method
edit_delete
(&self, source_file: &SourceFile)
crates/fortitude_linter/src/ast.rs:263
↓ 6 callers
Method
goto_ref
(&'a self)
crates/fortitude_linter/src/ast.rs:535
↓ 6 callers
Method
into_iter
(self)
crates/fortitude/src/commands/completions/config.rs:18
next →
1–100 of 1,280, ranked by callers