goodcheck 2.5.0 → 2.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +31 -2
- data/README.md +4 -447
- data/lib/goodcheck.rb +5 -5
- data/lib/goodcheck/analyzer.rb +13 -9
- data/lib/goodcheck/buffer.rb +11 -16
- data/lib/goodcheck/cli.rb +80 -56
- data/lib/goodcheck/commands/check.rb +42 -26
- data/lib/goodcheck/commands/config_loading.rb +20 -2
- data/lib/goodcheck/commands/init.rb +4 -2
- data/lib/goodcheck/commands/pattern.rb +2 -1
- data/lib/goodcheck/commands/test.rb +14 -11
- data/lib/goodcheck/config_loader.rb +17 -20
- data/lib/goodcheck/error.rb +3 -0
- data/lib/goodcheck/exit_status.rb +6 -0
- data/lib/goodcheck/glob.rb +14 -3
- data/lib/goodcheck/import_loader.rb +42 -10
- data/lib/goodcheck/issue.rb +3 -3
- data/lib/goodcheck/location.rb +28 -0
- data/lib/goodcheck/logger.rb +4 -4
- data/lib/goodcheck/reporters/json.rb +4 -0
- data/lib/goodcheck/reporters/text.rb +42 -11
- data/lib/goodcheck/version.rb +1 -1
- metadata +29 -92
- data/.github/workflows/test.yml +0 -37
- data/.gitignore +0 -13
- data/.rubocop.yml +0 -5
- data/Dockerfile +0 -13
- data/Gemfile +0 -6
- data/Rakefile +0 -70
- data/benchmark/gc.c +0 -12221
- data/bin/console +0 -14
- data/bin/setup +0 -8
- data/cheatsheet.pdf +0 -0
- data/docusaurus/.dockerignore +0 -2
- data/docusaurus/.gitignore +0 -12
- data/docusaurus/Dockerfile +0 -10
- data/docusaurus/docker-compose.yml +0 -18
- data/docusaurus/docs/commands.md +0 -69
- data/docusaurus/docs/configuration.md +0 -300
- data/docusaurus/docs/development.md +0 -15
- data/docusaurus/docs/getstarted.md +0 -46
- data/docusaurus/docs/rules.md +0 -79
- data/docusaurus/website/README.md +0 -193
- data/docusaurus/website/core/Footer.js +0 -100
- data/docusaurus/website/package.json +0 -14
- data/docusaurus/website/pages/en/index.js +0 -207
- data/docusaurus/website/pages/en/versions.js +0 -118
- data/docusaurus/website/sidebars.json +0 -11
- data/docusaurus/website/siteConfig.js +0 -171
- data/docusaurus/website/static/css/code-block-buttons.css +0 -39
- data/docusaurus/website/static/css/custom.css +0 -245
- data/docusaurus/website/static/img/favicon.ico +0 -0
- data/docusaurus/website/static/js/code-block-buttons.js +0 -47
- data/docusaurus/website/versioned_docs/version-1.0.0/commands.md +0 -70
- data/docusaurus/website/versioned_docs/version-1.0.0/configuration.md +0 -296
- data/docusaurus/website/versioned_docs/version-1.0.0/development.md +0 -16
- data/docusaurus/website/versioned_docs/version-1.0.0/getstarted.md +0 -47
- data/docusaurus/website/versioned_docs/version-1.0.0/rules.md +0 -81
- data/docusaurus/website/versioned_docs/version-1.0.2/rules.md +0 -79
- data/docusaurus/website/versioned_docs/version-2.4.0/configuration.md +0 -301
- data/docusaurus/website/versioned_docs/version-2.4.3/rules.md +0 -80
- data/docusaurus/website/versioned_sidebars/version-1.0.0-sidebars.json +0 -11
- data/docusaurus/website/versioned_sidebars/version-1.0.2-sidebars.json +0 -11
- data/docusaurus/website/versioned_sidebars/version-2.4.0-sidebars.json +0 -11
- data/docusaurus/website/versions.json +0 -10
- data/docusaurus/website/yarn.lock +0 -6806
- data/goodcheck.gemspec +0 -36
- data/goodcheck.yml +0 -10
- data/logo/GoodCheck Horizontal.pdf +0 -899
- data/logo/GoodCheck Horizontal.png +0 -0
- data/logo/GoodCheck Horizontal.svg +0 -55
- data/logo/GoodCheck logo.png +0 -0
- data/logo/GoodCheck vertical.png +0 -0
- data/sample.yml +0 -57
Binary file
|
@@ -1,55 +0,0 @@
|
|
1
|
-
<svg width="2694" height="778" viewBox="0 0 2694 778" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
-
<path d="M351.815 668H348L396 549H540C509.922 622.523 438.854 668 351.815 668Z" fill="url(#paint0_linear)"/>
|
3
|
-
<path d="M256.162 375H113L160.838 255H304L256.162 375Z" fill="url(#paint1_linear)"/>
|
4
|
-
<path d="M550.911 521H407L455.089 402H599L550.911 521Z" fill="url(#paint2_linear)"/>
|
5
|
-
<path d="M314.911 228H171L178.911 208.358C203.711 146.602 263.178 109 336.333 109H363L314.911 228Z" fill="url(#paint3_linear)"/>
|
6
|
-
<path d="M491.911 228H348L396.089 109H540L491.911 228Z" fill="url(#paint4_linear)"/>
|
7
|
-
<path d="M197.3 521H193.671C132.431 521 80.8363 454.074 101.722 402H245L197.3 521Z" fill="url(#paint5_linear)"/>
|
8
|
-
<path d="M373.911 521H230L278.089 402H422L373.911 521Z" fill="url(#paint6_linear)"/>
|
9
|
-
<path d="M609.277 375H466L467.947 370.142C495.735 300.898 548.833 285 623.171 285C625.426 284.982 627.65 285.519 629.647 286.563C631.645 287.607 633.353 289.126 634.622 290.986C635.891 292.846 636.681 294.99 636.921 297.227C637.162 299.464 636.847 301.726 636.003 303.813L609.277 375Z" fill="url(#paint7_linear)"/>
|
10
|
-
<path d="M668.278 228H525L572.877 109H576.329C637.569 109 689.164 175.976 668.278 228Z" fill="url(#paint8_linear)"/>
|
11
|
-
<path d="M253.283 548.039H363L315.397 668H278.588C232.047 668 192.673 616.779 208.599 576.94C212.181 568.085 218.394 560.558 226.392 555.385C234.389 550.212 243.78 547.647 253.283 548.039Z" fill="url(#paint9_linear)"/>
|
12
|
-
<path d="M953.869 388.838H1032.68V496.357C1019.79 500.557 1007.38 503.535 995.471 505.293C983.654 507.051 970.861 507.93 957.092 507.93C924.67 507.93 899.67 498.359 882.092 479.219C864.514 459.98 855.725 432.881 855.725 397.92C855.725 363.447 865.637 336.494 885.461 317.061C905.285 297.529 932.58 287.764 967.346 287.764C989.709 287.764 1010.9 292.061 1030.92 300.654L1018.62 329.805C1001.23 321.797 983.85 317.793 966.467 317.793C943.615 317.793 925.549 324.971 912.268 339.326C898.986 353.682 892.346 373.311 892.346 398.213C892.346 424.385 898.303 444.307 910.217 457.979C922.229 471.553 939.465 478.34 961.926 478.34C973.254 478.34 985.363 476.924 998.254 474.092V418.867H953.869V388.838ZM1239.28 423.701C1239.28 450.166 1232.49 470.82 1218.92 485.664C1205.34 500.508 1186.45 507.93 1162.23 507.93C1147.09 507.93 1133.71 504.512 1122.09 497.676C1110.47 490.84 1101.54 481.025 1095.29 468.232C1089.04 455.439 1085.91 440.596 1085.91 423.701C1085.91 397.432 1092.65 376.924 1106.12 362.178C1119.6 347.432 1138.6 340.059 1163.11 340.059C1186.54 340.059 1205.1 347.627 1218.77 362.764C1232.44 377.803 1239.28 398.115 1239.28 423.701ZM1121.36 423.701C1121.36 461.104 1135.18 479.805 1162.81 479.805C1190.16 479.805 1203.83 461.104 1203.83 423.701C1203.83 386.689 1190.06 368.184 1162.52 368.184C1148.07 368.184 1137.57 372.969 1131.03 382.539C1124.58 392.109 1121.36 405.83 1121.36 423.701ZM1437.68 423.701C1437.68 450.166 1430.89 470.82 1417.32 485.664C1403.74 500.508 1384.85 507.93 1360.63 507.93C1345.49 507.93 1332.11 504.512 1320.49 497.676C1308.87 490.84 1299.93 481.025 1293.68 468.232C1287.43 455.439 1284.31 440.596 1284.31 423.701C1284.31 397.432 1291.05 376.924 1304.52 362.178C1318 347.432 1336.99 340.059 1361.51 340.059C1384.94 340.059 1403.5 347.627 1417.17 362.764C1430.84 377.803 1437.68 398.115 1437.68 423.701ZM1319.76 423.701C1319.76 461.104 1333.58 479.805 1361.21 479.805C1388.56 479.805 1402.23 461.104 1402.23 423.701C1402.23 386.689 1388.46 368.184 1360.92 368.184C1346.47 368.184 1335.97 372.969 1329.43 382.539C1322.98 392.109 1319.76 405.83 1319.76 423.701ZM1547.01 507.93C1526.8 507.93 1511.03 500.605 1499.7 485.957C1488.37 471.309 1482.71 450.752 1482.71 424.287C1482.71 397.725 1488.42 377.07 1499.85 362.324C1511.37 347.48 1527.29 340.059 1547.6 340.059C1568.89 340.059 1585.1 347.92 1596.23 363.643H1597.99C1596.33 352.021 1595.5 342.842 1595.5 336.104V277.07H1630.07V505H1603.12L1597.11 483.76H1595.5C1584.46 499.873 1568.3 507.93 1547.01 507.93ZM1556.24 480.098C1570.4 480.098 1580.71 476.143 1587.15 468.232C1593.6 460.225 1596.92 447.285 1597.11 429.414V424.58C1597.11 404.17 1593.79 389.668 1587.15 381.074C1580.51 372.48 1570.11 368.184 1555.95 368.184C1543.84 368.184 1534.51 373.115 1527.97 382.979C1521.43 392.744 1518.16 406.709 1518.16 424.873C1518.16 442.842 1521.33 456.562 1527.68 466.035C1534.03 475.41 1543.55 480.098 1556.24 480.098ZM1759.62 507.93C1735.11 507.93 1716.46 500.801 1703.66 486.543C1690.97 472.188 1684.62 451.631 1684.62 424.873C1684.62 397.627 1691.26 376.68 1704.54 362.031C1717.92 347.383 1737.21 340.059 1762.4 340.059C1779.49 340.059 1794.88 343.232 1808.55 349.58L1798.15 377.266C1783.6 371.602 1771.58 368.77 1762.11 368.77C1734.08 368.77 1720.07 387.373 1720.07 424.58C1720.07 442.744 1723.54 456.416 1730.47 465.596C1737.5 474.678 1747.76 479.219 1761.23 479.219C1776.56 479.219 1791.07 475.41 1804.74 467.793V497.822C1798.59 501.436 1791.99 504.023 1784.96 505.586C1778.03 507.148 1769.58 507.93 1759.62 507.93ZM2000.35 505H1965.78V405.391C1965.78 392.891 1963.24 383.564 1958.17 377.412C1953.19 371.26 1945.23 368.184 1934.29 368.184C1919.84 368.184 1909.19 372.529 1902.36 381.221C1895.62 389.814 1892.25 404.268 1892.25 424.58V505H1857.82V277.07H1892.25V334.932C1892.25 344.209 1891.66 354.121 1890.49 364.668H1892.69C1897.38 356.855 1903.87 350.801 1912.17 346.504C1920.57 342.207 1930.33 340.059 1941.47 340.059C1980.72 340.059 2000.35 359.834 2000.35 399.385V505ZM2134.01 507.93C2108.81 507.93 2089.08 500.605 2074.83 485.957C2060.67 471.211 2053.59 450.947 2053.59 425.166C2053.59 398.701 2060.18 377.9 2073.36 362.764C2086.54 347.627 2104.66 340.059 2127.71 340.059C2149.09 340.059 2165.99 346.553 2178.39 359.541C2190.79 372.529 2196.99 390.4 2196.99 413.154V431.758H2089.04C2089.52 447.48 2093.77 459.59 2101.78 468.086C2109.79 476.484 2121.07 480.684 2135.62 480.684C2145.19 480.684 2154.07 479.805 2162.28 478.047C2170.58 476.191 2179.46 473.164 2188.94 468.965V496.943C2180.54 500.947 2172.04 503.779 2163.45 505.439C2154.86 507.1 2145.04 507.93 2134.01 507.93ZM2127.71 366.133C2116.77 366.133 2107.98 369.6 2101.34 376.533C2094.8 383.467 2090.89 393.574 2089.62 406.855H2163.16C2162.96 393.477 2159.74 383.369 2153.49 376.533C2147.24 369.6 2138.64 366.133 2127.71 366.133ZM2316.44 507.93C2291.93 507.93 2273.27 500.801 2260.48 486.543C2247.79 472.188 2241.44 451.631 2241.44 424.873C2241.44 397.627 2248.08 376.68 2261.36 362.031C2274.74 347.383 2294.03 340.059 2319.22 340.059C2336.31 340.059 2351.69 343.232 2365.36 349.58L2354.96 377.266C2340.41 371.602 2328.4 368.77 2318.93 368.77C2290.9 368.77 2276.89 387.373 2276.89 424.58C2276.89 442.744 2280.35 456.416 2287.29 465.596C2294.32 474.678 2304.57 479.219 2318.05 479.219C2333.38 479.219 2347.88 475.41 2361.55 467.793V497.822C2355.4 501.436 2348.81 504.023 2341.78 505.586C2334.85 507.148 2326.4 507.93 2316.44 507.93ZM2447.89 419.453L2467.38 395.137L2516.3 342.988H2556L2490.81 412.568L2560.1 505H2519.67L2467.67 433.955L2448.77 449.482V505H2414.64V277.07H2448.77V388.252L2447.01 419.453H2447.89Z" fill="#293343"/>
|
13
|
-
<defs>
|
14
|
-
<linearGradient id="paint0_linear" x1="94.6913" y1="846.987" x2="529.614" y2="516.77" gradientUnits="userSpaceOnUse">
|
15
|
-
<stop stop-color="#6EDC20"/>
|
16
|
-
<stop offset="1" stop-color="#00ACBF"/>
|
17
|
-
</linearGradient>
|
18
|
-
<linearGradient id="paint1_linear" x1="304.22" y1="374.635" x2="-62.6533" y2="374.635" gradientUnits="userSpaceOnUse">
|
19
|
-
<stop stop-color="#00ACBF"/>
|
20
|
-
<stop offset="1" stop-color="#6EDC20"/>
|
21
|
-
</linearGradient>
|
22
|
-
<linearGradient id="paint2_linear" x1="588.732" y1="521.331" x2="354.74" y2="371.257" gradientUnits="userSpaceOnUse">
|
23
|
-
<stop stop-color="#6EDC20"/>
|
24
|
-
<stop offset="1" stop-color="#00ACBF"/>
|
25
|
-
</linearGradient>
|
26
|
-
<linearGradient id="paint3_linear" x1="171.21" y1="227.969" x2="568.69" y2="144.109" gradientUnits="userSpaceOnUse">
|
27
|
-
<stop stop-color="#6EDC20"/>
|
28
|
-
<stop offset="1" stop-color="#00ACBF"/>
|
29
|
-
</linearGradient>
|
30
|
-
<linearGradient id="paint4_linear" x1="486.676" y1="227.969" x2="106.706" y2="227.969" gradientUnits="userSpaceOnUse">
|
31
|
-
<stop stop-color="#00ACBF"/>
|
32
|
-
<stop offset="1" stop-color="#6EDC20"/>
|
33
|
-
</linearGradient>
|
34
|
-
<linearGradient id="paint5_linear" x1="97.0314" y1="402" x2="423.036" y2="402" gradientUnits="userSpaceOnUse">
|
35
|
-
<stop stop-color="#6EDC20"/>
|
36
|
-
<stop offset="1" stop-color="#00ACBF"/>
|
37
|
-
</linearGradient>
|
38
|
-
<linearGradient id="paint6_linear" x1="-36.2979" y1="402" x2="435.871" y2="402" gradientUnits="userSpaceOnUse">
|
39
|
-
<stop stop-color="#6EDC20"/>
|
40
|
-
<stop offset="1" stop-color="#00ACBF"/>
|
41
|
-
</linearGradient>
|
42
|
-
<linearGradient id="paint7_linear" x1="179.276" y1="375.308" x2="637.125" y2="375.308" gradientUnits="userSpaceOnUse">
|
43
|
-
<stop stop-color="#6EDC20"/>
|
44
|
-
<stop offset="1" stop-color="#00ACBF"/>
|
45
|
-
</linearGradient>
|
46
|
-
<linearGradient id="paint8_linear" x1="599" y1="109" x2="766.322" y2="263.666" gradientUnits="userSpaceOnUse">
|
47
|
-
<stop stop-color="#6EDC20"/>
|
48
|
-
<stop offset="1" stop-color="#00ACBF"/>
|
49
|
-
</linearGradient>
|
50
|
-
<linearGradient id="paint9_linear" x1="199.343" y1="667.644" x2="643.207" y2="667.644" gradientUnits="userSpaceOnUse">
|
51
|
-
<stop stop-color="#6EDC20"/>
|
52
|
-
<stop offset="1" stop-color="#00ACBF"/>
|
53
|
-
</linearGradient>
|
54
|
-
</defs>
|
55
|
-
</svg>
|
data/logo/GoodCheck logo.png
DELETED
Binary file
|
data/logo/GoodCheck vertical.png
DELETED
Binary file
|
data/sample.yml
DELETED
@@ -1,57 +0,0 @@
|
|
1
|
-
rules:
|
2
|
-
- id: sample.typo
|
3
|
-
pattern:
|
4
|
-
- Github
|
5
|
-
- FaceBook
|
6
|
-
message: |
|
7
|
-
Write GitHub and Facebook
|
8
|
-
|
9
|
-
Their names are GitHub and Facebook.
|
10
|
-
Maybe, you are misspelling.
|
11
|
-
pass: GitHub
|
12
|
-
fail: Github
|
13
|
-
|
14
|
-
- id: sample.debug_print
|
15
|
-
pattern:
|
16
|
-
- token: pp
|
17
|
-
- token: p
|
18
|
-
glob: "**/*.rb"
|
19
|
-
message: |
|
20
|
-
You should not use debug print
|
21
|
-
pass:
|
22
|
-
- render "app/views/welcome.html.erb"
|
23
|
-
fail:
|
24
|
-
- pp("Hello World")
|
25
|
-
|
26
|
-
- id: sample.html
|
27
|
-
not:
|
28
|
-
pattern:
|
29
|
-
- token: <meta charset="utf-8"
|
30
|
-
- token: <meta charset="UTF-8"
|
31
|
-
message: |
|
32
|
-
Use UTF-8 (no BOM).
|
33
|
-
glob: "**/*.html"
|
34
|
-
pass:
|
35
|
-
- |
|
36
|
-
<html>
|
37
|
-
<meta charset="utf-8"/>
|
38
|
-
</html>
|
39
|
-
- |
|
40
|
-
<html>
|
41
|
-
<meta charset="utf-8"></meta>
|
42
|
-
</html>
|
43
|
-
- |
|
44
|
-
<html>
|
45
|
-
<meta charset="UTF-8"></meta>
|
46
|
-
</html>
|
47
|
-
fail:
|
48
|
-
- |
|
49
|
-
<html>
|
50
|
-
<meta charset="iso-8859-1">
|
51
|
-
</html>
|
52
|
-
- |
|
53
|
-
<html>
|
54
|
-
</html>
|
55
|
-
|
56
|
-
import:
|
57
|
-
- https://gist.githubusercontent.com/soutaro/6362c89acd7d6771ae6ebfc615be402d/raw/7f04b973c2c8df70783cd7deb955ab95d1375b2d/sample.yml
|