Skip to content

Commit 2b300a2

Browse files
committed
feat: first version
0 parents  commit 2b300a2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+31107
-0
lines changed

.eslintrc.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"env": {
3+
"browser": false,
4+
"commonjs": true,
5+
"es6": true,
6+
"node": true,
7+
"mocha": true
8+
},
9+
"parserOptions": {
10+
"ecmaVersion": 2018,
11+
"ecmaFeatures": {
12+
"jsx": true
13+
},
14+
"sourceType": "module"
15+
},
16+
"rules": {
17+
"no-const-assign": "warn",
18+
"no-this-before-super": "warn",
19+
"no-undef": "warn",
20+
"no-unreachable": "warn",
21+
"no-unused-vars": "warn",
22+
"constructor-super": "warn",
23+
"valid-typeof": "warn"
24+
}
25+
}

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
.vscode-test/
3+
*.vsix
4+
__pycache__

.vscode/extensions.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the extensions.json format
4+
"recommendations": ["dbaeumer.vscode-eslint"]
5+
}

.vscode/launch.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// A launch configuration that launches the extension inside a new window
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
{
6+
"version": "0.2.0",
7+
"configurations": [
8+
{
9+
"name": "Run Extension",
10+
"type": "extensionHost",
11+
"request": "launch",
12+
"runtimeExecutable": "${execPath}",
13+
"args": ["--extensionDevelopmentPath=${workspaceFolder}"]
14+
},
15+
{
16+
"name": "Extension Tests",
17+
"type": "extensionHost",
18+
"request": "launch",
19+
"runtimeExecutable": "${execPath}",
20+
"args": [
21+
"--extensionDevelopmentPath=${workspaceFolder}",
22+
"--extensionTestsPath=${workspaceFolder}/test/suite/index"
23+
]
24+
}
25+
]
26+
}

.vscodeignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.vscode/**
2+
.vscode-test/**
3+
test/**
4+
.gitignore
5+
vsc-extension-quickstart.md
6+
**/jsconfig.json
7+
**/*.map
8+
**/.eslintrc.json

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Change Log
2+
3+
All notable changes to the "grammalecte" extension will be documented in this file.
4+
5+
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
6+
7+
## [Unreleased]
8+
9+
- Initial release

LICENSE.md

