Skip to content
This repository was archived by the owner on Jan 2, 2021. It is now read-only.

Commit ab6d31d

Browse files
committed
Added plumbing.
1 parent 2057092 commit ab6d31d

24 files changed

+619
-0
lines changed

.editorconfig

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false
13+
14+
[Makefile]
15+
indent_style = tab
16+
indent_size = 4
17+

.github/CONTRIBUTING.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Contributing

.github/ISSUE_TEMPLATE/custom.md

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: Custom issue template
3+
about: Custom template for issues
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
## Problem Statement
11+
12+
## Description
13+
14+
### Platform
15+
16+
### Expected behavior
17+
18+
### Observed behavior
19+
20+
## Steps to reproduce behavior
21+
22+
## Other notes

.github/actions/action.yml

Whitespace-only changes.

.github/pull_request_template.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
## Issue
2+
3+
## List of proposed changes/fixes
4+
5+
## Other notes

.github/workflows/codeql-analysis.yml

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
# The branches below must be a subset of the branches above
8+
branches: [master]
9+
schedule:
10+
- cron: '0 5 * * 6'
11+
12+
jobs:
13+
analyze:
14+
name: Analyze
15+
runs-on: ubuntu-latest
16+
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
# Override automatic language detection by changing the below list
21+
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
22+
language: ['javascript']
23+
# Learn more...
24+
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
25+
26+
steps:
27+
- name: Checkout repository
28+
uses: actions/checkout@v2
29+
with:
30+
# We must fetch at least the immediate parents so that if this is
31+
# a pull request then we can checkout the head.
32+
fetch-depth: 2
33+
34+
# If this run was triggered by a pull request event, then checkout
35+
# the head of the pull request instead of the merge commit.
36+
- run: git checkout HEAD^2
37+
if: ${{ github.event_name == 'pull_request' }}
38+
39+
# Initializes the CodeQL tools for scanning.
40+
- name: Initialize CodeQL
41+
uses: github/codeql-action/init@v1
42+
with:
43+
languages: ${{ matrix.language }}
44+
# If you wish to specify custom queries, you can do so here or in a config file.
45+
# By default, queries listed here will override any specified in a config file.
46+
# Prefix the list here with "+" to use these queries and those in the config file.
47+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
48+
49+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
50+
# If this step fails, then you should remove it and run the build manually (see below)
51+
- name: Autobuild
52+
uses: github/codeql-action/autobuild@v1
53+
54+
# ℹ️ Command-line programs to run using the OS shell.
55+
# 📚 https://git.io/JvXDl
56+
57+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
58+
# and modify them (or add more) to build your code if your project
59+
# uses a compiled language
60+
61+
#- run: |
62+
# make bootstrap
63+
# make release
64+
65+
- name: Perform CodeQL Analysis
66+
uses: github/codeql-action/analyze@v1

.github/workflows/linter.yml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
###########################
3+
###########################
4+
## Linter GitHub Actions ##
5+
###########################
6+
###########################
7+
name: Lint Code Base
8+
9+
#
10+
# Documentation:
11+
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
12+
#
13+
14+
#############################
15+
# Start the job on all push #
16+
#############################
17+
on:
18+
push:
19+
branches-ignore: [master]
20+
# Remove the line above to run when pushing to master
21+
pull_request:
22+
branches: [master]
23+
24+
###############
25+
# Set the Job #
26+
###############
27+
jobs:
28+
build:
29+
# Name the Job
30+
name: Lint Code Base
31+
# Set the agent to run on
32+
runs-on: ubuntu-latest
33+
34+
##################
35+
# Load all steps #
36+
##################
37+
steps:
38+
##########################
39+
# Checkout the code base #
40+
##########################
41+
- name: Checkout Code
42+
uses: actions/checkout@v2
43+
44+
################################
45+
# Run Linter against code base #
46+
################################
47+
- name: Lint Code Base
48+
uses: github/super-linter@v3
49+
env:
50+
VALIDATE_ALL_CODEBASE: false
51+
DEFAULT_BRANCH: master
52+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/main.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Should have a step to deploy to gh-pages
2+
3+
name: build-test
4+
on: [push]
5+
jobs:
6+
7+
build:
8+
name: Build
9+
runs-on: ubuntu-latest
10+
steps:
11+
12+
- name: Make all
13+
working-directory: ./
14+
run: ls

