eslint-plugin-julia 0.0.0-stage → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +159 -0
- package/LICENSE +21 -0
- package/README.md +213 -2
- package/data/base-core-exports.json +5 -0
- package/data/public-only.json +35 -0
- package/data/stdlib-exports.json +180 -0
- package/package.json +76 -4
- package/src/index.js +226 -0
- package/src/language.js +46 -0
- package/src/macro-signatures.js +277 -0
- package/src/module-resolution.js +1187 -0
- package/src/orphans.js +631 -0
- package/src/parser/flags.js +25 -0
- package/src/parser/green-tree.js +41 -0
- package/src/parser/positions.js +29 -0
- package/src/parser/syntax-tree.js +91 -0
- package/src/parser/wasm-host.js +92 -0
- package/src/resolver/index.js +232 -0
- package/src/resolver/pkg-child.mjs +165 -0
- package/src/resolver/toml.js +63 -0
- package/src/resolver/warm.mjs +26 -0
- package/src/rules/common.js +52 -0
- package/src/rules/correctness-common.js +90 -0
- package/src/rules/growth-common.js +93 -0
- package/src/rules/idiom-common.js +116 -0
- package/src/rules/no-collapsible-if.js +38 -0
- package/src/rules/no-collect-before-range-iteration.js +24 -0
- package/src/rules/no-compare-negative-zero.js +50 -0
- package/src/rules/no-concat-growth-in-loop.js +18 -0
- package/src/rules/no-cond-assign.js +126 -0
- package/src/rules/no-const-reassign.js +61 -0
- package/src/rules/no-constant-condition.js +59 -0
- package/src/rules/no-debugger.js +96 -0
- package/src/rules/no-discarded-copy-result.js +50 -0
- package/src/rules/no-dupe-args.js +25 -0
- package/src/rules/no-dupe-elseif.js +57 -0
- package/src/rules/no-duplicate-dict-keys.js +95 -0
- package/src/rules/no-duplicate-keyword-arguments.js +40 -0
- package/src/rules/no-duplicate-logical-operands.js +85 -0
- package/src/rules/no-duplicate-method-signatures.js +90 -0
- package/src/rules/no-duplicate-struct-fields.js +38 -0
- package/src/rules/no-empty-block.js +49 -0
- package/src/rules/no-empty-catch.js +32 -0
- package/src/rules/no-empty-literal-range.js +26 -0
- package/src/rules/no-env-mutation.js +62 -0
- package/src/rules/no-eval-local-symbol.js +85 -0
- package/src/rules/no-fill-with-mutable.js +43 -0
- package/src/rules/no-full-slice-in-consumer.js +41 -0
- package/src/rules/no-identical-branches.js +44 -0
- package/src/rules/no-import-assign.js +64 -0
- package/src/rules/no-impossible-length-comparison.js +49 -0
- package/src/rules/no-invalid-foreign-call-signature.js +58 -0
- package/src/rules/no-isdefined-local-call.js +23 -0
- package/src/rules/no-loss-of-float-integer-precision.js +41 -0
- package/src/rules/no-nothing-return-conversion.js +127 -0
- package/src/rules/no-obvious-type-piracy.js +112 -0
- package/src/rules/no-orphan-file.js +39 -0
- package/src/rules/no-overwritten-literal-index.js +80 -0
- package/src/rules/no-reassigned-capture.js +107 -0
- package/src/rules/no-redundant-type-assertion.js +36 -0
- package/src/rules/no-redundant-union-members.js +42 -0
- package/src/rules/no-restricted-calls.js +74 -0
- package/src/rules/no-restricted-imports.js +105 -0
- package/src/rules/no-restricted-macros.js +61 -0
- package/src/rules/no-self-assign.js +65 -0
- package/src/rules/no-self-identity-comparison.js +37 -0
- package/src/rules/no-shadowed-loop-var.js +83 -0
- package/src/rules/no-show-macro.js +90 -0
- package/src/rules/no-single-iteration-loop.js +50 -0
- package/src/rules/no-string-growth-in-loop.js +18 -0
- package/src/rules/no-throw-literal.js +33 -0
- package/src/rules/no-unbound-type-parameters.js +91 -0
- package/src/rules/no-undef.js +284 -0
- package/src/rules/no-undefined-exports.js +60 -0
- package/src/rules/no-uninitialized-ref-read.js +38 -0
- package/src/rules/no-unreachable.js +82 -0
- package/src/rules/no-unsafe-finally.js +35 -0
- package/src/rules/no-unsafe-negation.js +77 -0
- package/src/rules/no-unused-expressions.js +137 -0
- package/src/rules/no-unused-type-parameters.js +55 -0
- package/src/rules/no-unused-vars.js +123 -0
- package/src/rules/no-use-before-define.js +139 -0
- package/src/rules/no-useless-assignment.js +75 -0
- package/src/rules/no-useless-catch.js +28 -0
- package/src/rules/parse-errors.js +19 -0
- package/src/rules/performance-common.js +119 -0
- package/src/rules/prefer-any.js +75 -0
- package/src/rules/prefer-const-global.js +103 -0
- package/src/rules/prefer-count-over-findall-length.js +46 -0
- package/src/rules/prefer-eachindex.js +120 -0
- package/src/rules/prefer-extreme-over-sort.js +73 -0
- package/src/rules/prefer-generator-sum.js +34 -0
- package/src/rules/prefer-identity-nothing.js +43 -0
- package/src/rules/prefer-in.js +67 -0
- package/src/rules/prefer-isa.js +70 -0
- package/src/rules/prefer-isempty.js +57 -0
- package/src/rules/prefer-ismissing.js +42 -0
- package/src/rules/prefer-parenthesized-interpolation.js +160 -0
- package/src/rules/prefer-size-dimension.js +19 -0
- package/src/rules/prefer-sized-push-buffer.js +81 -0
- package/src/rules/prefer-typed-empty-array.js +90 -0
- package/src/rules/require-typed-global.js +60 -0
- package/src/rules/restricted-common.js +211 -0
- package/src/rules/semantic-common.js +105 -0
- package/src/rules/use-isnan.js +28 -0
- package/src/scope.js +1338 -0
- package/src/source-code.js +100 -0
- package/types/ast.d.ts +49 -0
- package/types/index.d.ts +65 -0
- package/types/scope.d.ts +71 -0
- package/wasm/LICENSES/Julia.md +26 -0
- package/wasm/LICENSES/JuliaSyntax-MIT.md +46 -0
- package/wasm/LICENSES/WasmCodegen-MIT.txt +21 -0
- package/wasm/manifest.json +44 -0
- package/wasm/parser.wasm +0 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project are documented here. The format follows
|
|
4
|
+
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and the project uses
|
|
5
|
+
[Semantic Versioning](https://semver.org/).
|
|
6
|
+
|
|
7
|
+
## [Unreleased]
|
|
8
|
+
|
|
9
|
+
## [0.3.1] - 2026-11-16
|
|
10
|
+
|
|
11
|
+
First release on npm: `npm install --save-dev eslint eslint-plugin-julia`.
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- The environment resolver's settings are renamed: `settings.julia.pkgjl` is now
|
|
16
|
+
`settings.julia.pkgResolver`, `resolver: "pkgjl"` is now `resolver: "pkg"`, and the
|
|
17
|
+
`eslint-plugin-julia-resolve-env` flag `--pkgjl` is now `--pkg-resolver`.
|
|
18
|
+
|
|
19
|
+
## [0.3.0] - 2026-11-11
|
|
20
|
+
|
|
21
|
+
`no-undef` is now in `recommended`, and there is a new rule, `no-orphan-file`. On a
|
|
22
|
+
16-repository corpus (4,235 files), `no-undef`'s findings go from 8,969 to 115. An
|
|
23
|
+
independent triage labels 37 of those live bugs, 68 bugs in dead code and 10 false
|
|
24
|
+
positives. Every finding that triage, or the v0.2.0 survey, labelled a real bug is still
|
|
25
|
+
reported (in `strict` at least). #47
|
|
26
|
+
|
|
27
|
+
### Upgrading from 0.2.0
|
|
28
|
+
|
|
29
|
+
- `recommended` gains two warning rules, `no-undef` and `no-orphan-file`. A run with
|
|
30
|
+
`--max-warnings 0` can start failing. To turn one off, set
|
|
31
|
+
`'julia/no-undef': 'off'` (or `'julia/no-orphan-file': 'off'`) after the preset.
|
|
32
|
+
- Escape hatches for `no-undef`: `globals`, and `settings.julia.macros` for package
|
|
33
|
+
macros.
|
|
34
|
+
- Escape hatches for `no-orphan-file`: `scripts` and `entryPoints`.
|
|
35
|
+
- `strict` sets `no-undef`'s `fragments: "report"`. It also reports names in files whose
|
|
36
|
+
includer isn't visible, at lower confidence (7,188 findings on the corpus, mostly
|
|
37
|
+
untriaged).
|
|
38
|
+
- More is reported than before:
|
|
39
|
+
- `unknownModules: "ignore"` no longer silences a module with an unresolved `using`;
|
|
40
|
+
- an unresolved bare `import M` no longer makes the module's names unknown;
|
|
41
|
+
- `using M` no longer brings in names `M` only declares `public` (`OneTo`, `Fix1`).
|
|
42
|
+
- `no-unused-vars` and `no-use-before-define` change too, because macro arguments are now
|
|
43
|
+
analyzed.
|
|
44
|
+
- `no-orphan-file` reads the package's directories, `.jl` files and CI configuration. Its
|
|
45
|
+
results depend on the whole package, not only the linted file.
|
|
46
|
+
|
|
47
|
+
### Added
|
|
48
|
+
|
|
49
|
+
- An environment resolver (`settings.julia.resolver`): when a file imports a package that
|
|
50
|
+
isn't in a manifest or installed, a throwaway, cached, source-only copy of its
|
|
51
|
+
environment supplies the package's sources. The default backend is a Pkg-in-Wasm
|
|
52
|
+
resolver, installed separately and configured via `settings.julia.pkgResolver`; no artifacts
|
|
53
|
+
are downloaded. Resolved packages' exports are kept in a persistent index. See
|
|
54
|
+
`docs/environment-resolver.md` and the `eslint-plugin-julia-resolve-env` command.
|
|
55
|
+
- Macro signatures (`src/macro-signatures.js`, `settings.julia.macros`): which macro
|
|
56
|
+
arguments are reads, which declare names (`@enum`, `@unpack`, `@variables`, …) and which
|
|
57
|
+
are generated code or symbols. See `docs/macros.md`.
|
|
58
|
+
- Harness entries: `runtests.jl`, `make.jl` and `makedocs.jl` in a file's directory or
|
|
59
|
+
above it (up to the package or repository root) are include-tree entries, so docs helpers
|
|
60
|
+
share Documenter's imports.
|
|
61
|
+
- Include fragments assume their context: a test file no include reaches runs after its
|
|
62
|
+
harness's top level and `using Package`; an import-free docs snippet likewise. They get
|
|
63
|
+
only the narrowed check in `recommended`. New `no-undef` option `fragments: "report"`
|
|
64
|
+
(on in `strict`) reports every unresolved read in a fragment, at lower confidence.
|
|
65
|
+
- Generated definitions under a literal prefix (`Symbol(:get_, prop)`) leave only that
|
|
66
|
+
prefix unknown; a generated `using M: <names(M; all = true)>` imports M's own names.
|
|
67
|
+
- `@eval M code` resolves against every name `M` defines. Literal `eval(:(const x = …))`
|
|
68
|
+
at top level defines `x`. A submodule filled by computed `Core.eval(Sub, ex)` has unknown
|
|
69
|
+
exports.
|
|
70
|
+
- Macro signatures: `@test_skip`, `@test_broken`, `@test … skip=`/`broken=`,
|
|
71
|
+
`@macroexpand` (not run as written); plot types (`@userplot`, `@shorthands`, Makie's
|
|
72
|
+
`@recipe Name`) define their plotting functions; WGLMakie's `@handle`, SymbolicUtils'
|
|
73
|
+
`@number_methods`, Symbolics' `@num_method`, JET's `@analyze_toplevel`.
|
|
74
|
+
- A module's docstring is evaluated inside the module.
|
|
75
|
+
- New rule `no-orphan-file` (in `recommended` as a warning): a package file that no entry
|
|
76
|
+
point (`src/<Name>.jl`, `ext/`, `test/runtests.jl`, or the `entryPoints` option) reaches
|
|
77
|
+
through `include` never runs. Files a computed include could reach, scripts (`docs/`,
|
|
78
|
+
`bench/`, `examples/`, shebang and `ARGS` scripts, files CI runs by path, test items,
|
|
79
|
+
Pluto notebooks; the `scripts` option) and nested environments are not reported. On the
|
|
80
|
+
16-repository corpus: 33 files, 32 of which never run (17 test files no harness
|
|
81
|
+
includes). See `docs/rules/no-orphan-file.md`.
|
|
82
|
+
- Export inventories of 112 submodules of Base, Core and the standard libraries
|
|
83
|
+
(`Base.BinaryPlatforms`, `LinearAlgebra.BLAS`, …), and `data/public-only.json`: the
|
|
84
|
+
names that are `public` but not exported, which `using` doesn't bring in.
|
|
85
|
+
- A test file that its harness includes by a computed path (a `readdir` loop,
|
|
86
|
+
`include("$f.jl")`) sees the harness's top-level names. Computed `eval(ex)` at top level
|
|
87
|
+
is treated like `@eval $(…)`.
|
|
88
|
+
|
|
89
|
+
### Changed
|
|
90
|
+
|
|
91
|
+
- `no-undef` is in `recommended`, as a warning. On a 16-repository corpus its findings go
|
|
92
|
+
from 8,969 to 115 (`recommended`; `strict`, which also reports include fragments in full, 7,188).
|
|
93
|
+
- `no-undef` checks macro operands, including string interpolations in logging macros
|
|
94
|
+
(`@info "… $hex …"`, the bug fixed by JuliaLang/Pkg.jl#4909), as the macro's signature
|
|
95
|
+
describes them.
|
|
96
|
+
- `no-undef`'s `unknownModules: "ignore"` no longer silences the whole module: value reads
|
|
97
|
+
inside function bodies of names an unresolved `using` can't plausibly export are still
|
|
98
|
+
reported, with their own message (interpolated names at any length). New option value
|
|
99
|
+
`"values"`.
|
|
100
|
+
- An unresolved `import M`/`import ..f` binds only the written name; only `using` can bring
|
|
101
|
+
in unknown names. `..M` follows the parent module's `import M`.
|
|
102
|
+
- Package extensions (`ext/<Ext>/<Ext>.jl`) are include-tree entries. A module that
|
|
103
|
+
includes files by a computed path or at run time is treated like one with an unresolved
|
|
104
|
+
`using`.
|
|
105
|
+
|
|
106
|
+
## [0.2.0] - 2026-11-10
|
|
107
|
+
|
|
108
|
+
### Added
|
|
109
|
+
|
|
110
|
+
- 10 rules inspired by [ReLint.jl](https://github.com/RelationalAI-oss/ReLint.jl):
|
|
111
|
+
`no-debugger` (in `recommended` as a warning), `no-env-mutation`, `require-typed-global`,
|
|
112
|
+
`prefer-typed-empty-array`, `no-show-macro`, `no-reassigned-capture`,
|
|
113
|
+
`prefer-parenthesized-interpolation` (also in `style`), and the configurable policy rules
|
|
114
|
+
`no-restricted-calls`, `no-restricted-macros` and `no-restricted-imports`, which ship
|
|
115
|
+
with no entries. (#43)
|
|
116
|
+
- `docs/policies.md` and `docs/restricted-syntax.md`: project policies with the
|
|
117
|
+
`no-restricted-*` rules and ESLint core `no-restricted-syntax` over Julia trees. (#43)
|
|
118
|
+
- An Influences section in the README. (#43)
|
|
119
|
+
|
|
120
|
+
### Changed
|
|
121
|
+
|
|
122
|
+
- `wasm/parser.wasm` rebuilt on [WasmCodegen.jl](https://github.com/gbaraldi/WasmCodegen.jl)
|
|
123
|
+
main `98cad1f` (v0.1.0: `316bbaf`), with WasmBuilder.jl 0.1.1 and `wasm-opt -O3`
|
|
124
|
+
(Binaryen 130). JuliaSyntax is unchanged: the one shipped in Julia 1.13.2 (also the one in
|
|
125
|
+
1.13.3). The parser output is identical to v0.1.0's on 25,174 real-world Julia files, and
|
|
126
|
+
parsing speed is the same within noise (0.156 → 0.159 s/MB). The module is 739,251 bytes
|
|
127
|
+
(was 735,576). `wasm/manifest.json` also records the WasmBuilder and Binaryen versions.
|
|
128
|
+
The build was first checked on WasmCodegen main in #45; this release ships it.
|
|
129
|
+
- README: the rule count is 76.
|
|
130
|
+
|
|
131
|
+
## [0.1.0] - 2026-11-08
|
|
132
|
+
|
|
133
|
+
First release, as a GitHub release (not on npm yet).
|
|
134
|
+
|
|
135
|
+
### Added
|
|
136
|
+
|
|
137
|
+
- ESLint language plugin for Julia (`julia/julia`), using ESLint's language API (ESLint 10,
|
|
138
|
+
or 9.39+). Parses with JuliaSyntax from Julia 1.13.2, compiled to WebAssembly and bundled
|
|
139
|
+
(no Julia installation needed); the binary's hash is verified at load time.
|
|
140
|
+
- 66 rules: likely bugs (`use-isnan`, `no-unsafe-finally`, `no-unreachable`,
|
|
141
|
+
`no-duplicate-keyword-arguments`, …), scope rules (`no-undef`, `no-unused-vars`,
|
|
142
|
+
`no-undefined-exports`, …) and performance and style advice.
|
|
143
|
+
- Presets: `recommended` (23 rules: likely bugs, near-zero false positives), `strict`
|
|
144
|
+
(everything else as warnings), `style` and `all`, with the evidence for each default in
|
|
145
|
+
`docs/defaults.md`.
|
|
146
|
+
- Scope analysis following Julia's scoping rules, and module resolution: literal
|
|
147
|
+
`include` trees, `test/runtests.jl`, and the exports of `using`d stdlibs and packages
|
|
148
|
+
(through `Manifest.toml` and the depot).
|
|
149
|
+
- `eslint-disable` directives in Julia comments, `--fix` and editor suggestions, a
|
|
150
|
+
`recover` mode that lints files with syntax errors, and documentation links from every
|
|
151
|
+
rule (`meta.docs.url`) so SARIF and editors link findings to rule pages.
|
|
152
|
+
- Usage guide (`docs/usage.md`): install from a release or git, CLI, GitHub Actions with
|
|
153
|
+
annotations and code scanning, pre-commit hooks, and editors.
|
|
154
|
+
|
|
155
|
+
[Unreleased]: https://github.com/pankgeorg/eslint-plugin-julia/compare/v0.3.1...HEAD
|
|
156
|
+
[0.3.1]: https://github.com/pankgeorg/eslint-plugin-julia/compare/v0.3.0...v0.3.1
|
|
157
|
+
[0.3.0]: https://github.com/pankgeorg/eslint-plugin-julia/compare/v0.2.0...v0.3.0
|
|
158
|
+
[0.2.0]: https://github.com/pankgeorg/eslint-plugin-julia/compare/v0.1.0...v0.2.0
|
|
159
|
+
[0.1.0]: https://github.com/pankgeorg/eslint-plugin-julia/releases/tag/v0.1.0
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Panagiotis Georgakopoulos
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,214 @@
|
|
|
1
|
-
#
|
|
1
|
+
# eslint-plugin-julia
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://github.com/pankgeorg/eslint-plugin-julia/actions/workflows/ci.yml)
|
|
4
|
+
[](https://github.com/pankgeorg/eslint-plugin-julia/releases)
|
|
5
|
+
[](LICENSE)
|
|
6
|
+
|
|
7
|
+
Lint Julia code with [ESLint](https://eslint.org).
|
|
8
|
+
|
|
9
|
+
- **Julia's own parser.** JuliaSyntax from Julia 1.13.2, compiled to WebAssembly and
|
|
10
|
+
bundled. It parses exactly what Julia parses, and needs no Julia installation, only
|
|
11
|
+
Node.js.
|
|
12
|
+
- **77 rules** for likely bugs (`x == NaN`, a `return` inside `finally`, duplicate
|
|
13
|
+
keyword arguments, unreachable code, …), scope problems (undefined and unused names,
|
|
14
|
+
with `include` and `using` resolved through your Manifest) and performance pitfalls.
|
|
15
|
+
A conservative `recommended` preset, and `strict` for everything.
|
|
16
|
+
- **Everything ESLint has:** `--fix` and editor suggestions, `eslint-disable` comments in
|
|
17
|
+
Julia, flat config, SARIF for GitHub code scanning, caching, and pre-commit hooks.
|
|
18
|
+
|
|
19
|
+
```console
|
|
20
|
+
$ npx eslint '**/*.jl'
|
|
21
|
+
|
|
22
|
+
src/stats.jl
|
|
23
|
+
12:8 error Use isnan to test for NaN; equality and identity have different NaN semantics julia/use-isnan
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Quick start
|
|
27
|
+
|
|
28
|
+
```sh
|
|
29
|
+
npm install --save-dev eslint eslint-plugin-julia
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
```js
|
|
33
|
+
// eslint.config.js
|
|
34
|
+
import julia from 'eslint-plugin-julia';
|
|
35
|
+
|
|
36
|
+
export default [julia.configs.recommended];
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
```sh
|
|
40
|
+
npx eslint '**/*.jl'
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Requires Node.js 22 or 24 and ESLint 10 (or 9.39+). **[docs/usage.md](docs/usage.md)**
|
|
44
|
+
covers the rest:
|
|
45
|
+
|
|
46
|
+
- setting this up in a Julia project that has no `package.json` yet;
|
|
47
|
+
- configuration, `--fix` and SARIF;
|
|
48
|
+
- a copy-paste **GitHub Actions** workflow (annotations and code scanning);
|
|
49
|
+
- pre-commit hooks;
|
|
50
|
+
- VS Code.
|
|
51
|
+
|
|
52
|
+
## Presets
|
|
53
|
+
|
|
54
|
+
| preset | what it turns on |
|
|
55
|
+
| --------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
|
|
56
|
+
| `julia.configs.recommended` | Likely bugs with near-zero false positives: errors when Julia rejects the code or the check can never be right, else warnings. |
|
|
57
|
+
| `julia.configs.strict` | `recommended` plus every other rule as a warning (style, performance, scope rules such as `no-unused-vars`). |
|
|
58
|
+
| `julia.configs.style` | The opt-in style rules only, as warnings; combine with `recommended`. |
|
|
59
|
+
| `julia.configs.all` | Every rule as an error. |
|
|
60
|
+
|
|
61
|
+
Why each rule has its default, with false-positive counts on 2,518 real Julia files,
|
|
62
|
+
Pluto.jl and Malt.jl: [docs/defaults.md](docs/defaults.md).
|
|
63
|
+
|
|
64
|
+
Project policies (banned calls, macros, imports or syntax) use the configurable
|
|
65
|
+
`no-restricted-calls`, `no-restricted-macros` and `no-restricted-imports` rules, which ship
|
|
66
|
+
empty, and [ESLint core `no-restricted-syntax` with selectors over Julia trees](docs/restricted-syntax.md);
|
|
67
|
+
a worked example config is in [docs/policies.md](docs/policies.md).
|
|
68
|
+
|
|
69
|
+
## Rules
|
|
70
|
+
|
|
71
|
+
"Recommended" is the rule's level in `recommended`. "Edits": _Fix_ means `--fix` applies it,
|
|
72
|
+
and _Suggestions_ are quick fixes offered in editors.
|
|
73
|
+
|
|
74
|
+
| Rule | Recommended | Edits |
|
|
75
|
+
| -------------------------------------------------------------------------------------- | ------------------ | ----------------- |
|
|
76
|
+
| [no-collapsible-if](docs/rules/no-collapsible-if.md) | Off (strict: warn) | Suggestions |
|
|
77
|
+
| [no-collect-before-range-iteration](docs/rules/no-collect-before-range-iteration.md) | Off (strict: warn) | Suggestions |
|
|
78
|
+
| [no-compare-negative-zero](docs/rules/no-compare-negative-zero.md) | Off (strict: warn) | Suggestions |
|
|
79
|
+
| [no-concat-growth-in-loop](docs/rules/no-concat-growth-in-loop.md) | Off (strict: warn) | None |
|
|
80
|
+
| [no-cond-assign](docs/rules/no-cond-assign.md) | Off (strict: warn) | Suggestions |
|
|
81
|
+
| [no-const-reassign](docs/rules/no-const-reassign.md) | Warn | None |
|
|
82
|
+
| [no-constant-condition](docs/rules/no-constant-condition.md) | Off (strict: warn) | None |
|
|
83
|
+
| [no-debugger](docs/rules/no-debugger.md) | Warn | Suggestions |
|
|
84
|
+
| [no-discarded-copy-result](docs/rules/no-discarded-copy-result.md) | Warn | None |
|
|
85
|
+
| [no-dupe-args](docs/rules/no-dupe-args.md) | Error | None |
|
|
86
|
+
| [no-dupe-elseif](docs/rules/no-dupe-elseif.md) | Warn | None |
|
|
87
|
+
| [no-duplicate-dict-keys](docs/rules/no-duplicate-dict-keys.md) | Warn | None |
|
|
88
|
+
| [no-duplicate-keyword-arguments](docs/rules/no-duplicate-keyword-arguments.md) | Error | None |
|
|
89
|
+
| [no-duplicate-logical-operands](docs/rules/no-duplicate-logical-operands.md) | Warn | Suggestions |
|
|
90
|
+
| [no-duplicate-method-signatures](docs/rules/no-duplicate-method-signatures.md) | Off (strict: warn) | None |
|
|
91
|
+
| [no-duplicate-struct-fields](docs/rules/no-duplicate-struct-fields.md) | Error | None |
|
|
92
|
+
| [no-empty-block](docs/rules/no-empty-block.md) | Off (strict: warn) | None |
|
|
93
|
+
| [no-empty-catch](docs/rules/no-empty-catch.md) | Off (strict: warn) | None |
|
|
94
|
+
| [no-empty-literal-range](docs/rules/no-empty-literal-range.md) | Off (strict: warn) | None |
|
|
95
|
+
| [no-env-mutation](docs/rules/no-env-mutation.md) | Off (strict: warn) | None |
|
|
96
|
+
| [no-eval-local-symbol](docs/rules/no-eval-local-symbol.md) | Off (strict: warn) | None |
|
|
97
|
+
| [no-fill-with-mutable](docs/rules/no-fill-with-mutable.md) | Warn | None |
|
|
98
|
+
| [no-full-slice-in-consumer](docs/rules/no-full-slice-in-consumer.md) | Off (strict: warn) | Suggestions |
|
|
99
|
+
| [no-identical-branches](docs/rules/no-identical-branches.md) | Off (strict: warn) | None |
|
|
100
|
+
| [no-import-assign](docs/rules/no-import-assign.md) | Error | None |
|
|
101
|
+
| [no-impossible-length-comparison](docs/rules/no-impossible-length-comparison.md) | Off (strict: warn) | None |
|
|
102
|
+
| [no-invalid-foreign-call-signature](docs/rules/no-invalid-foreign-call-signature.md) | Error | None |
|
|
103
|
+
| [no-isdefined-local-call](docs/rules/no-isdefined-local-call.md) | Error | None |
|
|
104
|
+
| [no-loss-of-float-integer-precision](docs/rules/no-loss-of-float-integer-precision.md) | Off (strict: warn) | None |
|
|
105
|
+
| [no-nothing-return-conversion](docs/rules/no-nothing-return-conversion.md) | Warn | None |
|
|
106
|
+
| [no-obvious-type-piracy](docs/rules/no-obvious-type-piracy.md) | Off (strict: warn) | None |
|
|
107
|
+
| [no-orphan-file](docs/rules/no-orphan-file.md) | Warn | None |
|
|
108
|
+
| [no-overwritten-literal-index](docs/rules/no-overwritten-literal-index.md) | Off (strict: warn) | None |
|
|
109
|
+
| [no-reassigned-capture](docs/rules/no-reassigned-capture.md) | Off (strict: warn) | None |
|
|
110
|
+
| [no-redundant-type-assertion](docs/rules/no-redundant-type-assertion.md) | Off (strict: warn) | Fix |
|
|
111
|
+
| [no-redundant-union-members](docs/rules/no-redundant-union-members.md) | Off (strict: warn) | Suggestions |
|
|
112
|
+
| [no-restricted-calls](docs/rules/no-restricted-calls.md) | Off (strict: warn) | None |
|
|
113
|
+
| [no-restricted-imports](docs/rules/no-restricted-imports.md) | Off (strict: warn) | None |
|
|
114
|
+
| [no-restricted-macros](docs/rules/no-restricted-macros.md) | Off (strict: warn) | None |
|
|
115
|
+
| [no-self-assign](docs/rules/no-self-assign.md) | Warn | None |
|
|
116
|
+
| [no-self-identity-comparison](docs/rules/no-self-identity-comparison.md) | Off (strict: warn) | None |
|
|
117
|
+
| [no-shadowed-loop-var](docs/rules/no-shadowed-loop-var.md) | Warn | None |
|
|
118
|
+
| [no-show-macro](docs/rules/no-show-macro.md) | Off (strict: warn) | Suggestions |
|
|
119
|
+
| [no-single-iteration-loop](docs/rules/no-single-iteration-loop.md) | Off (strict: warn) | None |
|
|
120
|
+
| [no-string-growth-in-loop](docs/rules/no-string-growth-in-loop.md) | Off (strict: warn) | None |
|
|
121
|
+
| [no-throw-literal](docs/rules/no-throw-literal.md) | Off (strict: warn) | Suggestions |
|
|
122
|
+
| [no-unbound-type-parameters](docs/rules/no-unbound-type-parameters.md) | Off (strict: warn) | None |
|
|
123
|
+
| [no-undef](docs/rules/no-undef.md) | Warn | None |
|
|
124
|
+
| [no-undefined-exports](docs/rules/no-undefined-exports.md) | Off (strict: warn) | None |
|
|
125
|
+
| [no-uninitialized-ref-read](docs/rules/no-uninitialized-ref-read.md) | Error | None |
|
|
126
|
+
| [no-unreachable](docs/rules/no-unreachable.md) | Error | None |
|
|
127
|
+
| [no-unsafe-finally](docs/rules/no-unsafe-finally.md) | Error | None |
|
|
128
|
+
| [no-unsafe-negation](docs/rules/no-unsafe-negation.md) | Warn | Suggestions |
|
|
129
|
+
| [no-unused-expressions](docs/rules/no-unused-expressions.md) | Warn | None |
|
|
130
|
+
| [no-unused-type-parameters](docs/rules/no-unused-type-parameters.md) | Off (strict: warn) | None |
|
|
131
|
+
| [no-unused-vars](docs/rules/no-unused-vars.md) | Off (strict: warn) | None |
|
|
132
|
+
| [no-use-before-define](docs/rules/no-use-before-define.md) | Off (strict: warn) | None |
|
|
133
|
+
| [no-useless-assignment](docs/rules/no-useless-assignment.md) | Off (strict: warn) | Suggestions |
|
|
134
|
+
| [no-useless-catch](docs/rules/no-useless-catch.md) | Off (strict: warn) | None |
|
|
135
|
+
| [parse-errors](docs/rules/parse-errors.md) | Error | None |
|
|
136
|
+
| [prefer-any](docs/rules/prefer-any.md) | Off (strict: warn) | Suggestions |
|
|
137
|
+
| [prefer-const-global](docs/rules/prefer-const-global.md) | Off (strict: warn) | Suggestions |
|
|
138
|
+
| [prefer-count-over-findall-length](docs/rules/prefer-count-over-findall-length.md) | Off (strict: warn) | Suggestions |
|
|
139
|
+
| [prefer-eachindex](docs/rules/prefer-eachindex.md) | Off (strict: warn) | Suggestions |
|
|
140
|
+
| [prefer-extreme-over-sort](docs/rules/prefer-extreme-over-sort.md) | Off (strict: warn) | Suggestions |
|
|
141
|
+
| [prefer-generator-sum](docs/rules/prefer-generator-sum.md) | Off (strict: warn) | Suggestions |
|
|
142
|
+
| [prefer-identity-nothing](docs/rules/prefer-identity-nothing.md) | Off (strict: warn) | Fix + suggestions |
|
|
143
|
+
| [prefer-in](docs/rules/prefer-in.md) | Off (strict: warn) | Suggestions |
|
|
144
|
+
| [prefer-isa](docs/rules/prefer-isa.md) | Off (strict: warn) | Suggestions |
|
|
145
|
+
| [prefer-isempty](docs/rules/prefer-isempty.md) | Off (strict: warn) | Suggestions |
|
|
146
|
+
| [prefer-ismissing](docs/rules/prefer-ismissing.md) | Error | Suggestions |
|
|
147
|
+
| [prefer-parenthesized-interpolation](docs/rules/prefer-parenthesized-interpolation.md) | Off (strict: warn) | Fix + suggestions |
|
|
148
|
+
| [prefer-size-dimension](docs/rules/prefer-size-dimension.md) | Off (strict: warn) | Suggestions |
|
|
149
|
+
| [prefer-sized-push-buffer](docs/rules/prefer-sized-push-buffer.md) | Off (strict: warn) | Suggestions |
|
|
150
|
+
| [prefer-typed-empty-array](docs/rules/prefer-typed-empty-array.md) | Off (strict: warn) | None |
|
|
151
|
+
| [require-typed-global](docs/rules/require-typed-global.md) | Off (strict: warn) | None |
|
|
152
|
+
| [use-isnan](docs/rules/use-isnan.md) | Error | Suggestions |
|
|
153
|
+
|
|
154
|
+
Rules work on syntax and scope. They don't expand macros or infer types, so they skip
|
|
155
|
+
code inside macros they don't know and never guess at dispatch. Each rule's page lists
|
|
156
|
+
its limits.
|
|
157
|
+
|
|
158
|
+
## How it fits with other Julia tools
|
|
159
|
+
|
|
160
|
+
- **Formatting:** use Runic.jl, JuliaFormatter.jl or topiary-julia. This plugin has no
|
|
161
|
+
whitespace rules.
|
|
162
|
+
- **JET.jl** finds errors through type inference, by loading your code in Julia. This
|
|
163
|
+
plugin needs no Julia process: it checks syntax and scope, a different class of mistakes,
|
|
164
|
+
and the two complement each other.
|
|
165
|
+
- **The Julia language server** (VS Code) provides editor intelligence and its own lint.
|
|
166
|
+
This plugin brings ESLint's ecosystem to Julia: configuration, CI reports, SARIF and
|
|
167
|
+
pre-commit.
|
|
168
|
+
|
|
169
|
+
## More
|
|
170
|
+
|
|
171
|
+
- [docs/usage.md](docs/usage.md): install, configure, CLI, GitHub Actions, hooks, editors.
|
|
172
|
+
- [docs/defaults.md](docs/defaults.md): presets and the evidence behind them.
|
|
173
|
+
- [docs/module-resolution.md](docs/module-resolution.md): how `include`/`using` are resolved.
|
|
174
|
+
- [docs/policies.md](docs/policies.md): project policies with the `no-restricted-*` rules and core `no-restricted-syntax`.
|
|
175
|
+
- [docs/ast.md](docs/ast.md): the Julia AST for writing your own rules or selectors.
|
|
176
|
+
- [CONTRIBUTING.md](CONTRIBUTING.md): development, tests, adding a rule, rebuilding the parser.
|
|
177
|
+
- [CHANGELOG.md](CHANGELOG.md).
|
|
178
|
+
|
|
179
|
+
## Influences
|
|
180
|
+
|
|
181
|
+
Rule ideas, names and behaviour come from these projects. No code, tests or docs were
|
|
182
|
+
copied; snippets and docs here are original.
|
|
183
|
+
|
|
184
|
+
- [ESLint](https://eslint.org/docs/latest/rules/) core rules: most `no-*` correctness rules,
|
|
185
|
+
the `recommended`/`strict` split, and the configurable `no-restricted-*` shape.
|
|
186
|
+
- [typescript-eslint](https://typescript-eslint.io/rules/): `no-redundant-union-members`,
|
|
187
|
+
`no-redundant-type-assertion`, `no-unused-type-parameters`, and `no-throw-literal`
|
|
188
|
+
(with ESLint's own).
|
|
189
|
+
- [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn): `prefer-isempty`,
|
|
190
|
+
`prefer-in`, `prefer-any`, `no-fill-with-mutable`, `no-discarded-copy-result`,
|
|
191
|
+
`no-duplicate-logical-operands`, `no-impossible-length-comparison`.
|
|
192
|
+
- [SonarJS](https://github.com/SonarSource/SonarJS): `no-identical-branches`,
|
|
193
|
+
`no-collapsible-if`, `no-overwritten-literal-index`, `no-useless-catch`.
|
|
194
|
+
- [ReLint.jl](https://github.com/RelationalAI-oss/ReLint.jl) (RelationalAI): rule ideas for
|
|
195
|
+
ENV mutation, typed globals, untyped empty arrays, interpolation, captured variables and
|
|
196
|
+
debug macros, and the shape of project policies (banned calls, macros and imports), which
|
|
197
|
+
here are the configurable `no-restricted-calls`, `no-restricted-macros` and
|
|
198
|
+
`no-restricted-imports` rules. Each related rule's doc names the ReLint check.
|
|
199
|
+
- [Aqua.jl](https://github.com/JuliaTesting/Aqua.jl): `no-unbound-type-parameters`,
|
|
200
|
+
`no-obvious-type-piracy`, `no-undefined-exports`.
|
|
201
|
+
- [JET.jl](https://github.com/aviatesk/JET.jl) and
|
|
202
|
+
[StaticLint.jl](https://github.com/julia-vscode/StaticLint.jl): categories of errors worth
|
|
203
|
+
catching statically (undefined names, guaranteed errors); this plugin does no type inference.
|
|
204
|
+
- The Julia manual's [performance tips](https://docs.julialang.org/en/v1/manual/performance-tips/):
|
|
205
|
+
the performance rules (globals, captured variables, abstract containers, growth in loops).
|
|
206
|
+
|
|
207
|
+
MIT © Panagiotis Georgakopoulos. Bundled parser/compiler notices are in
|
|
208
|
+
`wasm/LICENSES/`; the Wasm compiler's exact revision is recorded in the manifest.
|
|
209
|
+
|
|
210
|
+
## License
|
|
211
|
+
|
|
212
|
+
MIT © Panagiotis Georgakopoulos. The bundled parser includes code from Julia and
|
|
213
|
+
JuliaSyntax (MIT) and was compiled with WasmCodegen.jl (MIT); their notices are in
|
|
214
|
+
[wasm/LICENSES/](wasm/LICENSES/).
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
{
|
|
2
|
+
"julia": "1.13.2",
|
|
3
|
+
"Base": ["!", "!=", "!==", "%", "&", "'", "*", "+", "-", "/", "//", ":", "<", "<:", "<<", "<=", "==", "===", "=>", ">", ">:", ">=", ">>", ">>>", "@Kwargs", "@MIME_str", "@NamedTuple", "@__DIR__", "@__FILE__", "@__FUNCTION__", "@__LINE__", "@__MODULE__", "@__dot__", "@acquire", "@allocated", "@allocations", "@assert", "@assume_effects", "@async", "@atomic", "@atomiconce", "@atomicreplace", "@atomicswap", "@b_str", "@big_str", "@boundscheck", "@ccall", "@cfunction", "@cmd", "@coalesce", "@constprop", "@debug", "@deprecate", "@doc", "@elapsed", "@enum", "@error", "@eval", "@evalpoly", "@fastmath", "@generated", "@gensym", "@goto", "@html_str", "@inbounds", "@info", "@inline", "@int128_str", "@invoke", "@invokelatest", "@isdefined", "@kwdef", "@label", "@lazy_str", "@locals", "@lock", "@lock_conflicts", "@macroexpand", "@macroexpand1", "@main", "@noinline", "@nospecialize", "@polly", "@propagate_inbounds", "@r_str", "@raw_str", "@s_str", "@show", "@showtime", "@simd", "@something", "@specialize", "@static", "@sync", "@task", "@text_str", "@threadcall", "@time", "@timed", "@timev", "@uint128_str", "@v_str", "@view", "@views", "@warn", "@world", "ARGS", "AbstractArray", "AbstractChannel", "AbstractChar", "AbstractDict", "AbstractDisplay", "AbstractFloat", "AbstractIrrational", "AbstractLock", "AbstractMatch", "AbstractMatrix", "AbstractOneTo", "AbstractPattern", "AbstractPipe", "AbstractRange", "AbstractSet", "AbstractSlices", "AbstractString", "AbstractUnitRange", "AbstractVecOrMat", "AbstractVector", "Any", "ArgumentError", "Array", "AssertionError", "AsyncCondition", "AtomicMemory", "AtomicMemoryRef", "Base", "BigFloat", "BigInt", "BitArray", "BitMatrix", "BitSet", "BitVector", "Bool", "BoundsError", "Broadcast", "BufferStream", "C_NULL", "CanonicalIndexError", "CapturedException", "CartesianIndex", "CartesianIndices", "Cchar", "Cdouble", "Cfloat", "Channel", "Char", "Checked", "Cint", "Cintmax_t", "Clong", "Clonglong", "Cmd", "CodeUnits", "Colon", "ColumnSlices", "Complex", "ComplexF16", "ComplexF32", "ComplexF64", "ComposedFunction", "CompositeException", "ConcurrencyViolationError", "Condition", "Core", "Cptrdiff_t", "Cshort", "Csize_t", "Cssize_t", "Cstring", "Cuchar", "Cuint", "Cuintmax_t", "Culong", "Culonglong", "Cushort", "Cvoid", "Cwchar_t", "Cwstring", "DEPOT_PATH", "DL_LOAD_PATH", "DataType", "DenseArray", "DenseMatrix", "DenseVecOrMat", "DenseVector", "Dict", "DimensionMismatch", "Dims", "DivideError", "Docs", "DomainError", "ENDIAN_BOM", "ENV", "EOFError", "Enum", "ErrorException", "Event", "Exception", "ExponentialBackOff", "Expr", "FieldError", "Filesystem", "Fix", "Fix1", "Fix2", "Float16", "Float32", "Float64", "Function", "GC", "Generator", "GenericMemory", "GenericMemoryRef", "GlobalRef", "HTML", "IO", "IOBuffer", "IOContext", "IOServer", "IOStream", "IR", "IdDict", "IdSet", "ImmutableDict", "IndexCartesian", "IndexLinear", "IndexStyle", "InexactError", "Inf", "Inf16", "Inf32", "Inf64", "InitError", "InsertionSort", "Int", "Int128", "Int16", "Int32", "Int64", "Int8", "Integer", "InterruptException", "InvalidStateException", "Irrational", "IteratorEltype", "IteratorSize", "Iterators", "KeyError", "LOAD_PATH", "LazyString", "Libc", "LinRange", "LineNumberNode", "LinearIndices", "LoadError", "Lockable", "LogRange", "MIME", "Main", "MathConstants", "Matrix", "Memory", "MemoryRef", "MergeSort", "Meta", "Method", "MethodError", "Missing", "MissingException", "Module", "NTuple", "NaN", "NaN16", "NaN32", "NaN64", "NamedTuple", "Nothing", "Number", "OS_HANDLE", "OncePerProcess", "OncePerTask", "OncePerThread", "OneTo", "Order", "OrdinalRange", "OutOfMemoryError", "OverflowError", "PROGRAM_FILE", "Pair", "Pairs", "PartialQuickSort", "PermutedDimsArray", "Pipe", "PipeBuffer", "PipeEndpoint", "ProcessFailedException", "Ptr", "QuickSort", "QuoteNode", "Rational", "RawFD", "ReadOnlyMemoryError", "Real", "ReentrantLock", "Ref", "Regex", "RegexMatch", "Returns", "RoundDown", "RoundFromZero", "RoundNearest", "RoundNearestTiesAway", "RoundNearestTiesUp", "RoundToZero", "RoundUp", "RoundingMode", "RowSlices", "ScopedValues", "SegmentationFault", "Semaphore", "Set", "Signed", "Slices", "Some", "Sort", "StackOverflowError", "StackTraces", "StepRange", "StepRangeLen", "StridedArray", "StridedMatrix", "StridedVecOrMat", "StridedVector", "String", "StringIndexError", "SubArray", "SubString", "SubstitutionString", "Symbol", "Sys", "SystemError", "TTY", "Task", "TaskFailedException", "Text", "TextDisplay", "Threads", "Timer", "Tuple", "Type", "TypeError", "TypeVar", "UInt", "UInt128", "UInt16", "UInt32", "UInt64", "UInt8", "UUID", "UndefInitializer", "UndefKeywordError", "UndefRefError", "UndefVarError", "Union", "UnionAll", "UnitRange", "Unsigned", "VERSION", "Val", "Vararg", "VecElement", "VecOrMat", "Vector", "VersionNumber", "WeakKeyDict", "WeakRef", "\\", "^", "__has_internal_change", "__precompile__", "abs", "abs2", "abspath", "accumulate", "accumulate!", "acos", "acosd", "acosh", "acot", "acotd", "acoth", "acquire", "acsc", "acscd", "acsch", "active_manifest", "active_project", "addenv", "adjoint", "all", "all!", "allequal", "allunique", "angle", "any", "any!", "append!", "applicable", "argmax", "argmin", "arrayref", "arrayset", "arraysize", "ascii", "asec", "asecd", "asech", "asin", "asind", "asinh", "asyncmap", "asyncmap!", "atan", "atand", "atanh", "atexit", "atreplinit", "axes", "backtrace", "basename", "big", "bind", "binomial", "bitreverse", "bitrotate", "bitstring", "broadcast", "broadcast!", "bswap", "bytes2hex", "bytesavailable", "cat", "catch_backtrace", "cbrt", "cconvert", "cd", "ceil", "cglobal", "checkbounds", "checked_length", "checkindex", "chmod", "chomp", "chop", "chopprefix", "chopsuffix", "chown", "circcopy!", "circshift", "circshift!", "cis", "cispi", "clamp", "clamp!", "cld", "close", "closewrite", "cmp", "coalesce", "code_lowered", "code_typed", "codepoint", "codeunit", "codeunits", "collect", "complex", "conj", "conj!", "const_arrayref", "contains", "contractuser", "convert", "copy", "copy!", "copyline", "copysign", "copyto!", "copyuntil", "cos", "cosc", "cosd", "cosh", "cospi", "cot", "cotd", "coth", "count", "count!", "count_ones", "count_zeros", "countlines", "cp", "csc", "cscd", "csch", "ctime", "ctruncate", "cumprod", "cumprod!", "cumsum", "cumsum!", "current_exceptions", "current_task", "deepcopy", "deg2rad", "delete!", "deleteat!", "denominator", "depwarn", "detach", "devnull", "diff", "digits", "digits!", "dirname", "disable_sigint", "diskstat", "display", "displayable", "displaysize", "div", "divrem", "donotdelete", "download", "dropdims", "dump", "dup", "eachcol", "eachindex", "eachline", "eachmatch", "eachrow", "eachrsplit", "eachslice", "eachsplit", "elsize", "eltype", "empty", "empty!", "endswith", "enumerate", "eof", "eps", "error", "errormonitor", "esc", "escape_microsoft_c_args", "escape_raw_string", "escape_string", "evalfile", "evalpoly", "exit", "exit_on_sigint", "exp", "exp10", "exp2", "expanduser", "expm1", "exponent", "extrema", "extrema!", "factorial", "falses", "fd", "fdio", "fetch", "fieldcount", "fieldindex", "fieldname", "fieldnames", "fieldoffset", "fieldtype", "fieldtypes", "filemode", "filesize", "fill", "fill!", "filter", "filter!", "finalize", "finalizer", "findall", "findfirst", "findlast", "findmax", "findmax!", "findmin", "findmin!", "findnext", "findprev", "first", "firstindex", "fld", "fld1", "fldmod", "fldmod1", "flipsign", "float", "floatmax", "floatmin", "floor", "flush", "fma", "foldl", "foldr", "foreach", "fourthroot", "frexp", "front", "fullname", "functionloc", "gcd", "gcdx", "gensym", "get", "get!", "get_extension", "get_zero_subnormals", "getfield", "getglobal", "gethostname", "getindex", "getkey", "getpid", "getproperty", "gperm", "hardlink", "has_offset_axes", "hasfield", "hash", "haskey", "hasmethod", "hasproperty", "hcat", "hex2bytes", "hex2bytes!", "homedir", "htol", "hton", "hvcat", "hvncat", "hypot", "identify_package", "identity", "ifelse", "ignorestatus", "im", "imag", "in", "in!", "include_dependency", "include_string", "indexin", "insert!", "insertdims", "insorted", "instances", "intersect", "intersect!", "inv", "invmod", "invoke", "invokelatest", "invperm", "invpermute!", "isa", "isa_ast_node", "isabspath", "isabstracttype", "isambiguous", "isapprox", "isascii", "isassigned", "isbinaryoperator", "isbits", "isbitstype", "isblockdev", "ischardev", "iscntrl", "isconcretetype", "isconst", "isdefined", "isdefinedglobal", "isdigit", "isdir", "isdirpath", "isdisjoint", "isdispatchtuple", "isdone", "isempty", "isequal", "iseven", "isexecutable", "isexported", "isexpr", "isfifo", "isfile", "isfinite", "isfull", "isidentifier", "isimmutable", "isinf", "isinteger", "isinteractive", "isless", "isletter", "islink", "islocked", "islowercase", "ismarked", "ismissing", "ismount", "ismutable", "ismutabletype", "isnan", "isnegative", "isnothing", "isnumeric", "isodd", "isone", "isopen", "isoperator", "ispath", "isperm", "ispositive", "ispow2", "isprimitivetype", "isprint", "ispublic", "ispunct", "isqrt", "isreadable", "isreadonly", "isready", "isreal", "issetequal", "issetgid", "issetuid", "issingletontype", "issocket", "issorted", "isspace", "issticky", "isstructtype", "issubnormal", "issubset", "istaskdone", "istaskfailed", "istaskstarted", "istextmime", "isunaryoperator", "isunordered", "isuppercase", "isvalid", "iswritable", "isxdigit", "iszero", "iterate", "jit_total_bytes", "join", "joinpath", "keepat!", "keys", "keytype", "kill", "kron", "kron!", "last", "lastindex", "lcm", "ldexp", "leading_ones", "leading_zeros", "length", "link_pipe!", "load_path", "locate_package", "lock", "log", "log10", "log1p", "log2", "logrange", "lowercase", "lowercasefirst", "lpad", "lstat", "lstrip", "ltoh", "ltruncate", "macroexpand", "macroexpand!", "map", "map!", "mapfoldl", "mapfoldr", "mapreduce", "mapslices", "mark", "match", "max", "maximum", "maximum!", "maxintfloat", "memoryindex", "memoryref", "merge", "merge!", "mergewith", "mergewith!", "methods", "min", "minimum", "minimum!", "minmax", "missing", "mkdir", "mkpath", "mktemp", "mktempdir", "mod", "mod1", "mod2pi", "modf", "modifyfield!", "modifyglobal!", "modifyproperty!", "moduleroot", "mtime", "mul_hi", "muladd", "mv", "nameof", "names", "nand", "ncodeunits", "ndigits", "ndims", "nextfloat", "nextind", "nextpow", "nextprod", "nfields", "nonmissingtype", "nor", "normpath", "nothing", "notify", "notnothing", "ntoh", "ntuple", "numerator", "objectid", "occursin", "oftype", "one", "ones", "oneunit", "only", "open", "operator_associativity", "operator_precedence", "operm", "pairs", "parent", "parentindices", "parentmodule", "parse", "partialsort", "partialsort!", "partialsortperm", "partialsortperm!", "pathof", "peek", "permute!", "permutedims", "permutedims!", "pi", "pipeline", "pkgdir", "pkgversion", "pointer", "pointer_from_objref", "pop!", "popat!", "popdisplay", "popfirst!", "position", "powermod", "precision", "precompile", "prepend!", "prevfloat", "prevind", "prevpow", "print", "println", "printstyled", "process_exited", "process_running", "prod", "prod!", "promote", "promote_rule", "promote_shape", "promote_type", "propertynames", "push!", "pushdisplay", "pushfirst!", "put!", "pwd", "quoted", "rad2deg", "rand", "randn", "range", "rationalize", "read", "read!", "readavailable", "readbytes!", "readchomp", "readdir", "readeach", "readline", "readlines", "readlink", "readuntil", "real", "realpath", "redirect_stderr", "redirect_stdin", "redirect_stdio", "redirect_stdout", "redisplay", "reduce", "reenable_sigint", "reim", "reinterpret", "release", "relpath", "rem", "rem2pi", "remove_linenums!", "rename", "repeat", "replace", "replace!", "replacefield!", "replaceglobal!", "replaceproperty!", "repr", "require_one_based_indexing", "reset", "reseteof", "reshape", "resize!", "rest", "rethrow", "retry", "reverse", "reverse!", "reverseind", "rm", "rot180", "rotl90", "rotr90", "round", "rounding", "rpad", "rsplit", "rstrip", "rtruncate", "run", "runtests", "samefile", "schedule", "searchsorted", "searchsortedfirst", "searchsortedlast", "sec", "secd", "sech", "seek", "seekend", "seekstart", "selectdim", "set_zero_subnormals", "setcpuaffinity", "setdiff", "setdiff!", "setenv", "setfield!", "setfieldonce!", "setgid", "setglobal!", "setglobalonce!", "setindex!", "setprecision", "setproperty!", "setpropertyonce!", "setrounding", "setuid", "shell_escape", "shell_escape_csh", "shell_escape_posixly", "shell_escape_wincmd", "shell_split", "show", "showable", "showarg", "showerror", "sign", "signbit", "signed", "significand", "similar", "sin", "sinc", "sincos", "sincosd", "sincospi", "sind", "sinh", "sinpi", "size", "sizehint!", "sizeof", "skip", "skipchars", "skipmissing", "sleep", "something", "sort", "sort!", "sortperm", "sortperm!", "sortslices", "splat", "splice!", "split", "split_rest", "splitdir", "splitdrive", "splitext", "splitpath", "sprint", "sqrt", "stack", "stacktrace", "startswith", "stat", "stderr", "stdin", "stdout", "step", "stride", "strides", "string", "strip", "success", "sum", "sum!", "summary", "summarysize", "supertype", "swapfield!", "swapglobal!", "swapproperty!", "symdiff", "symdiff!", "symlink", "systemerror", "tail", "take!", "takestring!", "tan", "tand", "tanh", "tanpi", "task_local_storage", "tempdir", "tempname", "text_colors", "textwidth", "thisind", "throw", "time", "time_ns", "timedwait", "titlecase", "to_index", "to_indices", "touch", "trailing_ones", "trailing_zeros", "transcode", "transpose", "trues", "trunc", "truncate", "trylock", "tryparse", "tuple", "typeassert", "typeintersect", "typejoin", "typemax", "typemin", "typeof", "uabs", "undef", "unescape_string", "union", "union!", "unique", "unique!", "unlock", "unmark", "unsafe_convert", "unsafe_copyto!", "unsafe_load", "unsafe_modify!", "unsafe_pointer_to_objref", "unsafe_read", "unsafe_replace!", "unsafe_store!", "unsafe_string", "unsafe_swap!", "unsafe_trunc", "unsafe_wrap", "unsafe_write", "unsigned", "uperm", "uppercase", "uppercasefirst", "valtype", "values", "vcat", "vec", "vect", "view", "wait", "waitall", "waitany", "walkdir", "which", "widemul", "widen", "windowserror", "withenv", "write", "xor", "yield", "yieldto", "zero", "zeros", "zip", "|", "|>", "~", "÷", "π", "ℯ", "∈", "∉", "∋", "∌", "∘", "√", "∛", "∜", "∩", "∪", "≈", "≉", "≠", "≡", "≢", "≤", "≥", "⊆", "⊇", "⊈", "⊉", "⊊", "⊋", "⊻", "⊼", "⊽"],
|
|
4
|
+
"Core": ["<:", "===", "AbstractArray", "AbstractChar", "AbstractFloat", "AbstractString", "Any", "ArgumentError", "Array", "AssertionError", "AtomicMemory", "AtomicMemoryRef", "Bool", "BoundsError", "Char", "ConcurrencyViolationError", "Core", "Cvoid", "DataType", "DenseArray", "DivideError", "DomainError", "ErrorException", "Exception", "Expr", "FieldError", "Float16", "Float32", "Float64", "Function", "GenericMemory", "GenericMemoryRef", "GlobalRef", "IO", "InexactError", "InitError", "Int", "Int128", "Int16", "Int32", "Int64", "Int8", "Integer", "InterruptException", "LineNumberNode", "LoadError", "Main", "Memory", "MemoryRef", "Method", "MethodError", "Module", "NTuple", "NamedTuple", "Nothing", "Number", "OutOfMemoryError", "OverflowError", "Pair", "Ptr", "QuoteNode", "ReadOnlyMemoryError", "Real", "Ref", "SegmentationFault", "Signed", "StackOverflowError", "String", "Symbol", "Task", "Tuple", "Type", "TypeError", "TypeVar", "UInt", "UInt128", "UInt16", "UInt32", "UInt64", "UInt8", "UndefInitializer", "UndefKeywordError", "UndefRefError", "UndefVarError", "Union", "UnionAll", "Unsigned", "Vararg", "VecElement", "WeakRef", "applicable", "arrayref", "arrayset", "arraysize", "const_arrayref", "fieldtype", "getfield", "getglobal", "invoke", "isa", "isdefined", "isdefinedglobal", "modifyfield!", "modifyglobal!", "nfields", "nothing", "replacefield!", "replaceglobal!", "setfield!", "setfieldonce!", "setglobal!", "setglobalonce!", "swapfield!", "swapglobal!", "throw", "tuple", "typeassert", "typeof", "undef"]
|
|
5
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"julia": "1.13.2",
|
|
3
|
+
"modules": {
|
|
4
|
+
"Base": ["@acquire", "@assume_effects", "@constprop", "@locals", "@propagate_inbounds", "AbstractLock", "AbstractOneTo", "AbstractPipe", "AsyncCondition", "BufferStream", "Checked", "CodeUnits", "DL_LOAD_PATH", "Event", "Filesystem", "Fix", "Fix1", "Fix2", "Generator", "IOServer", "IR", "ImmutableDict", "IteratorEltype", "IteratorSize", "LogRange", "OS_HANDLE", "OneTo", "Order", "Pairs", "PipeEndpoint", "ScopedValues", "Semaphore", "Sort", "TTY", "UUID", "acquire", "active_manifest", "active_project", "cconvert", "checked_length", "depwarn", "donotdelete", "dup", "elsize", "escape_microsoft_c_args", "escape_raw_string", "exit_on_sigint", "front", "get_extension", "has_offset_axes", "identify_package", "isa_ast_node", "isambiguous", "isbinaryoperator", "isdone", "isexported", "isexpr", "isidentifier", "isoperator", "ispublic", "issingletontype", "isunaryoperator", "jit_total_bytes", "link_pipe!", "load_path", "locate_package", "memoryindex", "moduleroot", "mul_hi", "notnothing", "operator_associativity", "operator_precedence", "quoted", "release", "remove_linenums!", "rename", "require_one_based_indexing", "reseteof", "rest", "runtests", "shell_escape", "shell_escape_csh", "shell_escape_posixly", "shell_escape_wincmd", "shell_split", "showarg", "split_rest", "summarysize", "tail", "text_colors", "to_index", "uabs", "unsafe_convert", "vect", "windowserror"],
|
|
5
|
+
"Base.GC": ["@preserve", "enable", "enable_logging", "gc", "logging_enabled", "safepoint"],
|
|
6
|
+
"Base.Iterators": ["Stateful", "accumulate", "filter", "map", "peel", "reverse"],
|
|
7
|
+
"Base.JuliaSyntax": ["BARE_MODULE_FLAG", "COLON_QUOTE", "GreenNode", "GreenTreeCursor", "Kind", "MUTABLE_FLAG", "PARENS_FLAG", "ParseStream", "RAW_STRING_FLAG", "RedTreeCursor", "SHORT_FORM_FUNCTION_FLAG", "SyntaxHead", "TOPLEVEL_SEMICOLONS_FLAG", "TRIPLE_STRING_FLAG", "build_tree", "byte_range", "char_range", "children", "filename", "first_byte", "flags", "has_flags", "head", "highlight", "is_decorated", "is_dotted", "is_infix_op_call", "is_leaf", "is_postfix_op_call", "is_prefix_call", "is_prefix_op_call", "is_suffixed", "is_trivia", "last_byte", "numchildren", "numeric_flags", "parse!", "source_line", "source_line_range", "source_location", "sourcefile", "sourcetext", "span"],
|
|
8
|
+
"Base.Meta": ["parse"],
|
|
9
|
+
"Base.ScopedValues": ["get"],
|
|
10
|
+
"Base.Sys": ["CPUinfo"],
|
|
11
|
+
"Base.Threads": ["Condition", "PaddedSpinLock", "ngcthreads", "threadpoolsize"],
|
|
12
|
+
"Dates": ["format"],
|
|
13
|
+
"FileWatching": ["Pidfile"],
|
|
14
|
+
"JuliaSyntaxHighlighting": ["highlight", "highlight!"],
|
|
15
|
+
"Libdl": ["add_dependency!"],
|
|
16
|
+
"LinearAlgebra": ["AbstractTriangular", "Givens", "checksquare", "fillband!", "fillstored!", "haszero", "hermitian", "hermitian_type", "isbanded", "matprod_dest", "peakflops", "symmetric", "symmetric_type", "uplo", "zeroslike"],
|
|
17
|
+
"LinearAlgebra.BLAS": ["get_num_threads", "set_num_threads"],
|
|
18
|
+
"Logging": ["catch_exceptions", "handle_message", "min_enabled_level", "shouldlog"],
|
|
19
|
+
"Markdown": ["MD", "parse"],
|
|
20
|
+
"Pkg": ["activate", "add", "build", "compat", "develop", "free", "gc", "generate", "instantiate", "pin", "precompile", "readonly", "redo", "resolve", "rm", "status", "test", "undo", "update", "why"],
|
|
21
|
+
"Pkg.Apps": ["add", "develop", "rm", "status", "update"],
|
|
22
|
+
"Pkg.Registry": ["add", "rm", "status", "update"],
|
|
23
|
+
"Printf": ["Format", "format"],
|
|
24
|
+
"Profile": ["Allocs", "add_fake_meta", "callers", "clear", "clear_malloc_data", "fetch", "flatten", "init", "print", "retrieve", "take_heap_snapshot", "take_page_profile"],
|
|
25
|
+
"Profile.Allocs": ["@profile", "clear", "fetch", "print"],
|
|
26
|
+
"REPL": ["TerminalMenus"],
|
|
27
|
+
"REPL.TerminalMenus": ["Config", "MultiSelectConfig", "cancel", "config", "header", "keypress", "numoptions", "options", "pick", "selected", "writeline"],
|
|
28
|
+
"Random": ["Sampler", "SamplerSimple", "SamplerTrivial", "SamplerType", "default_rng", "seed!"],
|
|
29
|
+
"SparseArrays.LibSuiteSparse": ["init_suitesparse"],
|
|
30
|
+
"StyledStrings": ["Face", "SimpleColor", "addface!", "styled", "withfaces"],
|
|
31
|
+
"TOML": ["Parser", "ParserError", "parse", "parsefile", "print", "tryparse", "tryparsefile"],
|
|
32
|
+
"Tar": ["Header", "create", "extract", "list", "rewrite", "tree_hash"],
|
|
33
|
+
"Unicode": ["normalize"]
|
|
34
|
+
}
|
|
35
|
+
}
|