diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 3a64696bc25..5430dd75637 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -68,9 +68,9 @@ members of the project's leadership. ## Attribution This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, -available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html +available at https://www.contributor-covenant.org/version/1/4/code-of-conduct/ [homepage]: https://www.contributor-covenant.org For answers to common questions about this code of conduct, see -https://www.contributor-covenant.org/faq +https://www.contributor-covenant.org/faq/ diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e71d359e25c..5eb2435d2bd 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -2,7 +2,7 @@ Hi there! We're thrilled that you'd like to contribute to this project. Your help is essential for keeping it great. -Contributions to this project are [released](https://help.github.com/articles/github-terms-of-service/#6-contributions-under-repository-license) to the public under the [project's open source license](LICENSE). +Contributions to this project are [released](https://docs.github.com/en/github/site-policy/github-terms-of-service#6-contributions-under-repository-license) to the public under the [project's open source license](LICENSE). Please note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms. @@ -29,11 +29,11 @@ Follow the steps below to help other users understand what your query does, and 1. **Consult the documentation for query writers** - There is lots of useful documentation to help you write CodeQL queries, ranging from information about query file structure to language-specific tutorials. For more information on the documentation available, see [Writing QL queries](https://help.semmle.com/QL/learn-ql/writing-queries/writing-queries.html) on [help.semmle.com](https://help.semmle.com). + There is lots of useful documentation to help you write CodeQL queries, ranging from information about query file structure to language-specific tutorials. For more information on the documentation available, see [Writing QL queries](https://codeql.github.com/docs/writing-codeql-queries/) on [codeql.github.com/docs](https://codeql.github.com/docs/). 2. **Format your code correctly** - All of the standard CodeQL queries and libraries are uniformly formatted for clarity and consistency, so we strongly recommend that all contributions follow the same formatting guidelines. If you use the CodeQL extension for Visual Studio Code, you can auto-format your query using the [Format Document command](https://help.semmle.com/codeql/codeql-for-vscode/procedures/about-codeql-for-vscode.html). For more information, see the [QL style guide](https://github.com/github/codeql/blob/main/docs/ql-style-guide.md). + All of the standard CodeQL queries and libraries are uniformly formatted for clarity and consistency, so we strongly recommend that all contributions follow the same formatting guidelines. If you use the CodeQL extension for Visual Studio Code, you can auto-format your query using the [Format Document command](https://codeql.github.com/docs/codeql-for-visual-studio-code/about-codeql-for-visual-studio-code/). For more information, see the [QL style guide](https://github.com/github/codeql/blob/main/docs/ql-style-guide.md). 3. **Make sure your query has the correct metadata** @@ -45,7 +45,7 @@ Follow the steps below to help other users understand what your query does, and 4. **Make sure the `select` statement is compatible with the query type** The `select` statement of your query must be compatible with the query type (determined by the `@kind` metadata property) for alert or path results to be displayed correctly in LGTM and Visual Studio Code. - For more information on `select` statement format, see [Introduction to query files](https://help.semmle.com/QL/learn-ql/writing-queries/introduction-to-queries.html#select-clause) on help.semmle.com. + For more information on `select` statement format, see [About CodeQL queries](https://codeql.github.com/docs/writing-codeql-queries/about-codeql-queries/#select-clause) on codeql.github.com. 5. **Write a query help file** @@ -61,6 +61,6 @@ In addition to contributions to our standard queries and libraries, we also welc ## Resources - [How to Contribute to Open Source](https://opensource.guide/how-to-contribute/) -- [Using Pull Requests](https://help.github.com/articles/about-pull-requests/) -- [GitHub Help](https://help.github.com) -- [A Note About Git Commit Messages](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html) +- [Using Pull Requests](https://docs.github.com/en/github/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests) +- [GitHub Help](https://docs.github.com/en) +- [A Note About Git Commit Messages](https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html) diff --git a/README.md b/README.md index 6d778507ab9..74a2039cd05 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ makes available to its customers worldwide. It contains two major components: - an extractor, itself written in Go, that parses Go source code and converts it into a database that can be queried using CodeQL. - - static analysis libraries and queries written in [QL](https://help.semmle.com/QL) that can be + - static analysis libraries and queries written in [CodeQL](https://codeql.github.com/docs/) that can be used to analyze such a database to find coding mistakes or security vulnerabilities. The goal of this project is to provide comprehensive static analysis support for Go in CodeQL. @@ -29,7 +29,7 @@ Code workspace. ## Usage To analyze a Go codebase, either use the [CodeQL command-line -interface](https://help.semmle.com/codeql/codeql-cli.html) to create a database yourself, or +interface](https://codeql.github.com/docs/codeql-cli/) to create a database yourself, or download a pre-built database from [LGTM.com](https://lgtm.com/). You can then run any of the queries contained in this repository either on the command line or using the VS Code extension. @@ -50,5 +50,5 @@ The code in this repository is licensed under the [MIT license](LICENSE). ## Resources -- [Writing CodeQL queries](https://help.semmle.com/QL/learn-ql/ql/writing-queries/writing-queries.html) -- [Learning CodeQL](https://help.semmle.com/QL/learn-ql/index.html) +- [Writing CodeQL queries](https://codeql.github.com/docs/writing-codeql-queries/codeql-queries/) +- [Learning CodeQL](https://codeql.github.com/docs/writing-codeql-queries/ql-tutorials/) diff --git a/change-notes/1.24/analysis-go.md b/change-notes/1.24/analysis-go.md index 4a335191f18..a9f38cb1ec2 100644 --- a/change-notes/1.24/analysis-go.md +++ b/change-notes/1.24/analysis-go.md @@ -10,7 +10,7 @@ ## New queries -The CodeQL library for Go now contains a folder of simple "cookbook" queries that show how to access basic Go elements using the predicates defined by the standard library. They're intended to give you a starting point for your own experiments and to help you work out the best way to frame your questions using CodeQL. You can find them in the `examples/snippets` folder in the [CodeQL for Go repository](https://github.com/github/codeql-go/tree/master/ql/examples/snippets). +The CodeQL library for Go now contains a folder of simple "cookbook" queries that show how to access basic Go elements using the predicates defined by the standard library. They're intended to give you a starting point for your own experiments and to help you work out the best way to frame your questions using CodeQL. You can find them in the `examples/snippets` folder in the [CodeQL for Go repository](https://github.com/github/codeql-go/tree/main/ql/examples/snippets). | **Query** | **Tags** | **Purpose** | |------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| diff --git a/change-notes/2020-12-08-k8s-io-apimachinery-pkg-runtime.md b/change-notes/2020-12-08-k8s-io-apimachinery-pkg-runtime.md index a927119165a..b4d6ac7e70a 100644 --- a/change-notes/2020-12-08-k8s-io-apimachinery-pkg-runtime.md +++ b/change-notes/2020-12-08-k8s-io-apimachinery-pkg-runtime.md @@ -1,2 +1,2 @@ lgtm,codescanning -* Support for the [k8s.io/apimachinery/pkg/runtime](https://godoc.org/k8s.io/apimachinery/pkg/runtime) library has been added, which may lead to more results from the security queries. +* Support for the [k8s.io/apimachinery/pkg/runtime](https://pkg.go.dev/k8s.io/apimachinery/pkg/runtime) library has been added, which may lead to more results from the security queries. diff --git a/ql/docs/experimental.md b/ql/docs/experimental.md index 1ca9a166b8a..bef435d6674 100644 --- a/ql/docs/experimental.md +++ b/ql/docs/experimental.md @@ -21,7 +21,7 @@ Experimental queries and libraries may not be actively maintained as the standar 3. **Formatting** - - The queries and libraries must be [autoformatted](https://help.semmle.com/codeql/codeql-for-vscode/reference/editor.html#autoformatting). + - The queries and libraries must be [autoformatted](https://codeql.github.com/docs/codeql-for-visual-studio-code/about-codeql-for-visual-studio-code/). 4. **Compilation** diff --git a/ql/test/library-tests/semmle/go/frameworks/Revel/examples/README.md b/ql/test/library-tests/semmle/go/frameworks/Revel/examples/README.md index 6f836ac7e00..925f3b73531 100644 --- a/ql/test/library-tests/semmle/go/frameworks/Revel/examples/README.md +++ b/ql/test/library-tests/semmle/go/frameworks/Revel/examples/README.md @@ -1,3 +1,3 @@ -Revel example adapted from [revel-examples](https://github.com/revel/revel-examples). +Revel example adapted from [revel-examples](https://github.com/revel/examples). See `LICENSE` for license information.