bend-lint 0.2.1 → 0.2.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 +1 -1
- package/package.json +2 -2
- package/src/files/main.bend +2 -2
- package/src/json/main.bend +2 -2
- package/src/linter/cli.bend +4 -4
- package/src/linter/directives.bend +4 -4
- package/src/linter/fixes.bend +5 -5
- package/src/text/main.bend +3 -3
package/README.md
CHANGED
|
@@ -128,7 +128,7 @@ A rule is a file in `bend-lint-rules/`. It imports bend-lint's rule API from Ben
|
|
|
128
128
|
|
|
129
129
|
```
|
|
130
130
|
import Base
|
|
131
|
-
import bend-lint-api@0.2.
|
|
131
|
+
import bend-lint-api@0.2.2.0/linter/lint.bend as Lint
|
|
132
132
|
|
|
133
133
|
def rule() -> Lint.Rule:
|
|
134
134
|
...
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bend-lint",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.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": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"bun": "1.4.4"
|
|
16
16
|
},
|
|
17
17
|
"bendRelease": "bendlang/bend/v2.0.39",
|
|
18
|
-
"bendWindows": "MattCozendey/bend/
|
|
18
|
+
"bendWindows": "MattCozendey/bend/61750a3ae7d8a9acdd80ef40254cc30649d9d2ac",
|
|
19
19
|
"scripts": {
|
|
20
20
|
"postinstall": "bun ./src/linter/seam.ts postinstall"
|
|
21
21
|
}
|
package/src/files/main.bend
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Base
|
|
2
|
-
import bend-lint-api@0.2.
|
|
3
|
-
import bend-lint-api@0.2.
|
|
2
|
+
import bend-lint-api@0.2.2.0/shared/lists.bend as Lists
|
|
3
|
+
import bend-lint-api@0.2.2.0/shared/strings.bend as Strings
|
|
4
4
|
|
|
5
5
|
# Types
|
|
6
6
|
# =====
|
package/src/json/main.bend
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Base
|
|
2
|
-
import bend-lint-api@0.2.
|
|
3
|
-
import bend-lint-api@0.2.
|
|
2
|
+
import bend-lint-api@0.2.2.0/shared/names.bend as Names
|
|
3
|
+
import bend-lint-api@0.2.2.0/shared/strings.bend as Strings
|
|
4
4
|
|
|
5
5
|
# Types
|
|
6
6
|
# =====
|
package/src/linter/cli.bend
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import Base
|
|
3
3
|
import ../files/main.bend as Files
|
|
4
4
|
import ../json/main.bend as Json
|
|
5
|
-
import bend-lint-api@0.2.
|
|
6
|
-
import bend-lint-api@0.2.
|
|
7
|
-
import bend-lint-api@0.2.
|
|
5
|
+
import bend-lint-api@0.2.2.0/shared/lists.bend as Lists
|
|
6
|
+
import bend-lint-api@0.2.2.0/shared/names.bend as Names
|
|
7
|
+
import bend-lint-api@0.2.2.0/shared/sets.bend as Sets
|
|
8
8
|
import ../text/main.bend as Text
|
|
9
9
|
import ./directives.bend as Directives
|
|
10
10
|
import ./fixes.bend as Fixes
|
|
11
|
-
import bend-lint-api@0.2.
|
|
11
|
+
import bend-lint-api@0.2.2.0/linter/lint.bend as Lint
|
|
12
12
|
|
|
13
13
|
# Errors
|
|
14
14
|
# ======
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import Base
|
|
2
|
-
import bend-lint-api@0.2.
|
|
3
|
-
import bend-lint-api@0.2.
|
|
4
|
-
import bend-lint-api@0.2.
|
|
2
|
+
import bend-lint-api@0.2.2.0/shared/lists.bend as Lists
|
|
3
|
+
import bend-lint-api@0.2.2.0/shared/names.bend as Names
|
|
4
|
+
import bend-lint-api@0.2.2.0/shared/strings.bend as Strings
|
|
5
5
|
import ../text/main.bend as Text
|
|
6
|
-
import bend-lint-api@0.2.
|
|
6
|
+
import bend-lint-api@0.2.2.0/linter/lint.bend as Lint
|
|
7
7
|
|
|
8
8
|
# Scanning
|
|
9
9
|
# ========
|
package/src/linter/fixes.bend
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
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
3
|
import ../files/main.bend as Files
|
|
4
|
-
import bend-lint-api@0.2.
|
|
5
|
-
import bend-lint-api@0.2.
|
|
6
|
-
import bend-lint-api@0.2.
|
|
7
|
-
import bend-lint-api@0.2.
|
|
4
|
+
import bend-lint-api@0.2.2.0/shared/lists.bend as Lists
|
|
5
|
+
import bend-lint-api@0.2.2.0/shared/names.bend as Names
|
|
6
|
+
import bend-lint-api@0.2.2.0/shared/sets.bend as Sets
|
|
7
|
+
import bend-lint-api@0.2.2.0/shared/strings.bend as Strings
|
|
8
8
|
import ../text/main.bend as Text
|
|
9
|
-
import bend-lint-api@0.2.
|
|
9
|
+
import bend-lint-api@0.2.2.0/linter/lint.bend as Lint
|
|
10
10
|
|
|
11
11
|
# Types
|
|
12
12
|
# =====
|
package/src/text/main.bend
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# Edits to texts, and places in them: the edits to make, spans that must not touch, and the lines and columns of
|
|
2
2
|
# offsets.
|
|
3
3
|
import Base
|
|
4
|
-
import bend-lint-api@0.2.
|
|
5
|
-
import bend-lint-api@0.2.
|
|
6
|
-
import bend-lint-api@0.2.
|
|
4
|
+
import bend-lint-api@0.2.2.0/shared/lists.bend as Lists
|
|
5
|
+
import bend-lint-api@0.2.2.0/shared/names.bend as Names
|
|
6
|
+
import bend-lint-api@0.2.2.0/shared/strings.bend as Strings
|
|
7
7
|
|
|
8
8
|
# Edits
|
|
9
9
|
# =====
|