MCPcopy Create free account

hub / github.com/PlasmaFAIR/fortitude / functions

Functions1,280 in github.com/PlasmaFAIR/fortitude

↓ 2 callersMethodto_range
(&self, text: &str, index: &LineIndex, _encoding: PositionEncoding)
crates/fortitude_server/src/edit/range.rs:85
↓ 2 callersMethodto_settings
Lazily resolves the client options to the settings.
crates/fortitude_server/src/session/settings.rs:51
↓ 2 callersMethodtrace_level
(self)
crates/fortitude_server/src/logging.rs:89
↓ 2 callersMethodtransform
(&self, config: Configuration)
crates/fortitude/src/cli.rs:491
↓ 2 callersFunctiontrim_lines
(s: &str)
crates/fortitude_dev/src/generate_cli_help.rs:27
↓ 2 callersFunctionutf8_column_offset
Converts a UTF-16 code unit offset for a given line into a UTF-8 column number.
crates/fortitude_server/src/edit/range.rs:94
↓ 2 callersMethodvirtual_file_path
Get the path for the document selected by this query, ignoring whether the file exists on disk. Returns the URL's path if this is an unsaved (untitle
crates/fortitude_server/src/session/index.rs:532
↓ 2 callersMethodwith_show_fix_diff
(mut self, show_fix_diff: bool)
crates/fortitude_linter/src/diagnostics/message/text.rs:50
↓ 2 callersMethodwith_show_fix_status
(mut self, show_fix_status: bool)
crates/fortitude_linter/src/diagnostics/message/grouped.rs:29
↓ 2 callersMethodwith_space
Return keywords with a space between them.
crates/fortitude_linter/src/rules/style/keywords.rs:83
↓ 1 callersFunction_rustfmt
(path: str)
scripts/add_rule.py:155
↓ 1 callersMethodadd
(mut self, status: CheckStatus)
crates/fortitude/src/check.rs:95
↓ 1 callersFunctionadd_external_to_implicit_none
Add `(external)` to `implicit none (type)` or `(type, external)` to `implicit none`.
crates/fortitude_linter/src/rules/correctness/implicit_typing.rs:57
↓ 1 callersFunctionadd_type_to_implicit_none
Assuming we have `implicit none (external)` for some cursed reason, adds `type` to it to make it `implicit none (type, external)`.
crates/fortitude_linter/src/rules/correctness/implicit_typing.rs:50
↓ 1 callersFunctionapply_edit
( session: &mut Session, client: &Client, label: &str, edit: types::WorkspaceEdit, )
crates/fortitude_server/src/server/api/requests/execute_command.rs:111
↓ 1 callersFunctionare_statements_adjacent
Two use statements are considered adjacent if the second one starts on the line immediately following the end of the first one.
crates/fortitude_linter/src/rules/style/use_statement.rs:163
↓ 1 callersMethodas_single_document
Attempt to access the single inner text document selected by the query. Adapted from a Ruff function that would return `None` when selecting entire no
crates/fortitude_server/src/session/index.rs:542
↓ 1 callersMethodas_text
(&self)
crates/fortitude_server/src/session/index.rs:470
↓ 1 callersMethodas_text_mut
(&mut self)
crates/fortitude_server/src/session/index.rs:476
↓ 1 callersMethodassert_is_used_on_current_thread
(self)
crates/fortitude_server/src/server/schedule/thread/priority.rs:30
↓ 1 callersMethodast_entrypoints
Return a mapping of AST entrypoints to lists of the rules and codes that operate on them.
crates/fortitude_linter/src/rule_table.rs:82
↓ 1 callersFunctionattributes_for_prefix
( codes: &BTreeSet<String>, attributes: &BTreeMap<String, &[Attribute]>, )
crates/fortitude_macros/src/rule_code_prefix.rs:92
↓ 1 callersMethodcache_key
(&self, state: &mut CacheKeyHasher)
crates/fortitude_linter/src/fs.rs:168
↓ 1 callersMethodcancel
(&self, session: &mut Session, id: RequestId)
crates/fortitude_server/src/session/client.rs:225
↓ 1 callersMethodcancellation_token
Returns the cancellation token for the given request id if the request is still pending.
crates/fortitude_server/src/session/request_queue.rs:85
↓ 1 callersFunctioncheck
Check all files, report issues found, and return error code.
crates/fortitude/src/check.rs:136
↓ 1 callersMethodcheck
(source_file: &SourceFile)
crates/fortitude_linter/src/rules/style/whitespace.rs:37
↓ 1 callersFunctioncheck_allow_comments
Check allow comments, raise applicable violations, and ignore allowed diagnostics
crates/fortitude_linter/src/allow_comments.rs:99
↓ 1 callersFunctioncheck_bad_array_decl
( decl_line: &VariableDeclaration, src: &SourceFile, prefer_attribute: PreferAttribute, )
crates/fortitude_linter/src/rules/style/inconsistent_dimension.rs:297
↓ 1 callersFunctioncheck_files
( files: &[PathBuf], file_filter: &Option<FilterMap>, fortitude_config: &ConfigFile, config_ar
crates/fortitude/src/check.rs:299
↓ 1 callersFunctioncheck_inconsistent_dimension
( decl_line: &VariableDeclaration, src: &SourceFile, prefer_attribute: PreferAttribute, )
crates/fortitude_linter/src/rules/style/inconsistent_dimension.rs:139
↓ 1 callersFunctioncheck_inconsistent_dimension_rules
( settings: &CheckSettings, decl_line: &VariableDeclaration, src: &SourceFile, )
crates/fortitude_linter/src/rules/style/inconsistent_dimension.rs:335
↓ 1 callersFunctioncheck_invalid_character
(root: &Node, src: &SourceFile)
crates/fortitude_linter/src/rules/error/invalid_character.rs:35
↓ 1 callersFunctioncheck_invalid_tab
( root: &Node, src: &SourceFile, settings: &CheckSettings, )
crates/fortitude_linter/src/rules/portability/invalid_tab.rs:36
↓ 1 callersFunctioncheck_mixed_scalar_array
( decl_line: &VariableDeclaration, src: &SourceFile, prefer_attribute: PreferAttribute, )
crates/fortitude_linter/src/rules/style/inconsistent_dimension.rs:213
↓ 1 callersFunctioncheck_stdin
( filename: Option<&Path>, settings: &Settings, fix_mode: FixMode, ignore_allow_comments: sett
crates/fortitude/src/check.rs:456
↓ 1 callersFunctioncheck_superfluous_returns
( settings: &CheckSettings, node: &'a Node, src: &'a SourceFile, )
crates/fortitude_linter/src/rules/style/useless_return.rs:315
↓ 1 callersFunctioncleanupClipboardText
(targetSelector)
docs/javascript/extra.js:5
↓ 1 callersFunctionclear_diagnostics_for_document
( query: &DocumentQuery, client: &Client, )
crates/fortitude_server/src/server/api/diagnostics.rs:32
↓ 1 callersMethodclient_settings
(&self)
crates/fortitude_server/src/session.rs:194
↓ 1 callersMethodclose_document
(&mut self, key: &DocumentKey)
crates/fortitude_server/src/session/index.rs:269
↓ 1 callersMethodclose_workspace_folder
(&mut self, workspace_url: &Url)
crates/fortitude_server/src/session/index.rs:120
↓ 1 callersMethodcmp
(&self, other: &Self)
crates/fortitude_linter/src/rule_selector.rs:54
↓ 1 callersFunctioncmp_fix
Compare two fixes.
crates/fortitude_linter/src/fix/mod.rs:143
↓ 1 callersMethodcombine_with
(&mut self, other: Self)
crates/fortitude_server/src/session/options.rs:188
↓ 1 callersFunctioncommit_info
(workspace_root: &Path)
crates/fortitude/build.rs:25
↓ 1 callersFunctioncompare_use_statements
Intrinsic modules (e.g. `use, intrinsic :: iso_fortran_env`) always come first, followed by regular modules sorted alphabetically by name.
crates/fortitude_linter/src/rules/style/use_statement.rs:219
↓ 1 callersFunctionconfig
(key: Option<&str>, format: HelpFormat)
crates/fortitude/src/commands/config.rs:9
↓ 1 callersMethodconfig_file
(&self)
crates/fortitude/src/cli.rs:470
↓ 1 callersMethodcontains_range
(&self, other: TextRange)
crates/fortitude_linter/src/line_filter.rs:156
↓ 1 callersMethodcontrol_flow
(&self)
crates/fortitude_linter/src/ast.rs:542
↓ 1 callersFunctioncount_allocations
(node: &Node)
crates/fortitude_linter/src/rules/correctness/error_handling.rs:390
↓ 1 callersFunctioncount_deallocations
(node: &Node)
crates/fortitude_linter/src/rules/correctness/error_handling.rs:395
↓ 1 callersFunctioncyclomatic_complexity
(node: &Node)
crates/fortitude_linter/src/rules/style/complexity.rs:138
↓ 1 callersFunctiondebug_information
Returns a string with debug information about the session and the document at the given URI.
crates/fortitude_server/src/server/api/requests/execute_command.rs:138
↓ 1 callersFunctionderive_impl
(input: DeriveInput)
crates/fortitude_macros/src/rule_namespace.rs:14
↓ 1 callersMethoddescendants_except
(&self, exceptions: I)
crates/fortitude_linter/src/ast.rs:185
↓ 1 callersFunctiondetect_indentation
Given a top-level entity, and then find the first statement that has indentation longer than the indentation on that entity, and use the difference
crates/fortitude_linter/src/stylist.rs:94
↓ 1 callersFunctiondetect_quote
(root: &Node, src: &str)
crates/fortitude_linter/src/stylist.rs:74
↓ 1 callersFunctiondiagnostic_edit_range
( range: TextRange, source: &str, index: &LineIndex, encoding: PositionEncoding, )
crates/fortitude_server/src/lint.rs:180
↓ 1 callersFunctiondimension_attribute_and_shape
( var: &NameDecl, decl: &VariableDeclaration, src: &SourceFile, add_attribute: bool, )
crates/fortitude_linter/src/rules/style/inconsistent_dimension.rs:63
↓ 1 callersMethoddisable
(&mut self, rule: Rule)
crates/fortitude_linter/src/rule_table.rs:73
↓ 1 callersMethoddispatch
Dispatches a `task` by either running it as a blocking function or executing it on a background thread pool.
crates/fortitude_server/src/server/schedule.rs:46
↓ 1 callersMethoddocument_controller_for_key
( &mut self, key: &DocumentKey, )
crates/fortitude_server/src/session/index.rs:291
↓ 1 callersFunctiondocumentation
()
crates/fortitude_linter/src/registry.rs:164
↓ 1 callersFunctionemit_field
(output: &mut String, name: &str, field: &OptionField, parents: &[Set])
crates/fortitude_dev/src/generate_options.rs:140
↓ 1 callersMethodenable
(&mut self, rule: Rule, should_fix: bool)
crates/fortitude_linter/src/rule_table.rs:61
↓ 1 callersMethodentrypoints
()
crates/fortitude_linter/src/rules/style/strings.rs:119
↓ 1 callersFunctionexpand
( prefix_ident: &Ident, variants: impl Iterator<Item = (&'a str, &'a Path, &'a Vec<Attribute>)>, )
crates/fortitude_macros/src/rule_code_prefix.rs:11
↓ 1 callersFunctionexplain
Show rule names and explanations
crates/fortitude/src/explain.rs:244
↓ 1 callersMethodfallback
Constructs [`FortitudeSettings`] by attempting to resolve settings from a user-provided configuration file, such as `fpm.toml` or `fortitude.toml`, wi
crates/fortitude_server/src/session/index/fortitude_settings.rs:64
↓ 1 callersMethodfile_path
Get the path for the document selected by this query. Returns `None` if this is an unsaved (untitled) document. The path isn't guaranteed to point t
crates/fortitude_server/src/session/index.rs:525
↓ 1 callersMethodfind_and_add_new_settings
( &mut self, root: &Path, editor_settings: &EditorSettings, )
crates/fortitude_server/src/session/index/fortitude_settings.rs:161
↓ 1 callersFunctionfind_fortitude_bin
Return the fortitude binary path.
python/fortitude/__main__.py:13
↓ 1 callersFunctionfind_keyword
Find the first "interesting" keyword
crates/fortitude_linter/src/stylist.rs:82
↓ 1 callersFunctionfind_nonportable_shortcircuits
(node: &Node, text: &str, function: &str)
crates/fortitude_linter/src/rules/correctness/nonportable_shortcircuit_inquiry.rs:147
↓ 1 callersFunctionfind_real_end_do_loop
Given a `do_loop` that has a virtual end statement, find the enclosing `do_loop` that has the actual end statement
crates/fortitude_linter/src/rules/obsolescent/non_block_do.rs:485
↓ 1 callersFunctionfind_stat_in_siblings
(node: &Node, stat_name: &str, src: &str)
crates/fortitude_linter/src/rules/correctness/error_handling.rs:230
↓ 1 callersMethodfinish
(self)
crates/fortitude_workspace/src/options_base.rs:328
↓ 1 callersMethodfix_all
(&self)
crates/fortitude_server/src/session/settings.rs:125
↓ 1 callersFunctionfix_arithmetic_if
There are either 2 or 3 distinct labels, and the transformed `if` can have 1, 2, or 3 blocks More precisely, we can have: - 1 block: `if` -- 2 labels
crates/fortitude_linter/src/rules/obsolescent/arithmetic_if.rs:94
↓ 1 callersFunctionfix_bad_do_termination
( node: &Node, end_action: &Node, end_do_label: &Node, source: &SourceFile, )
crates/fortitude_linter/src/rules/obsolescent/non_block_do.rs:527
↓ 1 callersFunctionfix_file
Fix errors in a file, and write the fixed source code to disk.
crates/fortitude_linter/src/fix/mod.rs:34
↓ 1 callersFunctionfix_goto_end_do
This might leave the statement label on the `end do`, but it's quite complicated to work out if we still need it. Instead, use a separate rule to chec
crates/fortitude_linter/src/rules/obsolescent/non_block_do.rs:504
↓ 1 callersFunctionfix_labelled_do
TODO: needs Stylist for indentation/captialisation
crates/fortitude_linter/src/rules/obsolescent/non_block_do.rs:356
↓ 1 callersFunctionfix_out_of_line_attribute
( attr_node: &Node, var_in_attr: &Node, var: &Variable, src: &SourceFile, )
crates/fortitude_linter/src/rules/modernisation/out_of_line_attribute.rs:108
↓ 1 callersFunctionfix_out_of_line_parameter
( attr_node: &Node, var_in_attr: &ParameterStatement, var: &Variable, src: &SourceFile, )
crates/fortitude_linter/src/rules/modernisation/out_of_line_attribute.rs:89
↓ 1 callersFunctionfix_shared_termination
(do_label_virtual: &Node, source: &SourceFile)
crates/fortitude_linter/src/rules/obsolescent/non_block_do.rs:423
↓ 1 callersFunctionfix_superfluous_return
(branch: &'a Node, src: &'a SourceFile)
crates/fortitude_linter/src/rules/style/useless_return.rs:383
↓ 1 callersMethodfix_violation
(&self)
crates/fortitude_server/src/session/settings.rs:129
↓ 1 callersFunctionfixes_for_diagnostics
Converts LSP diagnostics to a list of `DiagnosticFix`es by deserializing associated data on each diagnostic.
crates/fortitude_server/src/lint.rs:95
↓ 1 callersMethodforce_exclude
(&self)
crates/fortitude_workspace/src/resolver.rs:144
↓ 1 callersFunctionformat_rule_text
(rule: Rule)
crates/fortitude_server/src/server/api/requests/hover.rs:82
↓ 1 callersMethodfrom
(args: &LogLevelArgs)
crates/fortitude/src/cli.rs:98
↓ 1 callersMethodfull_line_end
(&self, offset: TextSize)
crates/fortitude_linter/src/locator.rs:278
↓ 1 callersMethodfull_lines_str
Returns the text of all lines that include `range`. See [`LineRanges::full_lines_str`].
crates/fortitude_linter/src/locator.rs:260
↓ 1 callersFunctiongather_allow_comments
If this node is an `allow` comment, get all the rules allowed on the next line
crates/fortitude_linter/src/allow_comments.rs:43
↓ 1 callersFunctiongenerate_iter_impl
Implement `impl IntoIterator for &Category` and `RuleCodePrefix::iter()`
crates/fortitude_macros/src/map_codes.rs:371
↓ 1 callersFunctiongenerate_rule_to_code
Map from rule to codes that can be used to select it. This abstraction exists to support a one-to-many mapping, whereby a single rule could map to mul
crates/fortitude_macros/src/map_codes.rs:244
↓ 1 callersFunctiongenerate_set
(output: &mut String, set: Set, parents: &mut Vec<Set>)
crates/fortitude_dev/src/generate_options.rs:67
← previousnext →301–400 of 1,280, ranked by callers