.github/workflows/ossar-analysis.yml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# This workflow integrates a collection of open source static analysis tools
2+
# with GitHub code scanning. For documentation, or to provide feedback, visit
3+
# https://github.com/github/ossar-action
4+
name: OSSAR
5+
6+
on:
7+
push:
8+
pull_request:
9+
10+
jobs:
11+
OSSAR-Scan:
12+
# OSSAR runs on windows-latest.
13+
# ubuntu-latest and macos-latest support coming soon
14+
runs-on: windows-latest
15+
16+
steps:
17+
# Checkout your code repository to scan
18+
- name: Checkout repository
19+
uses: actions/checkout@v2
20+
with:
21+
# We must fetch at least the immediate parents so that if this is
22+
# a pull request then we can checkout the head.
23+
fetch-depth: 2
24+
25+
# If this run was triggered by a pull request event, then checkout
26+
# the head of the pull request instead of the merge commit.
27+
- run: git checkout HEAD^2
28+
if: ${{ github.event_name == 'pull_request' }}
29+
30+
# Ensure a compatible version of dotnet is installed.
31+
# The [Microsoft Security Code Analysis CLI](https://aka.ms/mscadocs) is built with dotnet v3.1.201.
32+
# A version greater than or equal to v3.1.201 of dotnet must be installed on the agent in order to run this action.
33+
# Remote agents already have a compatible version of dotnet installed and this step may be skipped.
34+
# For local agents, ensure dotnet version 3.1.201 or later is installed by including this action:
35+
# - name: Install .NET
36+
# uses: actions/setup-dotnet@v1
37+
# with:
38+
# dotnet-version: '3.1.x'
39+
40+
# Run open source static analysis tools
41+
- name: Run OSSAR
42+
uses: github/ossar-action@v1
43+
id: ossar
44+
45+
# Upload results to the Security tab
46+
- name: Upload OSSAR results
47+
uses: github/codeql-action/upload-sarif@v1
48+
with:
49+
sarif_file: ${{ steps.ossar.outputs.sarifFile }}

.gitignore

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
out
2+
dist
3+
node_modules
4+
.vscode-test/
5+
*.vsix
6+
7+
.vscode/.ropeproject
8+
__pycache__
9+
10+
# scala
11+
.metals

.vscode/extensions.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Step1: Get extensions json data from sync gist.
2+
// Step2: https://jsonformatter.org/json-parser to get metadata.publisherId
3+
4+
{
5+
"recommendations": []
6+
}

.vscode/settings.json

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
{
2+
"eslint.validate": [
3+
"html",
4+
"javascript",
5+
"typescript",
6+
"typescriptreact",
7+
"markdown",
8+
"json"
9+
],
10+
"editor.formatOnType": true,
11+
"editor.formatOnSave": true,
12+
"editor.formatOnPaste": true,
13+
"editor.codeActionsOnSave": {
14+
"source.fixAll.eslint": true
15+
},
16+
"prettier.singleQuote": true,
17+
"eslint.workingDirectories": [
18+
{
19+
"directory": "./",
20+
"changeProcessCWD": true
21+
},
22+
{
23+
"directory": "./app",
24+
"changeProcessCWD": true
25+
},
26+
{
27+
"directory": "./website",
28+
"changeProcessCWD": true
29+
}
30+
],
31+
"markdown.extension.print.onFileSave": false,
32+
"markdown.extension.toc.orderedList": true,
33+
"javascript.validate.enable": true,
34+
"standard.enable": false,
35+
"markdown.extension.toc.levels": "2..6",
36+
"markdown.extension.toc.githubCompatibility": true,
37+
"editor.tabSize": 2,
38+
"cSpell.words": [
39+
"Sourcegraph"
40+
],
41+
"files.watcherExclude": {
42+
"**/target": true
43+
},
44+
"python.testing.unittestEnabled": false,
45+
"python.testing.unittestArgs": [
46+
"-v",
47+
"-s",
48+
".",
49+
"-p",
50+
"*test.py"
51+
],
52+
"python.testing.promptToConfigure": false,
53+
"python.testing.pytestEnabled": false,
54+
"python.testing.nosetestsEnabled": false,
55+
"python.linting.pylintEnabled": true,
56+
"java.test.config": [
57+
{
58+
"name": "myConfig",
59+
"workingDirectory": "${workspaceFolder}"
60+
}
61+
],
62+
"java.test.defaultConfig": "myConfig",
63+
"markdownShortcuts.bullets.marker": "-",
64+
"java.format.settings.url": "https://raw.githubusercontent.com/google/styleguide/gh-pages/eclipse-java-google-style.xml",
65+
"java.format.settings.profile": "GoogleStyle",
66+
"java.checkstyle.configuration": "",
67+
"java.debug.settings.console": "internalConsole",
68+
"markdown.extension.list.indentationSize": "inherit",
69+
"python.linting.enabled": true,
70+
"c3.rootPackage": ""
71+
}

CHANGELOG.md

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog][Keep a Changelog], and this project adheres to [Semantic Versioning][Semantic Versioning].
6+
7+
## [Unreleased]
8+
9+
## [0.0.1] - 2021-01-02
10+
11+
### Added
12+
13+
- First version.
14+
15+
<!-- Links -->
16+
[Keep a Changelog]: https://keepachangelog.com/
17+
[Semantic Versioning]: https://semver.org/
18+
19+
<!-- Versions -->
20+
[Unreleased]: https://github.com/manastalukdar/template-repo/compare/v0.0.1..HEAD
21+
[0.0.2]: https://github.com/manastalukdar/template-repo/compare/v0.0.1..v0.0.2
22+
[0.0.1]: https://github.com/manastalukdar/template-repo/releases/tag/v0.0.1

0 commit comments

Comments
 (0)