This repository was archived by the owner on Apr 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(#669): Add script to check license headers
It's easy to forget to add license headers. This change adds a build job that verifies they exist on all files with the *.java extension. This should reduce the burden on code reviewers. Also included a script to replace the headers, to avoid manual effort. Additionally, added all the files missing the headers, using the other supplied script header-update.sh
- Loading branch information
1 parent
f8b7fe7
commit 70de1b2
Showing
78 changed files
with
1,153 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,16 @@ orbs: | |
codecov: codecov/[email protected] | ||
jobs: | ||
|
||
check_license_messages: | ||
docker: | ||
- image: circleci/openjdk:8-jdk-browsers | ||
working_directory: ~/datahelix/ | ||
steps: | ||
- checkout | ||
- run: | ||
name: Check license headers exist on all source files | ||
command: find . -type f -name '*.java' | xargs grep -L "Licensed under the Apache License" | ||
|
||
check_commit_message: | ||
docker: | ||
- image: circleci/openjdk:8-jdk-browsers | ||
|
@@ -11,10 +21,10 @@ jobs: | |
- checkout | ||
- run: | ||
name: Set commit script priviledges | ||
command: chmod +x commit_check.sh | ||
command: chmod +x commit-check.sh | ||
- run: | ||
name: Check commit messages | ||
command: ./commit_check.sh | ||
command: ./commit-check.sh | ||
|
||
build: | ||
docker: | ||
|
@@ -81,6 +91,11 @@ workflows: | |
filters: | ||
branches: | ||
ignore: master | ||
- check_license_messages: | ||
filters: | ||
branches: | ||
ignore: master | ||
|
||
release: | ||
jobs: | ||
- release: | ||
|
File renamed without changes.
15 changes: 15 additions & 0 deletions
15
common/src/main/java/com/scottlogic/deg/common/commands/Command.java
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
15 changes: 15 additions & 0 deletions
15
common/src/main/java/com/scottlogic/deg/common/commands/CommandBus.java
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
15 changes: 15 additions & 0 deletions
15
common/src/main/java/com/scottlogic/deg/common/commands/CommandHandler.java
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
15 changes: 15 additions & 0 deletions
15
common/src/main/java/com/scottlogic/deg/common/commands/CommandResult.java
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
15 changes: 15 additions & 0 deletions
15
common/src/main/java/com/scottlogic/deg/common/profile/DateTimeGranularity.java
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
15 changes: 15 additions & 0 deletions
15
common/src/main/java/com/scottlogic/deg/common/profile/FieldType.java
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
15 changes: 15 additions & 0 deletions
15
common/src/main/java/com/scottlogic/deg/common/profile/HelixDateTime.java
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
15 changes: 15 additions & 0 deletions
15
common/src/main/java/com/scottlogic/deg/common/profile/HelixNumber.java
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
15 changes: 15 additions & 0 deletions
15
common/src/main/java/com/scottlogic/deg/common/profile/HelixStringLength.java
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
15 changes: 15 additions & 0 deletions
15
common/src/main/java/com/scottlogic/deg/common/profile/SpecificFieldType.java
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
15 changes: 15 additions & 0 deletions
15
common/src/main/java/com/scottlogic/deg/common/util/defaults/DateTimeDefaults.java
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
15 changes: 15 additions & 0 deletions
15
common/src/main/java/com/scottlogic/deg/common/util/defaults/LinearDefaults.java
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
15 changes: 15 additions & 0 deletions
15
common/src/main/java/com/scottlogic/deg/common/util/defaults/NumericDefaults.java
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
15 changes: 15 additions & 0 deletions
15
common/src/main/java/com/scottlogic/deg/common/validators/ValidationResult.java
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
15 changes: 15 additions & 0 deletions
15
common/src/main/java/com/scottlogic/deg/common/validators/Validator.java
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
15 changes: 15 additions & 0 deletions
15
common/src/test/java/com/scottlogic/deg/common/profile/SpecificFieldTypeTest.java
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
15 changes: 15 additions & 0 deletions
15
generator/src/main/java/com/scottlogic/deg/generator/config/detail/VisualiserLevel.java
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
15 changes: 15 additions & 0 deletions
15
generator/src/main/java/com/scottlogic/deg/generator/decisiontree/ConstraintNodeBuilder.java
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.