-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
…ariq work 1/3/2025" Again
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// For format details, see https://aka.ms/vscode-remote/devcontainer.json or this file's README at: | ||
// https://github.com/microsoft/vscode-dev-containers/tree/v0.195.0/containers/java | ||
{ | ||
"name": "Java", | ||
"build": { | ||
"dockerfile": "Dockerfile", | ||
"args": { | ||
// Update the VARIANT arg to pick a Java version: 8, 11, 17 | ||
// Append -bullseye or -buster to pin to an OS version. | ||
// Use the -bullseye variants on local arm64/Apple Silicon. | ||
"VARIANT": "17-bullseye", | ||
// Options | ||
"INSTALL_MAVEN": "true", | ||
"MAVEN_VERSION": "3.8.5", | ||
"INSTALL_GRADLE": "false", | ||
"NODE_VERSION": "lts/*" | ||
} | ||
}, | ||
|
||
// Configure tool-specific properties. | ||
"customizations": { | ||
// Configure properties specific to VS Code. | ||
"vscode": { | ||
// Set *default* container specific settings.json values on container create. | ||
"settings": { | ||
"maven.executable.path": "/usr/local/sdkman/candidates/maven/current/bin/mvn" | ||
}, | ||
|
||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": [ | ||
"vscjava.vscode-java-pack" | ||
] | ||
} | ||
}, | ||
|
||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
|
||
// Use 'postCreateCommand' to run commands after the container is created. | ||
// "postCreateCommand": "java -version", | ||
|
||
// Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root. | ||
"remoteUser": "vscode" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/app/ @arafaatqureshi |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Welcome to the To Don't community. | ||
|
||
Within desired privacy, accept and grant criticism constructively. | ||
|
||
Finding yourself unable to do so e-mail [[email protected]](mailto:[email protected]) answered by Crazy Marvin, the project maintainer. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
|
||
--- | ||
|
||
## :writing_hand: Describe the bug | ||
<!-- A clear and concise description of what the bug is. --> | ||
|
||
## :bomb: Steps to reproduce | ||
<!-- How we can reproduce the behavior: --> | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
## :wrench: Expected behavior | ||
<!-- A clear and concise description of what you expected to happen. --> | ||
|
||
## :camera: Screenshots | ||
<!-- If applicable, add screenshots to help explain your problem. --> | ||
|
||
## :iphone: Tech info | ||
- Device: <!-- e.g. Nexus 6P --> | ||
- OS: <!-- e.g. 7.1.1 --> | ||
- App Version: <!-- e.g. 3.1.2 --> | ||
|
||
## :page_facing_up: Additional context | ||
<!-- Add any other context about the problem here. --> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
|
||
--- | ||
|
||
## :warning: Is your feature request related to a problem? Please describe | ||
<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] --> | ||
|
||
## :bulb: Describe the solution you'd like | ||
<!-- A clear and concise description of what you want to happen. --> | ||
|
||
## :bar_chart: Describe alternatives you've considered | ||
<!-- A clear and concise description of any alternative solutions or features you've considered. --> | ||
|
||
## :page_facing_up: Additional context | ||
<!-- Add any other context or screenshots about the feature request here. --> | ||
|
||
## :raising_hand: Do you want to develop this feature yourself? | ||
<!-- Put an `x` symbol into braces of desired choice. --> | ||
- [ ] Yes | ||
- [ ] No |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Please report (suspected) security vulnerabilities to [[email protected]](mailto:[email protected]). It would be great if you could prepare a patch too. Thanks! |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
Hi! 👋 | ||
|
||
We’re excited that you’re using **To Dont't** and we’d love to help. | ||
To help us help you, please read through the following guidelines. | ||
|
||
Please understand that people involved with this project often do so for fun, | ||
next to their day job; you are not entitled to free customer service. | ||
|
||
## Help us help you! | ||
|
||
Spending time framing a question and adding support links or resources makes it | ||
much easier for us to help. | ||
It’s easy to fall into the trap of asking something too specific when you’re | ||
close to a problem. | ||
Then, those trying to help you out have to spend a lot of time asking additional | ||
questions to understand what you are hoping to achieve. | ||
|
||
Spending the extra time up front can help save everyone time in the long run. | ||
|
||
* Try to define what you need help with: | ||
* Is there something in particular you want to do? | ||
* What problem are you encountering and what steps have you taken to try | ||
and fix it? | ||
* Is there a concept you’re not understanding? | ||
* Learn about the [rubber duck debugging method](https://rubberduckdebugging.com/) | ||
* Avoid falling for the [XY problem](https://meta.stackexchange.com/questions/66377/what-is-the-xy-problem/66378#66378) | ||
* Search on GitHub to see if a similar question has been asked | ||
* If possible, provide sample code, a [CodeSandbox](https://codesandbox.io/), or a video/GIF | ||
* The more time you put into asking your question, the better we can help you | ||
|
||
## Contributions | ||
|
||
See [`contributing.md`](https://github.com/Crazy-Marvin/ToDont/blob/trunk/.github/CONTRIBUTING.md) on how to contribute. Quality PRs are really appreaciated! |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "gradle" # See documentation for possible values | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "monthly" | ||
|
||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "monthly" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Android Build | ||
|
||
on: push | ||
|
||
jobs: | ||
build: | ||
name: "Assemble artifacts" | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Checkout | ||
- name: SCM | ||
uses: actions/checkout@v4 | ||
- name: "Make gradlew executable" | ||
run: chmod +x ./gradlew | ||
|
||
# Assemble artifacts | ||
- name: Assemble | ||
uses: vgaidarji/[email protected] | ||
with: | ||
args: "./gradlew assemble" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: CI | ||
on: push | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "📥 Check-out" | ||
uses: actions/checkout@v4 | ||
# - name: "🧪 Gradle Wrapper Validation" | ||
# uses: gradle/wrapper-validation-action@v1 | ||
- name: "🧰 Install JDK" | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'adopt' | ||
java-version: 8 | ||
java-package: jdk | ||
- name: "🧰 Setup Android SDK" | ||
uses: android-actions/setup-android@v3 | ||
- name: "🦸 Make gradlew executable" | ||
run: chmod +x ./gradlew | ||
- name: "🏗 Build" | ||
run: ./gradlew assembleDebug | ||
- name: "🧪 Code coverage" | ||
run: ./gradlew test | ||
- name: "📤 Upload code coverage" | ||
uses: codecov/codecov-action@v4 | ||
Check warning Code scanning / Semgrep (reported by Codacy) An action sourced from a third-party repository on GitHub is not pinned to a full length commit SHA. Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release. Warning
An action sourced from a third-party repository on GitHub is not pinned to a full length commit SHA. Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release.
|
||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
- name: "🧪 Android LINT" | ||
run: ./gradlew lint | ||
- name: "🧪 Unit test" | ||
run: ./gradlew test |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# This workflow checks out code, performs a Codacy security scan | ||
# and integrates the results with the | ||
# GitHub Advanced Security code scanning feature. For more information on | ||
# the Codacy security scan action usage and parameters, see | ||
# https://github.com/codacy/codacy-analysis-cli-action. | ||
# For more information on Codacy Analysis CLI in general, see | ||
# https://github.com/codacy/codacy-analysis-cli. | ||
|
||
name: Codacy Security Scan | ||
|
||
on: | ||
push: | ||
branches: [ development, master, trunk ] | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: [ development ] | ||
schedule: | ||
- cron: '25 8 * * 3' | ||
|
||
jobs: | ||
codacy-security-scan: | ||
name: Codacy Security Scan | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Checkout the repository to the GitHub Actions runner | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
# Execute Codacy Analysis CLI and generate a SARIF output with the security issues identified during the analysis | ||
- name: Run Codacy Analysis CLI | ||
uses: codacy/[email protected] | ||
with: | ||
# Check https://github.com/codacy/codacy-analysis-cli#project-token to get your project token from your Codacy repository | ||
# You can also omit the token and run the tools that support default configurations | ||
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} | ||
verbose: true | ||
output: results.sarif | ||
format: sarif | ||
# Adjust severity of non-security issues | ||
gh-code-scanning-compat: true | ||
# Force 0 exit code to allow SARIF file generation | ||
# This will handover control about PR rejection to the GitHub side | ||
max-allowed-issues: 2147483647 | ||
|
||
# Upload the SARIF file generated in the previous step | ||
- name: Upload SARIF results file | ||
uses: github/codeql-action/upload-sarif@v3 | ||
with: | ||
sarif_file: results.sarif |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: "CodeQL" | ||
|
||
on: | ||
push: | ||
branches: [development] | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: [trunk] | ||
schedule: | ||
- cron: '0 9 * * 4' | ||
|
||
jobs: | ||
analyse: | ||
name: Analyse | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
# We must fetch at least the immediate parents so that if this is | ||
# a pull request then we can checkout the head. | ||
fetch-depth: 2 | ||
|
||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v3 | ||
# Override language selection by uncommenting this and choosing your languages | ||
# with: | ||
# languages: go, javascript, csharp, python, cpp, java | ||
|
||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java). | ||
# If this step fails, then you should remove it and run the build manually (see below) | ||
- name: Autobuild | ||
uses: github/codeql-action/autobuild@v3 | ||
|
||
# ℹ️ Command-line programs to run using the OS shell. | ||
# 📚 https://git.io/JvXDl | ||
|
||
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines | ||
# and modify them (or add more) to build your code if your project | ||
# uses a compiled language | ||
|
||
#- run: | | ||
# make bootstrap | ||
# make release | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v3 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: CI | ||
on: push | ||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
steps: | ||
- name: "📥 Check-out" | ||
uses: actions/checkout@v4 | ||
# - name: "🧪 Gradle Wrapper Validation" | ||
# uses: gradle/wrapper-validation-action@v1 | ||
- name: "🧰 Install JDK" | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'adopt' | ||
java-version: 8 | ||
java-package: jdk | ||
- name: "🧰 Setup Android SDK" | ||
uses: android-actions/setup-android@v3 | ||
- name: "🦸 Make gradlew executable" | ||
run: chmod +x ./gradlew | ||
- name: "🏗 Build" | ||
run: ./gradlew assembleDebug | ||
- name: "🧪 Code coverage" | ||
run: ./gradlew jacocoTestReport | ||
- name: "📤 Upload code coverage" | ||
uses: codecov/codecov-action@v4 | ||
Check warning Code scanning / Semgrep (reported by Codacy) An action sourced from a third-party repository on GitHub is not pinned to a full length commit SHA. Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release. Warning
An action sourced from a third-party repository on GitHub is not pinned to a full length commit SHA. Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release.
|
||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
yml: .codecov.yml | ||
- name: "🧪 Android LINT" | ||
run: ./gradlew lint | ||
- name: "🧪 Unit test" | ||
run: ./gradlew test |