@system-inc/cohere 0.1.0 → 0.2.515
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/SHA256SUMS +8 -8
- package/THIRD_PARTY_NOTICES.md +1249 -353
- package/package.json +7 -7
- package/schema/CohereSettings.schema.json +151 -15
- package/schema/NexusCohereSettings.schema.json +152 -18
package/package.json
CHANGED
|
@@ -17,16 +17,16 @@
|
|
|
17
17
|
"license": "MIT OR Apache-2.0",
|
|
18
18
|
"name": "@system-inc/cohere",
|
|
19
19
|
"optionalDependencies": {
|
|
20
|
-
"@system-inc/cohere-darwin-arm64": "0.
|
|
21
|
-
"@system-inc/cohere-darwin-x64": "0.
|
|
22
|
-
"@system-inc/cohere-linux-arm64": "0.
|
|
23
|
-
"@system-inc/cohere-linux-x64": "0.
|
|
24
|
-
"@system-inc/cohere-win32-arm64": "0.
|
|
25
|
-
"@system-inc/cohere-win32-x64": "0.
|
|
20
|
+
"@system-inc/cohere-darwin-arm64": "0.2.515",
|
|
21
|
+
"@system-inc/cohere-darwin-x64": "0.2.515",
|
|
22
|
+
"@system-inc/cohere-linux-arm64": "0.2.515",
|
|
23
|
+
"@system-inc/cohere-linux-x64": "0.2.515",
|
|
24
|
+
"@system-inc/cohere-win32-arm64": "0.2.515",
|
|
25
|
+
"@system-inc/cohere-win32-x64": "0.2.515"
|
|
26
26
|
},
|
|
27
27
|
"repository": {
|
|
28
28
|
"type": "git",
|
|
29
29
|
"url": "git+https://github.com/system-inc/cohere.git"
|
|
30
30
|
},
|
|
31
|
-
"version": "0.
|
|
31
|
+
"version": "0.2.515"
|
|
32
32
|
}
|
|
@@ -629,6 +629,9 @@
|
|
|
629
629
|
"nexus/concurrency-no-lost-update": {
|
|
630
630
|
"$ref": "#/$defs/ruleSetting"
|
|
631
631
|
},
|
|
632
|
+
"nexus/consistency-no-abbreviated-file-name": {
|
|
633
|
+
"$ref": "#/$defs/ruleSetting"
|
|
634
|
+
},
|
|
632
635
|
"nexus/consistency-no-abbreviated-identifier": {
|
|
633
636
|
"$ref": "#/$defs/ruleSetting"
|
|
634
637
|
},
|
|
@@ -650,6 +653,9 @@
|
|
|
650
653
|
"nexus/consistency-no-iso-string-date-cut": {
|
|
651
654
|
"$ref": "#/$defs/ruleSetting"
|
|
652
655
|
},
|
|
656
|
+
"nexus/consistency-no-label": {
|
|
657
|
+
"$ref": "#/$defs/ruleSetting"
|
|
658
|
+
},
|
|
653
659
|
"nexus/consistency-no-long-line-comment": {
|
|
654
660
|
"$ref": "#/$defs/ruleSetting"
|
|
655
661
|
},
|
|
@@ -674,15 +680,27 @@
|
|
|
674
680
|
"nexus/consistency-no-stuttering-name": {
|
|
675
681
|
"$ref": "#/$defs/ruleSetting"
|
|
676
682
|
},
|
|
683
|
+
"nexus/consistency-no-utils-file-name": {
|
|
684
|
+
"$ref": "#/$defs/ruleSetting"
|
|
685
|
+
},
|
|
677
686
|
"nexus/consistency-no-utils-folder": {
|
|
678
687
|
"$ref": "#/$defs/ruleSetting"
|
|
679
688
|
},
|
|
689
|
+
"nexus/consistency-no-warning-comment": {
|
|
690
|
+
"$ref": "#/$defs/ruleSetting"
|
|
691
|
+
},
|
|
680
692
|
"nexus/consistency-require-constant-casing": {
|
|
681
693
|
"$ref": "#/$defs/ruleSetting"
|
|
682
694
|
},
|
|
695
|
+
"nexus/consistency-require-identifier-casing": {
|
|
696
|
+
"$ref": "#/$defs/ruleSetting"
|
|
697
|
+
},
|
|
683
698
|
"nexus/consistency-require-matching-return-type": {
|
|
684
699
|
"$ref": "#/$defs/ruleSetting"
|
|
685
700
|
},
|
|
701
|
+
"nexus/consistency-require-separated-folder-words": {
|
|
702
|
+
"$ref": "#/$defs/ruleSetting"
|
|
703
|
+
},
|
|
686
704
|
"nexus/consistency-require-type-suffix": {
|
|
687
705
|
"$ref": "#/$defs/ruleSetting"
|
|
688
706
|
},
|
|
@@ -743,6 +761,9 @@
|
|
|
743
761
|
"nexus/correctness-require-child-process-error-listener": {
|
|
744
762
|
"$ref": "#/$defs/ruleSetting"
|
|
745
763
|
},
|
|
764
|
+
"nexus/correctness-require-drained-child-output": {
|
|
765
|
+
"$ref": "#/$defs/ruleSetting"
|
|
766
|
+
},
|
|
746
767
|
"nexus/correctness-require-response-status-check": {
|
|
747
768
|
"$ref": "#/$defs/ruleSetting"
|
|
748
769
|
},
|
|
@@ -1546,7 +1567,7 @@
|
|
|
1546
1567
|
},
|
|
1547
1568
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1548
1569
|
"additionalProperties": false,
|
|
1549
|
-
"description": "cohere's settings for one repository: what it checks, how strictly, how it formats, and which paths it never touches. With no file at all, cohere applies the house stack and the house format. Generated by internal/
|
|
1570
|
+
"description": "cohere's settings for one repository: what it checks, how strictly, how it formats, and which paths it never touches. With no file at all, cohere applies the house stack and the house format. Generated by internal/settings/schema; see schema/CohereSettings.md.",
|
|
1550
1571
|
"properties": {
|
|
1551
1572
|
"$schema": {
|
|
1552
1573
|
"description": "The schema an editor validates this file against. cohere does not read it.",
|
|
@@ -1607,10 +1628,7 @@
|
|
|
1607
1628
|
"properties": {
|
|
1608
1629
|
"arrowParens": {
|
|
1609
1630
|
"description": "Parenthesize a sole arrow-function parameter always, or avoid it where possible.",
|
|
1610
|
-
"enum": [
|
|
1611
|
-
"always",
|
|
1612
|
-
"avoid"
|
|
1613
|
-
],
|
|
1631
|
+
"enum": ["always", "avoid"],
|
|
1614
1632
|
"type": "string"
|
|
1615
1633
|
},
|
|
1616
1634
|
"bracketSameLine": {
|
|
@@ -1623,9 +1641,7 @@
|
|
|
1623
1641
|
},
|
|
1624
1642
|
"endOfLine": {
|
|
1625
1643
|
"description": "Line endings. Only lf is supported.",
|
|
1626
|
-
"enum": [
|
|
1627
|
-
"lf"
|
|
1628
|
-
],
|
|
1644
|
+
"enum": ["lf"],
|
|
1629
1645
|
"type": "string"
|
|
1630
1646
|
},
|
|
1631
1647
|
"ignore": {
|
|
@@ -1655,11 +1671,7 @@
|
|
|
1655
1671
|
},
|
|
1656
1672
|
"trailingComma": {
|
|
1657
1673
|
"description": "Where multi-line lists keep a trailing comma.",
|
|
1658
|
-
"enum": [
|
|
1659
|
-
"all",
|
|
1660
|
-
"es5",
|
|
1661
|
-
"none"
|
|
1662
|
-
],
|
|
1674
|
+
"enum": ["all", "es5", "none"],
|
|
1663
1675
|
"type": "string"
|
|
1664
1676
|
},
|
|
1665
1677
|
"useTabs": {
|
|
@@ -1669,10 +1681,100 @@
|
|
|
1669
1681
|
},
|
|
1670
1682
|
"type": "object"
|
|
1671
1683
|
},
|
|
1684
|
+
"go": {
|
|
1685
|
+
"additionalProperties": false,
|
|
1686
|
+
"description": "Which of cohere-go's rules run, and how strictly, read from the file beside go.work or go.mod, or the one --lint-config names. Its rules map each cohere-go/<rule> to a severity (error, warn, warning or off, exactly as written) or [severity, options] with one options object. Its departures state why a rule is loosened past the house: an option looser than the house's value, as a cohere-go/consistency-no-long-file max above 2,000, runs only beside a departure for its rule with a reason, and a departure for a rule whose options loosen nothing is refused. Its reasons say why each rule it turns off is off, in a sentence: required when a module the root governs is ours, its path under github.com/system-inc/, and optional outside, and coverage prints each beside its rule. Its targets add platforms, each GOOS/GOARCH, to the ones the files name and the host's, so a file whose constraint only rules platforms out is checked under one, and a pair the toolchain does not target is refused. With no go block, every Go rule runs at error and every run says so. A rule name the language does not know, any key besides rules, departures, reasons and targets, and a format key are refused: gofmt is the house format for Go and is not configured. The TypeScript linter leaves this block alone.",
|
|
1687
|
+
"properties": {
|
|
1688
|
+
"departures": {
|
|
1689
|
+
"additionalProperties": {
|
|
1690
|
+
"pattern": "[^\\t-\\r \\u0085\\u00a0\\u1680\\u2000-\\u200a\\u2028\\u2029\\u202f\\u205f\\u3000]",
|
|
1691
|
+
"type": "string"
|
|
1692
|
+
},
|
|
1693
|
+
"description": "For each cohere-go/<rule> whose options loosen it past the house's value, why, in a sentence. The language refuses a loosening option with no departure, and a departure for a rule whose options loosen nothing.",
|
|
1694
|
+
"type": "object"
|
|
1695
|
+
},
|
|
1696
|
+
"reasons": {
|
|
1697
|
+
"additionalProperties": {
|
|
1698
|
+
"pattern": "[^\\t-\\r \\u0085\\u00a0\\u1680\\u2000-\\u200a\\u2028\\u2029\\u202f\\u205f\\u3000]",
|
|
1699
|
+
"type": "string"
|
|
1700
|
+
},
|
|
1701
|
+
"description": "For each cohere-go/<rule> this block turns off, why, in a sentence. Required in a module of ours, whose path is under github.com/system-inc/, and optional outside it. Coverage prints the reason beside the rule. An entry for a rule the block does not turn off is refused.",
|
|
1702
|
+
"type": "object"
|
|
1703
|
+
},
|
|
1704
|
+
"rules": {
|
|
1705
|
+
"additionalProperties": {
|
|
1706
|
+
"description": "A severity, or [severity, options] with one options object.",
|
|
1707
|
+
"oneOf": [
|
|
1708
|
+
{
|
|
1709
|
+
"enum": ["error", "warn", "warning", "off"],
|
|
1710
|
+
"type": "string"
|
|
1711
|
+
},
|
|
1712
|
+
{
|
|
1713
|
+
"maxItems": 2,
|
|
1714
|
+
"minItems": 1,
|
|
1715
|
+
"prefixItems": [
|
|
1716
|
+
{
|
|
1717
|
+
"enum": ["error", "warn", "warning", "off"],
|
|
1718
|
+
"type": "string"
|
|
1719
|
+
},
|
|
1720
|
+
{
|
|
1721
|
+
"type": "object"
|
|
1722
|
+
}
|
|
1723
|
+
],
|
|
1724
|
+
"type": "array"
|
|
1725
|
+
}
|
|
1726
|
+
]
|
|
1727
|
+
},
|
|
1728
|
+
"description": "Each cohere-go/<rule> cohere-go runs, and its severity.",
|
|
1729
|
+
"type": "object"
|
|
1730
|
+
},
|
|
1731
|
+
"targets": {
|
|
1732
|
+
"description": "Platforms, each GOOS/GOARCH as go tool dist list spells it, checked beside the ones the project's files name in their build constraints and suffixes and the host's. They only add: a file whose constraint only rules platforms out, as !linux && !darwin, is checked under a target that compiles it, and with none it is named as a gap. A pair the toolchain does not target is refused at load.",
|
|
1733
|
+
"items": {
|
|
1734
|
+
"pattern": "^[a-z0-9]+/[a-z0-9]+$",
|
|
1735
|
+
"type": "string"
|
|
1736
|
+
},
|
|
1737
|
+
"type": "array"
|
|
1738
|
+
}
|
|
1739
|
+
},
|
|
1740
|
+
"required": ["rules"],
|
|
1741
|
+
"type": "object"
|
|
1742
|
+
},
|
|
1672
1743
|
"ignorePatterns": {
|
|
1673
|
-
"description": "Paths cohere never checks and the formatter never offers, one list for both, as globs relative to the directory of the settings file cohere reads first: * within a path segment, ** across any number of segments, ? one character, {a,b} alternation. A file's patterns follow those of the file it extends.",
|
|
1744
|
+
"description": "Paths cohere never checks and the formatter never offers, one list for both, as globs relative to the directory of the settings file cohere reads first: * within a path segment, ** across any number of segments, ? one character, {a,b} alternation. A file's patterns follow those of the file it extends. An entry is a glob, or an object naming the glob and why: in a chain extending a cohere:system-inc set, and in every set cohere carries, each entry gives a reason, as an off does. --verbose lists every entry with its reason, kind, file and how many paths it matched, and --json carries the same. An entry a settings file writes that matches nothing fails the run, as an unused disable directive does, so delete it, unless its kind is generated: build output may not exist yet.",
|
|
1674
1745
|
"items": {
|
|
1675
|
-
"
|
|
1746
|
+
"oneOf": [
|
|
1747
|
+
{
|
|
1748
|
+
"type": "string"
|
|
1749
|
+
},
|
|
1750
|
+
{
|
|
1751
|
+
"additionalProperties": false,
|
|
1752
|
+
"properties": {
|
|
1753
|
+
"check": {
|
|
1754
|
+
"description": "A check that still reads the ignored paths: types, the type check, whose errors in them are still reported while they are never linted or formatted. Without it an ignored path is never checked at all, and where both kinds of entry match a path, the one naming types keeps it.",
|
|
1755
|
+
"enum": ["types"],
|
|
1756
|
+
"type": "string"
|
|
1757
|
+
},
|
|
1758
|
+
"kind": {
|
|
1759
|
+
"description": "What the paths are: input, data a program reads as it was given; generated, written by a tool; thirdParty, somebody else's code.",
|
|
1760
|
+
"enum": ["input", "generated", "thirdParty"],
|
|
1761
|
+
"type": "string"
|
|
1762
|
+
},
|
|
1763
|
+
"pattern": {
|
|
1764
|
+
"description": "The paths the entry ignores, as a glob.",
|
|
1765
|
+
"minLength": 1,
|
|
1766
|
+
"type": "string"
|
|
1767
|
+
},
|
|
1768
|
+
"reason": {
|
|
1769
|
+
"description": "Why these paths are never checked, in a sentence. Required in our tiers and in cohere's sets.",
|
|
1770
|
+
"pattern": "[^\\t-\\r \\u0085\\u00a0\\u1680\\u2000-\\u200a\\u2028\\u2029\\u202f\\u205f\\u3000]",
|
|
1771
|
+
"type": "string"
|
|
1772
|
+
}
|
|
1773
|
+
},
|
|
1774
|
+
"required": ["pattern"],
|
|
1775
|
+
"type": "object"
|
|
1776
|
+
}
|
|
1777
|
+
]
|
|
1676
1778
|
},
|
|
1677
1779
|
"type": "array"
|
|
1678
1780
|
},
|
|
@@ -1732,6 +1834,40 @@
|
|
|
1732
1834
|
}
|
|
1733
1835
|
},
|
|
1734
1836
|
"type": "object"
|
|
1837
|
+
},
|
|
1838
|
+
"swift": {
|
|
1839
|
+
"additionalProperties": false,
|
|
1840
|
+
"description": "cohere-swift's rules, read by cohere-swift itself: under rules, each Swift rule's severity, error, warning or off, or an array of one and, for a rule that reads options, an object of them, which may only make the rule stricter: cohere-swift/file-length reads max, at or below the house's 2,000 lines. An option a rule does not read is refused by name. A house rule the block does not name runs at error. The language reads the block from the settings file beside a Swift project's root (its Package.swift, project.yml or .xcodeproj), or the file --lint-config names, and never follows extends, so a block in a file another extends, or beside no Swift project, is refused by name. Formatting is not configured here: Swift has one house format, and a format key in this block is refused.",
|
|
1841
|
+
"properties": {
|
|
1842
|
+
"rules": {
|
|
1843
|
+
"additionalProperties": {
|
|
1844
|
+
"oneOf": [
|
|
1845
|
+
{
|
|
1846
|
+
"enum": ["error", "warning", "off"],
|
|
1847
|
+
"type": "string"
|
|
1848
|
+
},
|
|
1849
|
+
{
|
|
1850
|
+
"maxItems": 2,
|
|
1851
|
+
"minItems": 1,
|
|
1852
|
+
"prefixItems": [
|
|
1853
|
+
{
|
|
1854
|
+
"enum": ["error", "warning", "off"],
|
|
1855
|
+
"type": "string"
|
|
1856
|
+
},
|
|
1857
|
+
{
|
|
1858
|
+
"type": "object"
|
|
1859
|
+
}
|
|
1860
|
+
],
|
|
1861
|
+
"type": "array"
|
|
1862
|
+
}
|
|
1863
|
+
]
|
|
1864
|
+
},
|
|
1865
|
+
"description": "Each Swift rule's severity, or an array of its severity and, for a rule that reads options, an object of them.",
|
|
1866
|
+
"type": "object"
|
|
1867
|
+
}
|
|
1868
|
+
},
|
|
1869
|
+
"required": ["rules"],
|
|
1870
|
+
"type": "object"
|
|
1735
1871
|
}
|
|
1736
1872
|
},
|
|
1737
1873
|
"title": "CohereSettings.json",
|
|
@@ -629,6 +629,9 @@
|
|
|
629
629
|
"nexus/concurrency-no-lost-update": {
|
|
630
630
|
"$ref": "#/$defs/ruleSetting"
|
|
631
631
|
},
|
|
632
|
+
"nexus/consistency-no-abbreviated-file-name": {
|
|
633
|
+
"$ref": "#/$defs/ruleSetting"
|
|
634
|
+
},
|
|
632
635
|
"nexus/consistency-no-abbreviated-identifier": {
|
|
633
636
|
"$ref": "#/$defs/ruleSetting"
|
|
634
637
|
},
|
|
@@ -650,6 +653,9 @@
|
|
|
650
653
|
"nexus/consistency-no-iso-string-date-cut": {
|
|
651
654
|
"$ref": "#/$defs/ruleSetting"
|
|
652
655
|
},
|
|
656
|
+
"nexus/consistency-no-label": {
|
|
657
|
+
"$ref": "#/$defs/ruleSetting"
|
|
658
|
+
},
|
|
653
659
|
"nexus/consistency-no-long-line-comment": {
|
|
654
660
|
"$ref": "#/$defs/ruleSetting"
|
|
655
661
|
},
|
|
@@ -674,15 +680,27 @@
|
|
|
674
680
|
"nexus/consistency-no-stuttering-name": {
|
|
675
681
|
"$ref": "#/$defs/ruleSetting"
|
|
676
682
|
},
|
|
683
|
+
"nexus/consistency-no-utils-file-name": {
|
|
684
|
+
"$ref": "#/$defs/ruleSetting"
|
|
685
|
+
},
|
|
677
686
|
"nexus/consistency-no-utils-folder": {
|
|
678
687
|
"$ref": "#/$defs/ruleSetting"
|
|
679
688
|
},
|
|
689
|
+
"nexus/consistency-no-warning-comment": {
|
|
690
|
+
"$ref": "#/$defs/ruleSetting"
|
|
691
|
+
},
|
|
680
692
|
"nexus/consistency-require-constant-casing": {
|
|
681
693
|
"$ref": "#/$defs/ruleSetting"
|
|
682
694
|
},
|
|
695
|
+
"nexus/consistency-require-identifier-casing": {
|
|
696
|
+
"$ref": "#/$defs/ruleSetting"
|
|
697
|
+
},
|
|
683
698
|
"nexus/consistency-require-matching-return-type": {
|
|
684
699
|
"$ref": "#/$defs/ruleSetting"
|
|
685
700
|
},
|
|
701
|
+
"nexus/consistency-require-separated-folder-words": {
|
|
702
|
+
"$ref": "#/$defs/ruleSetting"
|
|
703
|
+
},
|
|
686
704
|
"nexus/consistency-require-type-suffix": {
|
|
687
705
|
"$ref": "#/$defs/ruleSetting"
|
|
688
706
|
},
|
|
@@ -743,6 +761,9 @@
|
|
|
743
761
|
"nexus/correctness-require-child-process-error-listener": {
|
|
744
762
|
"$ref": "#/$defs/ruleSetting"
|
|
745
763
|
},
|
|
764
|
+
"nexus/correctness-require-drained-child-output": {
|
|
765
|
+
"$ref": "#/$defs/ruleSetting"
|
|
766
|
+
},
|
|
746
767
|
"nexus/correctness-require-response-status-check": {
|
|
747
768
|
"$ref": "#/$defs/ruleSetting"
|
|
748
769
|
},
|
|
@@ -1546,7 +1567,7 @@
|
|
|
1546
1567
|
},
|
|
1547
1568
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1548
1569
|
"additionalProperties": false,
|
|
1549
|
-
"description": "The Nexus tier our repositories' settings reach. In a chain extending a cohere:system-inc set it is the one file that holds the format block, so every one of our repositories formats the same way. Generated by internal/
|
|
1570
|
+
"description": "The Nexus tier our repositories' settings reach. In a chain extending a cohere:system-inc set it is the one file that holds the format block, so every one of our repositories formats the same way. Generated by internal/settings/schema; see schema/CohereSettings.md.",
|
|
1550
1571
|
"properties": {
|
|
1551
1572
|
"$schema": {
|
|
1552
1573
|
"description": "The schema an editor validates this file against. cohere does not read it.",
|
|
@@ -1607,10 +1628,7 @@
|
|
|
1607
1628
|
"properties": {
|
|
1608
1629
|
"arrowParens": {
|
|
1609
1630
|
"description": "Parenthesize a sole arrow-function parameter always, or avoid it where possible.",
|
|
1610
|
-
"enum": [
|
|
1611
|
-
"always",
|
|
1612
|
-
"avoid"
|
|
1613
|
-
],
|
|
1631
|
+
"enum": ["always", "avoid"],
|
|
1614
1632
|
"type": "string"
|
|
1615
1633
|
},
|
|
1616
1634
|
"bracketSameLine": {
|
|
@@ -1623,9 +1641,7 @@
|
|
|
1623
1641
|
},
|
|
1624
1642
|
"endOfLine": {
|
|
1625
1643
|
"description": "Line endings. Only lf is supported.",
|
|
1626
|
-
"enum": [
|
|
1627
|
-
"lf"
|
|
1628
|
-
],
|
|
1644
|
+
"enum": ["lf"],
|
|
1629
1645
|
"type": "string"
|
|
1630
1646
|
},
|
|
1631
1647
|
"ignore": {
|
|
@@ -1655,11 +1671,7 @@
|
|
|
1655
1671
|
},
|
|
1656
1672
|
"trailingComma": {
|
|
1657
1673
|
"description": "Where multi-line lists keep a trailing comma.",
|
|
1658
|
-
"enum": [
|
|
1659
|
-
"all",
|
|
1660
|
-
"es5",
|
|
1661
|
-
"none"
|
|
1662
|
-
],
|
|
1674
|
+
"enum": ["all", "es5", "none"],
|
|
1663
1675
|
"type": "string"
|
|
1664
1676
|
},
|
|
1665
1677
|
"useTabs": {
|
|
@@ -1669,10 +1681,100 @@
|
|
|
1669
1681
|
},
|
|
1670
1682
|
"type": "object"
|
|
1671
1683
|
},
|
|
1684
|
+
"go": {
|
|
1685
|
+
"additionalProperties": false,
|
|
1686
|
+
"description": "Which of cohere-go's rules run, and how strictly, read from the file beside go.work or go.mod, or the one --lint-config names. Its rules map each cohere-go/<rule> to a severity (error, warn, warning or off, exactly as written) or [severity, options] with one options object. Its departures state why a rule is loosened past the house: an option looser than the house's value, as a cohere-go/consistency-no-long-file max above 2,000, runs only beside a departure for its rule with a reason, and a departure for a rule whose options loosen nothing is refused. Its reasons say why each rule it turns off is off, in a sentence: required when a module the root governs is ours, its path under github.com/system-inc/, and optional outside, and coverage prints each beside its rule. Its targets add platforms, each GOOS/GOARCH, to the ones the files name and the host's, so a file whose constraint only rules platforms out is checked under one, and a pair the toolchain does not target is refused. With no go block, every Go rule runs at error and every run says so. A rule name the language does not know, any key besides rules, departures, reasons and targets, and a format key are refused: gofmt is the house format for Go and is not configured. The TypeScript linter leaves this block alone.",
|
|
1687
|
+
"properties": {
|
|
1688
|
+
"departures": {
|
|
1689
|
+
"additionalProperties": {
|
|
1690
|
+
"pattern": "[^\\t-\\r \\u0085\\u00a0\\u1680\\u2000-\\u200a\\u2028\\u2029\\u202f\\u205f\\u3000]",
|
|
1691
|
+
"type": "string"
|
|
1692
|
+
},
|
|
1693
|
+
"description": "For each cohere-go/<rule> whose options loosen it past the house's value, why, in a sentence. The language refuses a loosening option with no departure, and a departure for a rule whose options loosen nothing.",
|
|
1694
|
+
"type": "object"
|
|
1695
|
+
},
|
|
1696
|
+
"reasons": {
|
|
1697
|
+
"additionalProperties": {
|
|
1698
|
+
"pattern": "[^\\t-\\r \\u0085\\u00a0\\u1680\\u2000-\\u200a\\u2028\\u2029\\u202f\\u205f\\u3000]",
|
|
1699
|
+
"type": "string"
|
|
1700
|
+
},
|
|
1701
|
+
"description": "For each cohere-go/<rule> this block turns off, why, in a sentence. Required in a module of ours, whose path is under github.com/system-inc/, and optional outside it. Coverage prints the reason beside the rule. An entry for a rule the block does not turn off is refused.",
|
|
1702
|
+
"type": "object"
|
|
1703
|
+
},
|
|
1704
|
+
"rules": {
|
|
1705
|
+
"additionalProperties": {
|
|
1706
|
+
"description": "A severity, or [severity, options] with one options object.",
|
|
1707
|
+
"oneOf": [
|
|
1708
|
+
{
|
|
1709
|
+
"enum": ["error", "warn", "warning", "off"],
|
|
1710
|
+
"type": "string"
|
|
1711
|
+
},
|
|
1712
|
+
{
|
|
1713
|
+
"maxItems": 2,
|
|
1714
|
+
"minItems": 1,
|
|
1715
|
+
"prefixItems": [
|
|
1716
|
+
{
|
|
1717
|
+
"enum": ["error", "warn", "warning", "off"],
|
|
1718
|
+
"type": "string"
|
|
1719
|
+
},
|
|
1720
|
+
{
|
|
1721
|
+
"type": "object"
|
|
1722
|
+
}
|
|
1723
|
+
],
|
|
1724
|
+
"type": "array"
|
|
1725
|
+
}
|
|
1726
|
+
]
|
|
1727
|
+
},
|
|
1728
|
+
"description": "Each cohere-go/<rule> cohere-go runs, and its severity.",
|
|
1729
|
+
"type": "object"
|
|
1730
|
+
},
|
|
1731
|
+
"targets": {
|
|
1732
|
+
"description": "Platforms, each GOOS/GOARCH as go tool dist list spells it, checked beside the ones the project's files name in their build constraints and suffixes and the host's. They only add: a file whose constraint only rules platforms out, as !linux && !darwin, is checked under a target that compiles it, and with none it is named as a gap. A pair the toolchain does not target is refused at load.",
|
|
1733
|
+
"items": {
|
|
1734
|
+
"pattern": "^[a-z0-9]+/[a-z0-9]+$",
|
|
1735
|
+
"type": "string"
|
|
1736
|
+
},
|
|
1737
|
+
"type": "array"
|
|
1738
|
+
}
|
|
1739
|
+
},
|
|
1740
|
+
"required": ["rules"],
|
|
1741
|
+
"type": "object"
|
|
1742
|
+
},
|
|
1672
1743
|
"ignorePatterns": {
|
|
1673
|
-
"description": "Paths cohere never checks and the formatter never offers, one list for both, as globs relative to the directory of the settings file cohere reads first: * within a path segment, ** across any number of segments, ? one character, {a,b} alternation. A file's patterns follow those of the file it extends.",
|
|
1744
|
+
"description": "Paths cohere never checks and the formatter never offers, one list for both, as globs relative to the directory of the settings file cohere reads first: * within a path segment, ** across any number of segments, ? one character, {a,b} alternation. A file's patterns follow those of the file it extends. An entry is a glob, or an object naming the glob and why: in a chain extending a cohere:system-inc set, and in every set cohere carries, each entry gives a reason, as an off does. --verbose lists every entry with its reason, kind, file and how many paths it matched, and --json carries the same. An entry a settings file writes that matches nothing fails the run, as an unused disable directive does, so delete it, unless its kind is generated: build output may not exist yet.",
|
|
1674
1745
|
"items": {
|
|
1675
|
-
"
|
|
1746
|
+
"oneOf": [
|
|
1747
|
+
{
|
|
1748
|
+
"type": "string"
|
|
1749
|
+
},
|
|
1750
|
+
{
|
|
1751
|
+
"additionalProperties": false,
|
|
1752
|
+
"properties": {
|
|
1753
|
+
"check": {
|
|
1754
|
+
"description": "A check that still reads the ignored paths: types, the type check, whose errors in them are still reported while they are never linted or formatted. Without it an ignored path is never checked at all, and where both kinds of entry match a path, the one naming types keeps it.",
|
|
1755
|
+
"enum": ["types"],
|
|
1756
|
+
"type": "string"
|
|
1757
|
+
},
|
|
1758
|
+
"kind": {
|
|
1759
|
+
"description": "What the paths are: input, data a program reads as it was given; generated, written by a tool; thirdParty, somebody else's code.",
|
|
1760
|
+
"enum": ["input", "generated", "thirdParty"],
|
|
1761
|
+
"type": "string"
|
|
1762
|
+
},
|
|
1763
|
+
"pattern": {
|
|
1764
|
+
"description": "The paths the entry ignores, as a glob.",
|
|
1765
|
+
"minLength": 1,
|
|
1766
|
+
"type": "string"
|
|
1767
|
+
},
|
|
1768
|
+
"reason": {
|
|
1769
|
+
"description": "Why these paths are never checked, in a sentence. Required in our tiers and in cohere's sets.",
|
|
1770
|
+
"pattern": "[^\\t-\\r \\u0085\\u00a0\\u1680\\u2000-\\u200a\\u2028\\u2029\\u202f\\u205f\\u3000]",
|
|
1771
|
+
"type": "string"
|
|
1772
|
+
}
|
|
1773
|
+
},
|
|
1774
|
+
"required": ["pattern"],
|
|
1775
|
+
"type": "object"
|
|
1776
|
+
}
|
|
1777
|
+
]
|
|
1676
1778
|
},
|
|
1677
1779
|
"type": "array"
|
|
1678
1780
|
},
|
|
@@ -1732,11 +1834,43 @@
|
|
|
1732
1834
|
}
|
|
1733
1835
|
},
|
|
1734
1836
|
"type": "object"
|
|
1837
|
+
},
|
|
1838
|
+
"swift": {
|
|
1839
|
+
"additionalProperties": false,
|
|
1840
|
+
"description": "cohere-swift's rules, read by cohere-swift itself: under rules, each Swift rule's severity, error, warning or off, or an array of one and, for a rule that reads options, an object of them, which may only make the rule stricter: cohere-swift/file-length reads max, at or below the house's 2,000 lines. An option a rule does not read is refused by name. A house rule the block does not name runs at error. The language reads the block from the settings file beside a Swift project's root (its Package.swift, project.yml or .xcodeproj), or the file --lint-config names, and never follows extends, so a block in a file another extends, or beside no Swift project, is refused by name. Formatting is not configured here: Swift has one house format, and a format key in this block is refused.",
|
|
1841
|
+
"properties": {
|
|
1842
|
+
"rules": {
|
|
1843
|
+
"additionalProperties": {
|
|
1844
|
+
"oneOf": [
|
|
1845
|
+
{
|
|
1846
|
+
"enum": ["error", "warning", "off"],
|
|
1847
|
+
"type": "string"
|
|
1848
|
+
},
|
|
1849
|
+
{
|
|
1850
|
+
"maxItems": 2,
|
|
1851
|
+
"minItems": 1,
|
|
1852
|
+
"prefixItems": [
|
|
1853
|
+
{
|
|
1854
|
+
"enum": ["error", "warning", "off"],
|
|
1855
|
+
"type": "string"
|
|
1856
|
+
},
|
|
1857
|
+
{
|
|
1858
|
+
"type": "object"
|
|
1859
|
+
}
|
|
1860
|
+
],
|
|
1861
|
+
"type": "array"
|
|
1862
|
+
}
|
|
1863
|
+
]
|
|
1864
|
+
},
|
|
1865
|
+
"description": "Each Swift rule's severity, or an array of its severity and, for a rule that reads options, an object of them.",
|
|
1866
|
+
"type": "object"
|
|
1867
|
+
}
|
|
1868
|
+
},
|
|
1869
|
+
"required": ["rules"],
|
|
1870
|
+
"type": "object"
|
|
1735
1871
|
}
|
|
1736
1872
|
},
|
|
1737
|
-
"required": [
|
|
1738
|
-
"format"
|
|
1739
|
-
],
|
|
1873
|
+
"required": ["format"],
|
|
1740
1874
|
"title": "NexusCohereSettings.json",
|
|
1741
1875
|
"type": "object"
|
|
1742
1876
|
}
|