bend-lint 0.3.1 → 0.3.2
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/README.md +2 -2
- package/package.json +3 -3
- package/src/linter/cli.bend +3 -3
- package/src/linter/directives/impl.bend +3 -3
- package/src/linter/directives/spec.bend +1 -1
- package/src/linter/shared/files/impl.bend +1 -1
- package/src/linter/shared/fixes/impl.bend +3 -3
- package/src/linter/shared/fixes/spec.bend +1 -1
- package/src/linter/shared/json/impl.bend +1 -1
- package/src/linter/shared/text/impl.bend +1 -1
package/README.md
CHANGED
|
@@ -131,8 +131,8 @@ A rule is a file in `bend-lint-rules/`. It imports bend-lint's rule API from Ben
|
|
|
131
131
|
|
|
132
132
|
```
|
|
133
133
|
import Base
|
|
134
|
-
import bend-lint-api@0.3.
|
|
135
|
-
import bend-lint-api@0.3.
|
|
134
|
+
import bend-lint-api@0.3.2.0/linter/api/impl.bend as LintImpl
|
|
135
|
+
import bend-lint-api@0.3.2.0/linter/api/spec.bend as Lint
|
|
136
136
|
|
|
137
137
|
def rule() -> Lint.Rule:
|
|
138
138
|
...
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bend-lint",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Diagnostics for Bend 2 from rules outside the language: source text, and the checker's types",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"engines": {
|
|
15
15
|
"bun": "1.4.4"
|
|
16
16
|
},
|
|
17
|
-
"bendRelease": "bendlang/bend/v2.0.
|
|
18
|
-
"bendWindows": "MattCozendey/bend/
|
|
17
|
+
"bendRelease": "bendlang/bend/v2.0.40",
|
|
18
|
+
"bendWindows": "MattCozendey/bend/cbb3959663552a2ff1f437c5b2f10c945651f816",
|
|
19
19
|
"scripts": {
|
|
20
20
|
"postinstall": "bun ./src/linter/seam.ts postinstall"
|
|
21
21
|
}
|
package/src/linter/cli.bend
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# The program seam.ts writes from bend-lint.json calls `run` with its rules: `Cli.run(~[Cli.Rule{"x", X.rule()}])`.
|
|
2
2
|
import Base
|
|
3
|
-
import bend-lint-api@0.3.
|
|
4
|
-
import bend-lint-api@0.3.
|
|
5
|
-
import bend-lint-api@0.3.
|
|
3
|
+
import bend-lint-api@0.3.2.0/shared.bend as Shared
|
|
4
|
+
import bend-lint-api@0.3.2.0/linter/api/impl.bend as LintImpl
|
|
5
|
+
import bend-lint-api@0.3.2.0/linter/api/spec.bend as Lint
|
|
6
6
|
import ./directives/impl.bend as DirectivesImpl
|
|
7
7
|
import ./directives/spec.bend as Directives
|
|
8
8
|
import ./shared/files/impl.bend as FilesImpl
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Base
|
|
2
|
-
import bend-lint-api@0.3.
|
|
3
|
-
import bend-lint-api@0.3.
|
|
4
|
-
import bend-lint-api@0.3.
|
|
2
|
+
import bend-lint-api@0.3.2.0/shared.bend as Shared
|
|
3
|
+
import bend-lint-api@0.3.2.0/linter/api/impl.bend as LintImpl
|
|
4
|
+
import bend-lint-api@0.3.2.0/linter/api/spec.bend as Lint
|
|
5
5
|
import ../shared/text/impl.bend as TextImpl
|
|
6
6
|
import ../shared/text/spec.bend as Text
|
|
7
7
|
import ./spec.bend as Spec
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Directives: the `# bend-lint:` comments that disable or expect findings.
|
|
2
2
|
import Base
|
|
3
|
-
import bend-lint-api@0.3.
|
|
3
|
+
import bend-lint-api@0.3.2.0/linter/api/spec.bend as Lint
|
|
4
4
|
|
|
5
5
|
# A comment: where it is (code points), its line (from 0), whether code comes before it on its line, and its text
|
|
6
6
|
# after the #.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Base
|
|
2
|
-
import bend-lint-api@0.3.
|
|
3
|
-
import bend-lint-api@0.3.
|
|
4
|
-
import bend-lint-api@0.3.
|
|
2
|
+
import bend-lint-api@0.3.2.0/shared.bend as Shared
|
|
3
|
+
import bend-lint-api@0.3.2.0/linter/api/impl.bend as LintImpl
|
|
4
|
+
import bend-lint-api@0.3.2.0/linter/api/spec.bend as Lint
|
|
5
5
|
import ../files/impl.bend as FilesImpl
|
|
6
6
|
import ../files/spec.bend as Files
|
|
7
7
|
import ../text/impl.bend as TextImpl
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# The fixes a run makes with `--fix-dangerously`: no fix is proven to keep the program until Bend's checker is Bend.
|
|
2
2
|
import Base
|
|
3
|
-
import bend-lint-api@0.3.
|
|
3
|
+
import bend-lint-api@0.3.2.0/linter/api/spec.bend as Lint
|
|
4
4
|
import ../text/spec.bend as Text
|
|
5
5
|
|
|
6
6
|
# The text of each of `sources`, by its path, onto `out`.
|