-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="keywords" content="ABAP,Open Source,abaplint,lint,linter,SAP,static analysis" /> | ||
<title>rules.abaplint.org</title> | ||
<link rel="stylesheet" type="text/css" href="/style.css"> | ||
<link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32" /> | ||
<link rel="icon" type="image/png" href="/favicon-16x16.png" sizes="16x16" /> | ||
</head> | ||
<body> | ||
<div class="content"><h1>Check for 7bit ascii</h1> | ||
<a href="/"><svg fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewBox="0 0 24 24" height="2ch"><title>home</title><path d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"></path></svg></a> <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" height="2ch"> | ||
<title>single file</title> | ||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z" /></svg> <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6" height="2ch"> | ||
<title>example</title> | ||
<path stroke-linecap="round" stroke-linejoin="round" d="M10.34 15.84c-.688-.06-1.386-.09-2.09-.09H7.5a4.5 4.5 0 1 1 0-9h.75c.704 0 1.402-.03 2.09-.09m0 9.18c.253.962.584 1.892.985 2.783.247.55.06 1.21-.463 1.511l-.657.38c-.551.318-1.26.117-1.527-.461a20.845 20.845 0 0 1-1.44-4.282m3.102.069a18.03 18.03 0 0 1-.59-4.59c0-1.586.205-3.124.59-4.59m0 9.18a23.848 23.848 0 0 1 8.835 2.535M10.34 6.66a23.847 23.847 0 0 0 8.835-2.535m0 0A23.74 23.74 0 0 0 18.795 3m.38 1.125a23.91 23.91 0 0 1 1.014 5.395m-1.014 8.855c-.118.38-.245.754-.38 1.125m.38-1.125a23.91 23.91 0 0 0 1.014-5.395m0-3.46c.495.413.811 1.035.811 1.73 0 .695-.316 1.317-.811 1.73m0-3.46a24.347 24.347 0 0 1 0 3.46" /> | ||
</svg> <a href="https://github.com/abaplint/abaplint/blob/main/packages/core/src/rules/7bit_ascii.ts"><svg fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewBox="0 0 24 24" height="2ch"><title>edit</title><path d="M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"></path></svg></a> | ||
<p><tt>7bit_ascii</tt><br> | ||
</p> | ||
<h2>Description</h2> | ||
<p>Only allow characters from the 7bit ASCII set.</p><h2>Extended Information</h2> | ||
<p><a href='https://docs.abapopenchecks.org/checks/05/'>https://docs.abapopenchecks.org/checks/05/</a><br><br><a href='https://help.sap.com/doc/abapdocu_750_index_htm/7.50/en-US/abencharacter_set_guidl.htm'>https://help.sap.com/doc/abapdocu_750_index_htm/7.50/en-US/abencharacter_set_guidl.htm</a><br><br>Checkes files with extensions ".abap" and ".asddls"</p><h2>Default Configuration</h2> | ||
<div id="defaultConfigEditor" style="width:700px;height:114px;border:1px solid grey"></div> | ||
<script src="/_monaco/vs/loader.js"></script> | ||
<script src="/schema.js"></script> | ||
<script src="/pack.bundle.js"></script> | ||
<script> | ||
require.config({ paths: { 'vs': '/_monaco/vs' }}); | ||
require(['vs/editor/editor.main'], function() { | ||
var modelUri = monaco.Uri.parse("a://b/foo.json"); | ||
var model = monaco.editor.createModel(`{ | ||
"exclude": [], | ||
"severity": "Error" | ||
}`, "json", modelUri); | ||
|
||
const schema = abaplintSchema; | ||
schema["$ref"] = "#/definitions/SevenBitAsciiConf", | ||
|
||
monaco.languages.json.jsonDefaults.setDiagnosticsOptions({ | ||
validate: true, | ||
schemas: [{ | ||
uri: "https://schema.abaplint.org/dummy.json", | ||
fileMatch: [modelUri.toString()], | ||
schema, | ||
}], | ||
}); | ||
|
||
var editor = monaco.editor.create(document.getElementById('defaultConfigEditor'), { | ||
model: model, | ||
autoClosingBrackets: false, | ||
minimap: {enabled: false}, | ||
theme: "vs-dark" | ||
}); | ||
|
||
editor.onDidChangeModelContent(() => configChanged(editor, "7bit_ascii")); | ||
}); | ||
</script><i>Hover to see descriptions, Ctrl+Space for suggestions</i><h2>Examples</h2> | ||
<div id="examplesEditor" style="width:700px;height:133px;border:1px solid grey"></div> | ||
<script> | ||
require.config({ paths: { 'vs': '/_monaco/vs' }}); | ||
require(['vs/editor/editor.main'], function() { | ||
initABAP(`* Bad example | ||
WRITE '뽑'. | ||
* Good example | ||
WRITE cl_abap_conv_in_ce=>uccp( 'BF51' ).`, "7bit_ascii"); | ||
}); | ||
</script><br><br></div> | ||
</body> | ||
</html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rules.abaplint.org |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.