Skip to content

Commit f22de1a

Browse files
authored
Merge pull request #9583 from igfoo/igfoo/locationdocs
Fix broken links to information about Locations
2 parents 35c8ca1 + b80e642 commit f22de1a

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

go/ql/lib/semmle/go/Errors.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class Error extends @error {
2626
* The location spans column `startcolumn` of line `startline` to
2727
* column `endcolumn` of line `endline` in file `filepath`.
2828
* For more information, see
29-
* [LGTM locations](https://lgtm.com/help/ql/locations).
29+
* [Locations](https://codeql.github.com/docs/writing-codeql-queries/providing-locations-in-codeql-queries/).
3030
*/
3131
predicate hasLocationInfo(
3232
string filepath, int startline, int startcolumn, int endline, int endcolumn

go/ql/lib/semmle/go/Files.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ abstract class Container extends @container {
3333
/**
3434
* Gets a URL representing the location of this container.
3535
*
36-
* For more information see https://lgtm.com/help/ql/locations#providing-urls.
36+
* For more information see https://codeql.github.com/docs/writing-codeql-queries/providing-locations-in-codeql-queries/#providing-urls.
3737
*/
3838
abstract string getURL();
3939

go/ql/lib/semmle/go/Locations.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import go
66
* A location as given by a file, a start line, a start column,
77
* an end line, and an end column.
88
*
9-
* For more information about locations see [LGTM locations](https://lgtm.com/help/ql/locations).
9+
* For more information about locations see [Locations](https://codeql.github.com/docs/writing-codeql-queries/providing-locations-in-codeql-queries/).
1010
*/
1111
class Location extends @location {
1212
/** Gets the file for this location. */
@@ -40,7 +40,7 @@ class Location extends @location {
4040
* The location spans column `startcolumn` of line `startline` to
4141
* column `endcolumn` of line `endline` in file `filepath`.
4242
* For more information, see
43-
* [LGTM locations](https://lgtm.com/help/ql/locations).
43+
* [Locations](https://codeql.github.com/docs/writing-codeql-queries/providing-locations-in-codeql-queries/).
4444
*/
4545
predicate hasLocationInfo(
4646
string filepath, int startline, int startcolumn, int endline, int endcolumn
@@ -68,7 +68,7 @@ class Locatable extends @locatable {
6868
* The location spans column `startcolumn` of line `startline` to
6969
* column `endcolumn` of line `endline` in file `filepath`.
7070
* For more information, see
71-
* [LGTM locations](https://lgtm.com/help/ql/locations).
71+
* [Locations](https://codeql.github.com/docs/writing-codeql-queries/providing-locations-in-codeql-queries/).
7272
*/
7373
predicate hasLocationInfo(
7474
string filepath, int startline, int startcolumn, int endline, int endcolumn

go/ql/lib/semmle/go/Scopes.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ class Entity extends @object {
130130
* The location spans column `startcolumn` of line `startline` to
131131
* column `endcolumn` of line `endline` in file `filepath`.
132132
* For more information, see
133-
* [LGTM locations](https://lgtm.com/help/ql/locations).
133+
* [Locations](https://codeql.github.com/docs/writing-codeql-queries/providing-locations-in-codeql-queries/).
134134
*/
135135
predicate hasLocationInfo(
136136
string filepath, int startline, int startcolumn, int endline, int endcolumn
@@ -632,7 +632,7 @@ class Callable extends TCallable {
632632
* The location spans column `sc` of line `sl` to
633633
* column `ec` of line `el` in file `fp`.
634634
* For more information, see
635-
* [Locations](https://help.semmle.com/QL/learn-ql/ql/locations.html).
635+
* [Locations](https://codeql.github.com/docs/writing-codeql-queries/providing-locations-in-codeql-queries/).
636636
*/
637637
predicate hasLocationInfo(string fp, int sl, int sc, int el, int ec) {
638638
this.asFunction().hasLocationInfo(fp, sl, sc, el, ec) or

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class Content extends TContent {
158158
* The location spans column `startcolumn` of line `startline` to
159159
* column `endcolumn` of line `endline` in file `filepath`.
160160
* For more information, see
161-
* [Locations](https://help.semmle.com/QL/learn-ql/ql/locations.html).
161+
* [Locations](https://codeql.github.com/docs/writing-codeql-queries/providing-locations-in-codeql-queries/).
162162
*/
163163
predicate hasLocationInfo(string path, int sl, int sc, int el, int ec) {
164164
path = "" and sl = 0 and sc = 0 and el = 0 and ec = 0

ql/ql/src/codeql/Locations.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import files.FileSystem
66
* A location as given by a file, a start line, a start column,
77
* an end line, and an end column.
88
*
9-
* For more information about locations see [LGTM locations](https://lgtm.com/help/ql/locations).
9+
* For more information about locations see [Locations](https://codeql.github.com/docs/writing-codeql-queries/providing-locations-in-codeql-queries/).
1010
*/
1111
class Location extends @location {
1212
/** Gets the file for this location. */
@@ -41,7 +41,7 @@ class Location extends @location {
4141
* The location spans column `startcolumn` of line `startline` to
4242
* column `endcolumn` of line `endline` in file `filepath`.
4343
* For more information, see
44-
* [LGTM locations](https://lgtm.com/help/ql/locations).
44+
* [Locations](https://codeql.github.com/docs/writing-codeql-queries/providing-locations-in-codeql-queries/).
4545
*/
4646
predicate hasLocationInfo(
4747
string filepath, int startline, int startcolumn, int endline, int endcolumn

ql/ql/src/codeql/files/FileSystem.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ abstract class Container extends @container {
146146
/**
147147
* Gets a URL representing the location of this container.
148148
*
149-
* For more information see https://lgtm.com/help/ql/locations#providing-urls.
149+
* For more information see https://codeql.github.com/docs/writing-codeql-queries/providing-locations-in-codeql-queries/#providing-urls.
150150
*/
151151
abstract string getURL();
152152

0 commit comments

Comments
 (0)