Skip to content

Commit 82476b9

Browse files
authored
Merge pull request #20373 from github/aibaars/drop-nbsp
Remove non-breaking spaces from code
2 parents e719dd9 + 5d3ec35 commit 82476b9

File tree

26 files changed

+43
-43
lines changed

26 files changed

+43
-43
lines changed

.github/workflows/query-list.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
with:
3232
python-version: 3.8
3333
- name: Download CodeQL CLI
34-
# Look under the `codeql` directory, as this is where we checked out the `github/codeql` repo
34+
# Look under the `codeql` directory, as this is where we checked out the `github/codeql` repo
3535
uses: ./codeql/.github/actions/fetch-codeql
3636
- name: Build code scanning query list
3737
run: |

actions/ql/src/Security/CWE-829/UntrustedCheckoutCritical.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232

3333
- uses: actions/setup-node@v1
3434
- run: |
35-
npm install # scripts in package.json from PR would be executed here
35+
npm install # scripts in package.json from PR would be executed here
3636
npm build
3737
3838
- uses: completely/fakeaction@v2

actions/ql/src/Security/CWE-829/UntrustedCheckoutHigh.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232

3333
- uses: actions/setup-node@v1
3434
- run: |
35-
npm install # scripts in package.json from PR would be executed here
35+
npm install # scripts in package.json from PR would be executed here
3636
npm build
3737
3838
- uses: completely/fakeaction@v2

actions/ql/src/Security/CWE-829/UntrustedCheckoutMedium.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232

3333
- uses: actions/setup-node@v1
3434
- run: |
35-
npm install # scripts in package.json from PR would be executed here
35+
npm install # scripts in package.json from PR would be executed here
3636
npm build
3737
3838
- uses: completely/fakeaction@v2

docs/codeql/ql-language-reference/expressions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ Then the evaluation of the ``depth`` predicate proceeds as follows:
625625
+-----------+--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
626626
| **Stage** | **depth** | **Comments** |
627627
+===========+============================================+==========================================================================================================================================================================+
628-
| 0 |   | We always begin with the empty set. |
628+
| 0 | | We always begin with the empty set. |
629629
+-----------+--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
630630
| 1 | ``(0, b), (0, d), (0, e)`` | The nodes with no children have depth 0. The recursive step for **a** and **c** fails to produce a value, since some of their children do not have values for ``depth``. |
631631
+-----------+--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
lgtm,codescanning
2-
* The extractor now only extracts go.mod files belonging to extracted packages. In particular, vendored go.mod files will no longer be extracted unless the vendored package is explicitly passed to the extractor. This will remove unexpected `GoModExpr` and similar expressions seen by queries.
2+
* The extractor now only extracts go.mod files belonging to extracted packages. In particular, vendored go.mod files will no longer be extracted unless the vendored package is explicitly passed to the extractor. This will remove unexpected `GoModExpr` and similar expressions seen by queries.

go/ql/lib/semmle/go/Architectures.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Architecture extends string {
2828
}
2929

3030
/**
31-
* Gets the integer and pointer type width for this architecture.
31+
* Gets the integer and pointer type width for this architecture.
3232
*
3333
* As of the time of writing, this appears to always be identical -- there aren't
3434
* Go architectures with 64-bit pointers but 32-bit ints, for example.

go/ql/lib/semmle/go/dataflow/internal/DataFlowNodes.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ module Public {
994994
class ComponentReadNode extends ReadNode {
995995
override IR::ComponentReadInstruction insn;
996996

997-
/** Gets the data-flow node representing the base from which the field or element is read. */
997+
/** Gets the data-flow node representing the base from which the field or element is read. */
998998
Node getBase() { result = DataFlow::instructionNode(insn.getBase()) }
999999
}
10001000

go/ql/lib/semmle/go/frameworks/Beego.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ module Beego {
109109

110110
override string getAContentType() {
111111
// Super-method provides content-types for `Body`, which requires us to search
112-
// for `ContentType` and `Header` calls against the same `BeegoOutput` instance
112+
// for `ContentType` and `Header` calls against the same `BeegoOutput` instance
113113
result = super.getAContentType()
114114
or
115115
// Specifically describe methods that set the content-type and body in one operation:

go/ql/src/InconsistentCode/MissingErrorCheck.qhelp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ the returned pointer.</p>
2222

2323
<sample src="MissingErrorCheck.go" />
2424

25-
<p>The corrected version of <code>user</code> checks <code>err</code> before using <code>ptr</code>.</p>
25+
<p>The corrected version of <code>user</code> checks <code>err</code> before using <code>ptr</code>.</p>
2626

2727
<sample src="MissingErrorCheckGood.go" />
2828

0 commit comments

Comments
 (0)