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
↓ 1 callers
Function
generate_table
( table_out: &mut String, rules: impl IntoIterator<Item = Rule>, linter: &Category, )
crates/fortitude_dev/src/generate_rules_table.rs:25
↓ 1 callers
Function
get_deprecated_category
If provided with a rule/category/prefix from a deprecated category, returns all associated rules and redirects. Otherwise returns None.
crates/fortitude_linter/src/rule_redirects.rs:69
↓ 1 callers
Function
get_docs
Collect all doc comment attributes into a string
crates/fortitude_macros/src/rule_namespace.rs:145
↓ 1 callers
Function
get_docs
Collect all doc comment attributes into a string
crates/fortitude_macros/src/violation_metadata.rs:34
↓ 1 callers
Function
get_end_of_else_block
Get the node that closes an `else` block. If ``node`` is a ``goto`` and its target is a sibling, get the node of its target.
crates/fortitude_linter/src/rules/obsolescent/arithmetic_if.rs:310
↓ 1 callers
Function
get_indent
(line: str)
scripts/_utils.py:27
↓ 1 callers
Function
get_init_node_of_declarator
Returns the tree-sitter node corresponding to the initialiser of the declarator node, if there is one
crates/fortitude_linter/src/ast/types.rs:435
↓ 1 callers
Function
get_size_node_of_declarator
Returns the tree-sitter node corresponding to the declared size of the declarator node, if there is one
crates/fortitude_linter/src/ast/types.rs:428
↓ 1 callers
Function
git_head
(git_dir: &Path)
crates/fortitude/build.rs:85
↓ 1 callers
Function
git_since
()
crates/fortitude/tests/check.rs:2965
↓ 1 callers
Function
git_staged_files
Create a line filter for just the files currently staged in the index
crates/fortitude_linter/src/line_filter.rs:162
↓ 1 callers
Method
has
Returns `true` if this set has an option that resolves to `name`. The name can be separated by `.` to find a nested option. ## Examples ### Test fo
crates/fortitude_workspace/src/options_base.rs:179
↓ 1 callers
Method
has_colon
(&self)
crates/fortitude_linter/src/ast/types.rs:395
↓ 1 callers
Method
has_settings_for
(&self, document_path: &Path)
crates/fortitude_server/src/session/index/fortitude_settings.rs:437
↓ 1 callers
Method
header
(&mut self, original: &'a str, modified: &'a str)
crates/fortitude_linter/src/source_kind.rs:64
↓ 1 callers
Function
help_text
Returns the output of `fortitude help`.
crates/fortitude_dev/src/generate_cli_help.rs:102
↓ 1 callers
Function
hover
( snapshot: &DocumentSnapshot, position: &types::TextDocumentPositionParams, )
crates/fortitude_server/src/server/api/requests/hover.rs:29
↓ 1 callers
Method
identifier
Returns the identifier of the command.
crates/fortitude_server/src/server.rs:251
↓ 1 callers
Function
ifthenify
Given an if statement node, convert it from a one-line if statement to a block if statement. Returns None if the node is already a block if statement.
crates/fortitude_linter/src/rules/correctness/conditionals.rs:190
↓ 1 callers
Function
ignores_from_path
Create a set with codes matching the pattern/code pairs.
crates/fortitude_linter/src/fs.rs:227
↓ 1 callers
Method
incoming
Returns the client to server request queue.
crates/fortitude_server/src/session/request_queue.rs:34
↓ 1 callers
Method
init
Get initialiser node, if there is one
crates/fortitude_linter/src/ast/types.rs:70
↓ 1 callers
Function
init_logging
(log_level: LogLevel, log_file: Option<&std::path::Path>)
crates/fortitude_server/src/logging.rs:17
↓ 1 callers
Method
initialize
(&mut self, client: &Client)
crates/fortitude_server/src/server/main_loop.rs:138
↓ 1 callers
Method
initialize_finish
Finishes the initialization process with the client, returning an initialized `Connection`.
crates/fortitude_server/src/server/connection.rs:29
↓ 1 callers
Method
initialize_start
Starts the initialization process with the client by listening for an initialization request. Returns a request ID that should be passed into `initial
crates/fortitude_server/src/server/connection.rs:20
↓ 1 callers
Method
insert_from_decl_line
Insert all symbols found in a single variable declaration statement
crates/fortitude_linter/src/ast/symbol_table.rs:61
↓ 1 callers
Function
insert_implicit_none
Inserts `implicit none` in the current scope. Should be called on a program, module, submodule, function, or subroutine.
crates/fortitude_linter/src/rules/correctness/implicit_typing.rs:15
↓ 1 callers
Function
integer_literal_kind
Return any kind spec that is a number literal
crates/fortitude_linter/src/rules/portability/literal_kinds.rs:137
↓ 1 callers
Method
is_cancelled
Returns true if the request was cancelled.
crates/fortitude_server/src/session/request_queue.rs:145
↓ 1 callers
Function
is_document_excluded
Return `true` if the document at the given [`Path`] should be excluded. The tool-specific settings should be provided if the request for the document
crates/fortitude_server/src/resolve.rs:34
↓ 1 callers
Method
is_equivalent_to
(&self, other: &Self)
crates/fortitude_linter/src/ast/types.rs:546
↓ 1 callers
Method
is_implicit_none_type
(&self)
crates/fortitude_linter/src/ast/types.rs:554
↓ 1 callers
Function
is_stdin
Returns true if the command should read from standard input.
crates/fortitude/src/check.rs:36
↓ 1 callers
Method
iter_decl_lines
Iterator over the variable declaration lines
crates/fortitude_linter/src/ast/symbol_table.rs:86
↓ 1 callers
Method
key_from_url
(&self, url: Url)
crates/fortitude_server/src/session.rs:91
↓ 1 callers
Method
language_id
(&self)
crates/fortitude_server/src/edit/text_document.rs:75
↓ 1 callers
Method
level_filter
(&self)
crates/fortitude_linter/src/logging.rs:107
↓ 1 callers
Function
load_options
Read either the "extra.fortitude" table from "fpm.toml", or the whole "fortitude.toml" file
crates/fortitude_workspace/src/configuration.rs:158
↓ 1 callers
Function
main
Generate boilerplate for a new rule.
scripts/add_rule.py:25
↓ 1 callers
Method
main_loop
(&mut self)
crates/fortitude_server/src/server/main_loop.rs:19
↓ 1 callers
Method
make_document_ref
( &self, key: DocumentKey, global: &GlobalClientSettings, )
crates/fortitude_server/src/session/index.rs:139
↓ 1 callers
Method
make_ref
(&self, file_url: Url, settings: Arc<FortitudeSettings>)
crates/fortitude_server/src/session/index.rs:460
↓ 1 callers
Function
map_declaration
Maps declaration kinds to its name and the kind of the declaration statement node
crates/fortitude_linter/src/rules/style/end_statements.rs:59
↓ 1 callers
Function
map_relational_symbols
(name: &str)
crates/fortitude_linter/src/rules/modernisation/relational_operators.rs:12
↓ 1 callers
Function
map_specific_intrinsic_functions
(name: &str)
crates/fortitude_linter/src/rules/obsolescent/specific_names.rs:12
↓ 1 callers
Function
match_any_exclusion
Return the [`ExclusionKind`] for a given [`Path`], if the path or any of its ancestors match any of the exclusion criteria.
crates/fortitude_workspace/src/resolver.rs:732
↓ 1 callers
Function
match_any_inclusion
Return the [`InclusionKind`] for a given [`Path`], if the path match any of the inclusion criteria.
crates/fortitude_workspace/src/resolver.rs:789
↓ 1 callers
Function
match_exclusion
( file_path: P, file_basename: R, exclusion: &GlobSet, )
crates/fortitude_workspace/src/resolver.rs:682
↓ 1 callers
Function
match_original_case
(original: &str, new: &str)
crates/fortitude_linter/src/rules/utilities.rs:5
↓ 1 callers
Method
merge
(mut self, other: CheckResults)
crates/fortitude/src/check.rs:111
↓ 1 callers
Function
message_to_rdjson_value
(message: &DiagnosticMessage)
crates/fortitude_linter/src/diagnostics/message/rdjson.rs:62
↓ 1 callers
Method
modify
A private function for modifying the document's internal state
crates/fortitude_server/src/edit/text_document.rs:136
↓ 1 callers
Method
named_descendants_except
(&self, exceptions: I)
crates/fortitude_linter/src/ast.rs:195
↓ 1 callers
Function
new_branch
(node: &Node)
crates/fortitude_linter/src/rules/correctness/error_handling.rs:309
↓ 1 callers
Function
next_comma
(item: Node<'a>)
crates/fortitude_linter/src/fix/edits.rs:36
↓ 1 callers
Method
next_event
Waits for the next message from the client or action. Returns `Ok(None)` if the client connection is closed.
crates/fortitude_server/src/server/main_loop.rs:128
↓ 1 callers
Function
next_statement_label
( node: &Node<'a>, label: S, src: &str, )
crates/fortitude_linter/src/rules/obsolescent/non_block_do.rs:331
↓ 1 callers
Method
next_statement_label
(&self, label: S, src: &str)
crates/fortitude_linter/src/ast.rs:353
↓ 1 callers
Method
node
(&self)
crates/fortitude_linter/src/traits.rs:13
↓ 1 callers
Function
notification
(notif: server::Notification)
crates/fortitude_server/src/server/api.rs:97
↓ 1 callers
Function
open_configuration_file
(config_path: &Path)
crates/fortitude_server/src/session/index/fortitude_settings.rs:535
↓ 1 callers
Method
open_text_document
( &mut self, url: Url, document: TextDocument, global: &GlobalClientSettings,
crates/fortitude_server/src/session/index.rs:230
↓ 1 callers
Method
open_workspace_folder
( &mut self, url: Url, global: &GlobalClientSettings, client: &Client, )
crates/fortitude_server/src/session/index.rs:109
↓ 1 callers
Method
outgoing
Returns the server to client request queue.
crates/fortitude_server/src/session/request_queue.rs:29
↓ 1 callers
Method
outgoing_mut
(&mut self)
crates/fortitude_server/src/session/request_queue.rs:24
↓ 1 callers
Function
parse_attr
( path: [&'static str; LEN], attr: &'a Attribute, )
crates/fortitude_macros/src/rule_namespace.rs:163
↓ 1 callers
Function
parse_attr
( path: [&'static str; LEN], attr: &'a Attribute, )
crates/fortitude_macros/src/violation_metadata.rs:52
↓ 1 callers
Function
parse_fortitude_toml
(path: P)
crates/fortitude_workspace/src/configuration.rs:62
↓ 1 callers
Function
pascal_case
Convert from snake-case to PascalCase.
scripts/_utils.py:15
↓ 1 callers
Function
present_call
(expr: &Node, src: &str, function: &str)
crates/fortitude_linter/src/rules/correctness/nonportable_shortcircuit_inquiry.rs:101
↓ 1 callers
Function
print_categories
()
crates/fortitude/src/explain.rs:226
↓ 1 callers
Function
print_rule_explanation
(rules: &[Rule])
crates/fortitude/src/explain.rs:159
↓ 1 callers
Function
print_rule_list
Print shorter summary of rules
crates/fortitude/src/explain.rs:129
↓ 1 callers
Function
process_documentation
(documentation: &str, out: &mut String, rule_name: &str)
crates/fortitude_dev/src/generate_docs.rs:151
↓ 1 callers
Function
pyproject_fortitude_enabled
(path: P)
crates/fortitude_workspace/src/configuration.rs:74
↓ 1 callers
Function
quick_fix
( snapshot: &DocumentSnapshot, fixes: &[DiagnosticFix], )
crates/fortitude_server/src/server/api/requests/code_action.rs:53
↓ 1 callers
Function
read_from_stdin
Read a string from `stdin`.
crates/fortitude/src/stdin.rs:9
↓ 1 callers
Function
redent
Unindent and then indent each line, ignoring under-indented comments and continuation lines. This function will look at each non-empty line and deter
crates/fortitude_linter/src/fix/edits.rs:113
↓ 1 callers
Function
register_rules
Generate the `Rule` enum
crates/fortitude_macros/src/map_codes.rs:424
↓ 1 callers
Function
relativize_path_to
(path: P, project_root: R)
crates/fortitude_linter/src/fs.rs:298
↓ 1 callers
Method
reload_settings
Reload the settings for all the workspace folders that contain the changed files. This method avoids re-indexing the same workspace multiple times if
crates/fortitude_server/src/session/index.rs:193
↓ 1 callers
Function
remove_code_from_allow_comment
( comment: &AllowComment, code_to_remove: &Code, file: &SourceFile, )
crates/fortitude_linter/src/allow_comments.rs:196
↓ 1 callers
Function
replace_with_implicit_none
Replaces an existing implicit statement with `implicit none`. Used when there is an implicit statement such as `implicit real(a-z)`.
crates/fortitude_linter/src/rules/correctness/implicit_typing.rs:44
↓ 1 callers
Function
report_failed_to_converge_error
(path: &Path, transformed: &str, diagnostics: &[Diagnostic])
crates/fortitude_linter/src/lib.rs:489
↓ 1 callers
Function
report_fix_syntax_error
(path: &Path, transformed: &str, rules: impl IntoIterator<Item = Rule>)
crates/fortitude_linter/src/lib.rs:522
↓ 1 callers
Function
request
Processes a request from the client to the server. The LSP specification requires that each request has exactly one response. Therefore, it's crucial
crates/fortitude_server/src/server/api.rs:50
↓ 1 callers
Function
resolve_default_files
Returns the default set of files if none are provided, otherwise returns provided files.
crates/fortitude/src/check.rs:56
↓ 1 callers
Method
resolve_preview
(self)
crates/fortitude/src/cli.rs:701
↓ 1 callers
Method
respect_gitignore
(&self)
crates/fortitude_workspace/src/resolver.rs:150
↓ 1 callers
Function
respond_silent_error
Sends back an error response to the server using a [`Client`] without showing a warning to the user.
crates/fortitude_server/src/server/api.rs:334
↓ 1 callers
Function
rules_by_prefix
Group the rules by their common prefixes.
crates/fortitude_macros/src/map_codes.rs:214
↓ 1 callers
Function
ruleset
Get the list of active rules for this session.
crates/fortitude/src/explain.rs:93
↓ 1 callers
Method
run
(session: &mut Session, _client: &Client, _params: ())
crates/fortitude_server/src/server/api/requests/shutdown.rs:12
↓ 1 callers
Method
selectors_by_kind
(&self)
crates/fortitude_workspace/src/configuration.rs:770
↓ 1 callers
Method
serialize
(&self, serializer: S)
crates/fortitude_linter/src/diagnostics/message/json.rs:37
↓ 1 callers
Function
server
(preview: Option<bool>)
crates/fortitude_server/src/lib.rs:40
↓ 1 callers
Function
server_command
(args: ServerCommand)
crates/fortitude/src/server.rs:6
↓ 1 callers
Function
setCopyText
()
docs/javascript/extra.js:24
↓ 1 callers
Function
set_current_thread_qos_class
(class: QoSClass)
crates/fortitude_server/src/server/schedule/thread/priority.rs:42
← previous
next →
401–500 of 1,280, ranked by callers