Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PlasmaFAIR/fortitude
/ functions
Functions
1,280 in github.com/PlasmaFAIR/fortitude
⨍
Functions
1,280
◇
Types & classes
430
↓ 3 callers
Method
transform
(&self, filesystem_configuration: Configuration)
crates/fortitude_server/src/session/index/fortitude_settings.rs:459
↓ 3 callers
Method
try_to_controlflow
(self, source_file: &SourceFile)
crates/fortitude_linter/src/ast.rs:396
↓ 3 callers
Method
union
(mut self, other: &Self)
crates/fortitude_linter/src/registry/rule_set.rs:92
↓ 3 callers
Method
with_show_source
(mut self, show_source: bool)
crates/fortitude_linter/src/diagnostics/message/grouped.rs:37
↓ 2 callers
Method
add_to
(self, builder: &mut GlobSetBuilder)
crates/fortitude_linter/src/fs.rs:76
↓ 2 callers
Method
after
(&self, offset: TextSize)
crates/fortitude_linter/src/locator.rs:70
↓ 2 callers
Method
apply_changes
( &mut self, changes: Vec<lsp_types::TextDocumentContentChangeEvent>, new_version: Doc
crates/fortitude_server/src/edit/text_document.rs:79
↓ 2 callers
Method
apply_to_current_thread
(self)
crates/fortitude_server/src/server/schedule/thread/priority.rs:25
↓ 2 callers
Method
as_usize
(self)
crates/fortitude_linter/src/line_width.rs:11
↓ 2 callers
Function
assert_preview_all_options
(all_options: &AllOptions, preview: bool)
crates/fortitude_server/src/session/options.rs:790
↓ 2 callers
Function
assert_preview_client_options
(options: &ClientOptions, preview: bool)
crates/fortitude_server/src/session/options.rs:786
↓ 2 callers
Method
call
(&mut self, diff_delta: DiffDelta, hunk: DiffHunk)
crates/fortitude_linter/src/line_filter.rs:217
↓ 2 callers
Function
check_file
( path: &Path, file: &SourceFile, line_filter: &Option<FilterSet>, settings: &CheckSettings,
crates/fortitude_linter/src/lib.rs:83
↓ 2 callers
Function
check_path
( path: &Path, file: &SourceFile, settings: &CheckSettings, tree: &Tree, ignore_allow_comm
crates/fortitude_linter/src/lib.rs:164
↓ 2 callers
Method
client_settings
(&self, key: &DocumentKey)
crates/fortitude_server/src/session/index.rs:283
↓ 2 callers
Method
code
Returns the rule code that was violated.
crates/fortitude_linter/src/diagnostics/diagnostic_message.rs:54
↓ 2 callers
Function
collect_per_file_ignores
Convert a list of `PatternPrefixPair` structs to `PerFileIgnore`.
crates/fortitude_linter/src/rule_selector.rs:495
↓ 2 callers
Function
collect_rule_codes
(rules: impl IntoIterator<Item = Rule>)
crates/fortitude_linter/src/lib.rs:479
↓ 2 callers
Method
complete
Marks the request as completed. Returns the time when the request was registered and the request method name, or `None` if the request was not pendin
crates/fortitude_server/src/session/request_queue.rs:101
↓ 2 callers
Function
containing_loop
Find the first loop that contains `node`
crates/fortitude_linter/src/rules/obsolescent/non_block_do.rs:516
↓ 2 callers
Function
darkmode
()
crates/fortitude/src/explain.rs:120
↓ 2 callers
Function
dir_name
(linter_name: str)
scripts/_utils.py:11
↓ 2 callers
Method
documentation
(&self)
crates/fortitude_workspace/src/options_base.rs:104
↓ 2 callers
Function
dtype_is_plain_number
Returns true if the type passed to it is number-like, and of a kind that can be modified using kinds. 'double precision' and 'double complex' are not
crates/fortitude_linter/src/ast.rs:408
↓ 2 callers
Function
edit_remove_label
Include whitespace and optional trailing comma
crates/fortitude_linter/src/rules/obsolescent/non_block_do.rs:350
↓ 2 callers
Method
errmsg
(self)
crates/fortitude_linter/src/rules/correctness/error_handling.rs:60
↓ 2 callers
Method
escaped
(self)
crates/fortitude_linter/src/stylist.rs:185
↓ 2 callers
Method
file_url
Get the URL for the document selected by this query.
crates/fortitude_server/src/session/index.rs:513
↓ 2 callers
Function
find_user_settings_toml
()
crates/fortitude_workspace/src/configuration.rs:123
↓ 2 callers
Function
fingerprint
Generate a unique fingerprint to identify a violation.
crates/fortitude_linter/src/diagnostics/message/gitlab.rs:112
↓ 2 callers
Function
fix_all
(snapshot: &DocumentSnapshot)
crates/fortitude_server/src/server/api/requests/code_action.rs:87
↓ 2 callers
Function
fix_all_edit
( query: &DocumentQuery, encoding: PositionEncoding, )
crates/fortitude_server/src/server/api/requests/code_action_resolve.rs:82
↓ 2 callers
Function
fix_end_if
(node: &Node, source: &SourceFile, base_indentation: &str)
crates/fortitude_linter/src/rules/obsolescent/arithmetic_if.rs:292
↓ 2 callers
Function
fpm_fortitude_enabled
(path: P)
crates/fortitude_workspace/src/configuration.rs:69
↓ 2 callers
Function
generate
()
crates/fortitude_dev/src/generate_options.rs:53
↓ 2 callers
Function
generate_diagnostics
(snapshot: &DocumentSnapshot)
crates/fortitude_server/src/server/api/diagnostics.rs:8
↓ 2 callers
Function
get_last_three_path_parts
Return a list of up to the last three parts of a path.
python/fortitude/__main__.py:52
↓ 2 callers
Function
get_output
()
crates/fortitude_linter/src/diagnostics/message/sarif.rs:192
↓ 2 callers
Function
get_prefix_ident
Returns an identifier for the given prefix.
crates/fortitude_macros/src/rule_code_prefix.rs:125
↓ 2 callers
Function
get_redirect
Returns the code and the redirect target if the given code is a redirect. (The same code is returned to obtain it with a static lifetime).
crates/fortitude_linter/src/rule_redirects.rs:16
↓ 2 callers
Function
get_redirect_target
(code: &str)
crates/fortitude_linter/src/rule_redirects.rs:10
↓ 2 callers
Function
group_messages_by_filename
( messages: &[DiagnosticMessage], )
crates/fortitude_linter/src/diagnostics/message/mod.rs:58
↓ 2 callers
Function
group_use_statements_into_blocks
Groups indices of `use` statements into contiguous blocks.
crates/fortitude_linter/src/rules/style/use_statement.rs:121
↓ 2 callers
Method
has_any_attributes
(&self, attrs: &[AttributeKind])
crates/fortitude_linter/src/ast/types.rs:389
↓ 2 callers
Method
indentation_ignore_stmt_label
(&self, source_file: &SourceFile)
crates/fortitude_linter/src/ast.rs:254
↓ 2 callers
Function
intersection_all
Collect all the items from an iterable of slices that are present in all slices.
crates/fortitude_macros/src/rule_code_prefix.rs:105
↓ 2 callers
Function
is_document_excluded_for_linting
Return `true` if the document at the given [`Path`] should be excluded from linting.
crates/fortitude_server/src/resolve.rs:13
↓ 2 callers
Function
is_file_excluded
Return `true` if the given top-level [`Path`] should be excluded.
crates/fortitude_workspace/src/resolver.rs:645
↓ 2 callers
Method
is_implicit_none_external
(&self)
crates/fortitude_linter/src/ast/types.rs:558
↓ 2 callers
Method
is_not_implicit_none
(&self)
crates/fortitude_linter/src/ast/types.rs:550
↓ 2 callers
Method
is_shutdown_requested
(&self)
crates/fortitude_server/src/session.rs:83
↓ 2 callers
Function
iso_fortran_env_param
(dtype: S, literal: u8)
crates/fortitude_linter/src/rules/portability/literal_kinds.rs:12
↓ 2 callers
Method
iter_enabled
Returns an iterator over all enabled rules.
crates/fortitude_linter/src/rule_table.rs:55
↓ 2 callers
Method
key_from_url
(&self, url: Url)
crates/fortitude_server/src/session/index.rs:105
↓ 2 callers
Method
kwarg_exists
(&self, keyword: S, src: &str)
crates/fortitude_linter/src/ast.rs:226
↓ 2 callers
Method
kwarg_value
(&self, keyword: S, src: &str)
crates/fortitude_linter/src/ast.rs:222
↓ 2 callers
Method
label
(self)
crates/fortitude_server/src/server.rs:243
↓ 2 callers
Function
literal_as_io_unit
(node: &'a Node, src: &SourceFile)
crates/fortitude_linter/src/rules/utilities.rs:15
↓ 2 callers
Method
log_level
(&self)
crates/fortitude/src/cli.rs:60
↓ 2 callers
Function
loop_has_branch_to_end
(do_loop: &Node, label_ref: &str, source: &SourceFile)
crates/fortitude_linter/src/rules/obsolescent/non_block_do.rs:553
↓ 2 callers
Function
loop_has_shared_termination
(do_loop: &Node, label_ref: &str, src: &str)
crates/fortitude_linter/src/rules/obsolescent/non_block_do.rs:567
↓ 2 callers
Function
make_filter
()
crates/fortitude_linter/src/line_filter.rs:264
↓ 2 callers
Function
make_fix
Move a variable attribute from a standalone statement to the variable declaration, removing any empty statements, and making sure we only apply the at
crates/fortitude_linter/src/rules/modernisation/out_of_line_attribute.rs:157
↓ 2 callers
Method
make_source_kind
Get source code for the linter
crates/fortitude_server/src/session/index.rs:492
↓ 2 callers
Function
message_to_json_value
(message: &DiagnosticMessage)
crates/fortitude_linter/src/diagnostics/message/json.rs:52
↓ 2 callers
Function
next_statement_label_sibling
These are like the versions in the FortitudeNode trait, but also find statement labels in labelled `end do`. Can't have them in the trait, because the
crates/fortitude_linter/src/rules/obsolescent/non_block_do.rs:304
↓ 2 callers
Function
normalize_path_to
Convert any path to an absolute path (based on the specified project root)
crates/fortitude_linter/src/fs.rs:259
↓ 2 callers
Function
num_digits
(n: usize)
crates/fortitude/src/printer.rs:473
↓ 2 callers
Method
opposite
(self)
crates/fortitude_linter/src/stylist.rs:177
↓ 2 callers
Method
options
(&self)
crates/fortitude_server/src/session/settings.rs:30
↓ 2 callers
Function
panic_message
( err: &'a Box<dyn std::any::Any + Send + 'static>, )
crates/fortitude_server/src/server/api.rs:404
↓ 2 callers
Function
parse_fpm_toml
Adapted from ruff
crates/fortitude_workspace/src/configuration.rs:48
↓ 2 callers
Method
parse_intrinsic_type
(&self)
crates/fortitude_linter/src/ast.rs:234
↓ 2 callers
Function
parse_pyproject_toml
(path: P)
crates/fortitude_workspace/src/configuration.rs:55
↓ 2 callers
Method
pop_table
(&mut self)
crates/fortitude_linter/src/ast/symbol_table.rs:105
↓ 2 callers
Function
push_titlecase_word
Writes `word` into `buf` with its first character uppercased. Writes directly into the caller's buffer — no intermediate allocation. The word is assu
crates/fortitude_linter/src/stylist.rs:292
↓ 2 callers
Method
register
Registers a new pending request.
crates/fortitude_server/src/session/request_queue.rs:62
↓ 2 callers
Method
register_workspace
Register a workspace folder with the given settings. If the `workspace_settings` is [`Some`], it is preferred over the global settings for the worksp
crates/fortitude_server/src/session/index.rs:386
↓ 2 callers
Function
replace_docs_section
Takes the existing file contents, inserts the section, returns the transformed content
crates/fortitude_dev/src/generate_cli_help.rs:32
↓ 2 callers
Method
request_queue
(&self)
crates/fortitude_server/src/session.rs:75
↓ 2 callers
Function
resolve
Resolve the relevant settings strategy and defaults for the current invocation.
crates/fortitude/src/resolve.rs:21
↓ 2 callers
Function
resolve_configuration
Recursively resolve a [`Configuration`] from a `fortitude.toml` file at the specified [`Path`]. TODO(charlie): This whole system could do with some ca
crates/fortitude_workspace/src/resolver.rs:208
↓ 2 callers
Function
resolve_edit_for_fix_all
( query: &DocumentQuery, client_capabilities: &ResolvedClientCapabilities, encoding: PositionEncod
crates/fortitude_server/src/server/api/requests/code_action_resolve.rs:72
↓ 2 callers
Method
respond
Sends a response to the client for a given request ID. The response isn't sent immediately. Instead, it's queued up in the main loop and checked for
crates/fortitude_server/src/session/client.rs:146
↓ 2 callers
Method
respond_err
Sends an error response to the client for a given request ID. The response isn't sent immediately. Instead, it's queued up in the main loop.
crates/fortitude_server/src/session/client.rs:169
↓ 2 callers
Function
semicolon_is_superfluous
(node: &Node)
crates/fortitude_linter/src/rules/style/semicolons.rs:13
↓ 2 callers
Method
set_edits_for_document
Sets the edits made to a specific document. This should only be called once for each document `uri`, and will fail if this is called for the same `uri
crates/fortitude_server/src/edit.rs:116
↓ 2 callers
Method
set_fixes_for_document
Sets a series of [`Fixes`] for a text or notebook document.
crates/fortitude_server/src/edit.rs:102
↓ 2 callers
Function
set_up_git_repo
Helper for a tests in a git repo with commit changes
crates/fortitude/tests/check.rs:2852
↓ 2 callers
Method
settings
Get the document settings associated with this query.
crates/fortitude_server/src/session/index.rs:485
↓ 2 callers
Method
settings_impl
(&self)
crates/fortitude_server/src/session/settings.rs:34
↓ 2 callers
Method
sort
(&mut self)
crates/fortitude/src/check.rs:118
↓ 2 callers
Function
source_location_to_position
(location: &SourceLocation)
crates/fortitude_server/src/edit/range.rs:115
↓ 2 callers
Method
stack_size
(self, size: usize)
crates/fortitude_server/src/server/schedule/thread.rs:55
↓ 2 callers
Function
start_of_replacement
Find start of replacement, and if we should close the block or use `else`
crates/fortitude_linter/src/rules/obsolescent/arithmetic_if.rs:320
↓ 2 callers
Method
suffix
Return the suffix for the [`NoqaCode`], e.g., `101` for `SIM101`.
crates/fortitude_linter/src/rules/mod.rs:30
↓ 2 callers
Method
suggestion
Returns the fix suggestion for the violation.
crates/fortitude_linter/src/diagnostics/diagnostic_message.rs:59
↓ 2 callers
Method
text_document_language_id
(&self)
crates/fortitude_server/src/session/index.rs:549
↓ 2 callers
Method
textrange
(&self)
crates/fortitude_linter/src/traits.rs:53
↓ 2 callers
Function
thread_priority_to_qos_class
(priority: ThreadPriority)
crates/fortitude_server/src/server/schedule/thread/priority.rs:50
← previous
next →
201–300 of 1,280, ranked by callers