Lines changed: 675 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# vscode-grammalecte
2+
3+
[![License: GPL-3.0](https://img.shields.io/github/license/GreatWizard/vscode-grammalecte)](https://github.com/GreatWizard/vscode-grammalecte/blob/master/LICENSE.md)
4+
[![Liberapay](http://img.shields.io/liberapay/patrons/GreatWizard.svg?logo=liberapay)](https://liberapay.com/GreatWizard/)
5+
6+
[![Support Grammalecte](https://img.shields.io/badge/support-grammalecte-blue)](https://grammalecte.net/#support)
7+
8+
VSCode extension for [Grammalecte](https://grammalecte.net/).
9+
10+
[Grammalecte](https://grammalecte.net/) is an open source grammar and typographic corrector dedicated to the French language.
11+
12+
## Prerequisites
13+
14+
You need to have on your computer:
15+
16+
- Python3: https://www.python.org/downloads/

demo/input-file/input.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Quoi ? Racontes ! Racontes-moi ! Bon sangg, parles ! Oui. Il y a des menteur partout.
2+
Je suit sidéré par la brutales arrogance de cette homme-là. Quelle salopard ! Un escrocs de la pire espece.
3+
Quant sera t’il châtiés pour ses mensonge ? Merde ! J’en aie marre.

demo/input-file/output.txt

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
Quoi ? Racontes ! Racontes-moi ! Bon sangg, parles ! Oui. Il y a des menteur partout.
2+
^^ ^^^^^^^^ ^^^^^^^^^^^^ °°°°° ^^^^^^ ^^^^^^^
3+
* 1 [4:6] # #1047p / nbsp_avant_double_ponctuation:
4+
Il manque un espace insécable.
5+
> Suggestions :  ?
6+
* 2 [7:15] # #22492 / imp_verbe_groupe1__b2_a0_0:
7+
S’il s’agit d’un impératif, pas de “s”.
8+
> Suggestions : Raconte
9+
* 3 [18:30] # #2411 / imp_verbes_composés_impératifs__b5_a0_0:
10+
Ceci n’est pas une forme impérative correcte.
11+
> Suggestions : Raconte-moi | Racontez-moi | Racontons-moi
12+
> URL: http://fr.wikipedia.org/wiki/Imp%C3%A9ratif_%28grammaire%29
13+
* 5 [44:50] # #5890 / conj_xxxas_xxxes__sans_sujet__b4_a0_0:
14+
Incohérence. Ceci est un verbe à la 2ᵉ personne du singulier. Sujet (“tu” ou “toi qui”)
15+
introuvable.
16+
> Suggestions : parle
17+
* 6 [69:76] # #15600 / gn_det_pluriel_1m__b1_a0_0:
18+
Accord de nombre erroné : « menteur » devrait être au pluriel.
19+
> Suggestions : menteurs
20+
21+
Je suit sidéré par la brutales arrogance de cette homme-là. Quelle salopard ! Un escrocs de la pire
22+
^^^^ ^^^^^^^^ ^^^^^ ^^^^^^ ^^^^^^^
23+
* 1 [3:7] # #5382 / conj_je__b2_a0_0:
24+
Conjugaison erronée. Accord avec “Je”. Le verbe devrait être à la 1ʳᵉ personne du singulier.
25+
> Suggestions : suis
26+
* 2 [22:30] # #15039 / gn_la_1m__b2_a3_0:
27+
Accord de nombre erroné : « brutales » devrait être au singulier.
28+
> Suggestions : brutale
29+
* 3 [44:49] # #15359 / gn_cette_1m__b1_a0_0:
30+
Accord de genre erroné : « homme » est masculin.
31+
> Suggestions : ce | cet
32+
* 4 [60:66] # #15796 / gn_quelle_1m__b1_a4_0:
33+
Accord de genre erroné : « salopard » est masculin.
34+
> Suggestions : Quel
35+
* 5 [81:88] # #15224 / gn_un_1m__b1_a2_0:
36+
Accord de nombre erroné : « escrocs » devrait être au singulier.
37+
> Suggestions : escroc
38+
39+
espece.
40+
°°°°°°
41+
Quant sera t’il châtiés pour ses mensonge ? Merde ! J’en aie marre.
42+
^^^^^ ^^^ ^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^ ^^ ^^^
43+
* 1 [0:5] # #9595 / conf_quand_quant_qu_en__b1_a0_0:
44+
Confusion. Quand = à quel moment. Quant à = à propos de.
45+
> Suggestions : Quand
46+
* 2 [10:13] # #1664s / tu_t_euphonique_incorrect:
47+
Pour le “t” euphonique, il faut deux traits d’union. Pas d’apostrophe. Pas d’espace.
48+
> Suggestions : -t-
49+
* 3 [16:23] # #21642 / ppas_inversion_être_il__b1_a0_0:
50+
Accord avec le sujet “il” : “châtiés” devrait être au masculin singulier.
51+
> Suggestions : châtié
52+
* 4 [33:41] # #15600 / gn_det_pluriel_1m__b1_a0_0:
53+
Accord de nombre erroné : « mensonge » devrait être au pluriel.
54+
> Suggestions : mensonges
55+
* 5 [43:56] # #376p / esp_milieu_ligne:
56+
Espace(s) surnuméraire(s) à supprimer.
57+
> Suggestions :
58+
* 6 [61:63] # #1047p / nbsp_avant_double_ponctuation:
59+
Il manque un espace insécable.
60+
> Suggestions :  !
61+
* 7 [69:72] # #25110 / vmode_sujet_indicatif__b2_a0_0:
62+
Ce verbe ne devrait pas être au subjonctif.
63+
> Suggestions : ai | aurai | avais | eus

0 commit comments

Comments
 (0)