Skip to content

[Linting Rule] Network Functions

github-actions[bot] edited this page Nov 8, 2026 · 1 revision

Generated from 'wiki-linter.ts' on 2026-11-03, 08:22:01 UTC (v2.16.8), do not edit directly.

Network Functions [overview]

smell performance reproducibility security

This rule is a best-effort rule.

Finds functions that execute network operations, such as downloading files or making HTTP requests.
This linting rule is implemented in src/linter/rules/network-functions.ts.

Configuration

Linting rules can be configured by passing a configuration object to the linter query as shown in the example below. The network-functions rule accepts the following configuration options:

  • fns
    The list of function names or more detailed NetworkFunction information that should be marked in the given context if their arguments match.

Examples

read.csv("https://example.com/data.csv")
download.file("https://foo.bar")

The linting query can be used to run this rule on the above example:

[ { "type": "linter",   "rules": [ { "name": "network-functions",     "config": {} } ] } ]

Results (prettified and summarized):

Query: linter (6 ms)
   ╰ Network Functions (network-functions):
       ╰ certain:
           ╰ Function utils::read.csv at 2.1-40
           ╰ Function utils::download.file at 3.1-32

More examples are the test cases in test/functionality/linter/lint-network-functions.test.ts.

Clone this wiki locally

⌂ 换网址