-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1470 from phac-nml/release/23.01
Release/23.01
- Loading branch information
Showing
490 changed files
with
15,937 additions
and
13,062 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: Linting | ||
|
||
on: | ||
pull_request: # Run on all pull requests | ||
push: | ||
branches: # Run on any push to development or main | ||
- development | ||
- main | ||
|
||
jobs: | ||
eslint: # Lint changed JS/TS files | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v3 #Checkout the project from git | ||
- name: Get pnpm store directory | ||
id: pnpm-cache | ||
run: | | ||
echo "::set-output name=pnpm_cache_dir::$(./gradlew pnpmCacheDir -q)" | ||
- name: Setup pnpm cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-store- | ||
- name: Set up JDK 11 # Installs java 11 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
- name: Validate Gradle wrapper | ||
uses: gradle/wrapper-validation-action@v1 | ||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
- name: Install dependencies | ||
run: ./gradlew pnpmInstall | ||
- name: Run eslint on changed files | ||
uses: tj-actions/eslint-changed-files@v18 | ||
with: | ||
config_path: "src/main/webapp/.eslintrc.js" | ||
extra_args: "--max-warnings=0" | ||
file_extensions: | | ||
src/main/webapp/resources/js/**/*.ts | ||
src/main/webapp/resources/js/**/*.tsx | ||
src/main/webapp/resources/js/**/*.js | ||
src/main/webapp/resources/js/**/*.jsx | ||
checkstyle: # Lint changed Java files | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v3 #Checkout the project from git | ||
- name: Set up JDK 11 # Installs java 11 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
- name: Validate Gradle wrapper | ||
uses: gradle/wrapper-validation-action@v1 | ||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
- name: Run checkstyle | ||
uses: dbelyaev/[email protected] | ||
with: | ||
github_token: ${{ secrets.github_token }} | ||
reporter: github-pr-review | ||
fail_on_error: true | ||
level: error | ||
checkstyle_config: './checkstyle.xml' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,83 @@ | ||
<?xml version="1.0"?> | ||
<!DOCTYPE module PUBLIC | ||
"-//Puppy Crawl//DTD Check Configuration 1.2//EN" | ||
"http://www.puppycrawl.com/dtds/configuration_1_2.dtd"> | ||
|
||
<!DOCTYPE module PUBLIC "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN" "https://checkstyle.org/dtds/configuration_1_3.dtd"> | ||
<module name="Checker"> | ||
<property name="severity" value="error" /> | ||
|
||
<property name="fileExtensions" value="java, properties, xml" /> | ||
|
||
<module name="TreeWalker"> | ||
<module name="EmptyBlock" /> | ||
<module name="RegexpSinglelineJava"> | ||
<property name="format" value="^\t* " /> | ||
<property name="message" value="Indent must use tab characters" /> | ||
<property name="ignoreComments" value="true" /> | ||
</module> | ||
|
||
<!-- Checks for Javadoc comments. --> | ||
<!-- See https://checkstyle.org/config_javadoc.html --> | ||
<module name="InvalidJavadocPosition" /> | ||
<module name="JavadocMethod"> | ||
<property name="scope" value="protected"/> | ||
<property name="allowMissingPropertyJavadoc" value="true"/> | ||
<property name="allowedAnnotations" value="Override, Bean"/> | ||
<property name="tokens" value="METHOD_DEF"/> | ||
<property name="ignoreMethodNamesRegex" value="^main$"/> | ||
<property name="allowedAnnotations" value="Override, Bean" /> | ||
<property name="tokens" value="METHOD_DEF" /> | ||
</module> | ||
<module name="JavadocType"> | ||
<property name="scope" value="protected"/> | ||
<property name="scope" value="protected" /> | ||
</module> | ||
|
||
<!-- Checks for Naming Conventions. --> | ||
<!-- See https://checkstyle.org/config_naming.html --> | ||
<module name="PackageName" /> | ||
|
||
<!-- Checks for imports --> | ||
<!-- See https://checkstyle.org/config_imports.html --> | ||
<module name="IllegalImport" /> <!-- defaults to sun.* packages --> | ||
<module name="RedundantImport" /> | ||
<module name="UnusedImports"> | ||
<property name="processJavadoc" value="true"/> | ||
<property name="processJavadoc" value="true" /> | ||
</module> | ||
|
||
<!-- Checks for whitespace --> | ||
<!-- See https://checkstyle.org/config_whitespace.html --> | ||
<module name="EmptyForIteratorPad" /> | ||
<module name="GenericWhitespace" /> | ||
<module name="MethodParamPad" /> | ||
<module name="NoWhitespaceBefore" /> | ||
<module name="TypecastParenPad" /> | ||
<module name="WhitespaceAfter" /> | ||
|
||
<!-- Modifier Checks --> | ||
<!-- See https://checkstyle.org/config_modifier.html --> | ||
<module name="ModifierOrder" /> | ||
|
||
<!-- Checks for blocks. You know, those {}'s --> | ||
<!-- See https://checkstyle.org/config_blocks.html --> | ||
<module name="AvoidNestedBlocks" /> | ||
<module name="EmptyBlock" /> | ||
|
||
<!-- Checks for common coding problems --> | ||
<!-- See https://checkstyle.org/config_coding.html --> | ||
<module name="EmptyStatement" /> | ||
<module name="IllegalInstantiation" /> | ||
<module name="InnerAssignment" /> | ||
<module name="SimplifyBooleanExpression" /> | ||
<module name="SimplifyBooleanReturn" /> | ||
|
||
<!-- Checks for class design --> | ||
<!-- See https://checkstyle.org/config_design.html --> | ||
<module name="FinalClass" /> | ||
<module name="InterfaceIsType" /> | ||
|
||
<!-- Miscellaneous other checks. --> | ||
<!-- See https://checkstyle.org/config_misc.html --> | ||
<module name="ArrayTypeStyle" /> | ||
<module name="TodoComment" /> | ||
<module name="UpperEll" /> | ||
|
||
<!-- https://checkstyle.org/config_filters.html#SuppressionXpathFilter --> | ||
<module name="SuppressionXpathFilter"> | ||
<property name="file" value="${org.checkstyle.sun.suppressionxpathfilter.config}" | ||
default="checkstyle-xpath-suppressions.xml" /> | ||
<property name="optional" value="true" /> | ||
</module> | ||
</module> | ||
</module> | ||
</module> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.