Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix linting errors #32

Merged
merged 17 commits into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
module.exports = {
root: true,
env: {node: true, es2020: true},
env: {node: true, es2020: true, jest: true},
extends: [
'eslint:recommended'
],
ignorePatterns: ['dist', '.eslintrc.cjs', 'tests'],
parserOptions: {ecmaVersion: 'latest', sourceType: 'module'},
parser: '@typescript-eslint/parser',
plugins: ['jsdoc'],
plugins: ['jsdoc', 'jest'],
rules: {
'prefer-const': ['error', {
'destructuring': 'any',
Expand Down Expand Up @@ -50,7 +50,7 @@ module.exports = {
// 'jsdoc/require-example': 1,
// 'jsdoc/require-file-overview': 1,
'jsdoc/require-hyphen-before-param-description': 1,
'jsdoc/require-jsdoc': 1, // Recommended
'jsdoc/require-jsdoc': [1, { contexts: ['ClassDeclaration', 'ClassProperty', 'FunctionDeclaration', 'MethodDefinition'] }],
'jsdoc/require-param': 1, // Recommended
'jsdoc/require-param-description': 1, // Recommended
'jsdoc/require-param-name': 1, // Recommended
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

.idea/
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ This code is copyrighted by [Ghent University - imec](https://www.ugent.be/ea/id

## Contact

For any questions, please contact [Kush](mailto:kushagrasingh.bisen@ugent.be) or create an issue in the repository [here])(https://github.com/SolidLabResearch/solid-stream-aggregator/issues) .
For any questions, please contact [Kush](mailto:kushagrasingh.bisen@ugent.be) or create an issue in the repository [here](https://github.com/SolidLabResearch/solid-stream-aggregator/issues) .
6 changes: 6 additions & 0 deletions esdoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"source": "./src",
"destination": "./docs",
"plugins": [{"name": "esdoc-standard-plugin"}]
}

14 changes: 14 additions & 0 deletions logs/aggregation.log
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Logs don't belong in a repo, unless there is very specific reason why they should be.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will add them to .gitignore

Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
{"name":"solid-stream-aggregator","hostname":"pop-os","pid":54529,"level":30,"msg":"http_server_started","time":"2024-02-05T14:14:16.179Z","v":0}
{"name":"solid-stream-aggregator","hostname":"pop-os","pid":57046,"level":30,"msg":"http_server_started","time":"2024-02-05T14:29:17.584Z","v":0}
{"name":"solid-stream-aggregator","hostname":"pop-os","pid":31659,"level":30,"msg":"http_server_started","time":"2024-02-07T10:38:01.323Z","v":0}
{"name":"solid-stream-aggregator","hostname":"pop-os","pid":30058,"level":30,"msg":"http_server_started","time":"2024-02-15T12:58:11.065Z","v":0}
{"name":"solid-stream-aggregator","hostname":"pop-os","pid":357730,"level":30,"msg":"http_server_started","time":"2024-02-16T15:09:07.609Z","v":0}
{"name":"solid-stream-aggregator","hostname":"pop-os","pid":43016,"level":30,"msg":"http_server_started","time":"2024-02-19T13:16:38.883Z","v":0}
{"name":"solid-stream-aggregator","hostname":"pop-os","pid":68524,"level":30,"msg":"http_server_started","time":"2024-02-19T13:20:28.382Z","v":0}
{"name":"solid-stream-aggregator","hostname":"pop-os","pid":177694,"level":30,"msg":"http_server_started","time":"2024-02-20T15:14:55.500Z","v":0}
{"name":"solid-stream-aggregator","hostname":"pop-os","pid":182754,"level":30,"msg":"http_server_started","time":"2024-02-20T15:22:06.557Z","v":0}
{"name":"solid-stream-aggregator","hostname":"pop-os","pid":183901,"level":30,"msg":"http_server_started","time":"2024-02-20T15:23:23.183Z","v":0}
{"name":"solid-stream-aggregator","hostname":"pop-os","pid":184242,"level":30,"msg":"http_server_started","time":"2024-02-20T15:23:32.886Z","v":0}
{"name":"solid-stream-aggregator","hostname":"pop-os","pid":185992,"level":30,"msg":"http_server_started","time":"2024-02-20T15:25:33.071Z","v":0}
{"name":"solid-stream-aggregator","hostname":"pop-os","pid":187825,"level":30,"msg":"http_server_started","time":"2024-02-20T15:28:03.292Z","v":0}
{"name":"solid-stream-aggregator","hostname":"pop-os","pid":189615,"level":30,"msg":"http_server_started","time":"2024-02-20T15:30:05.136Z","v":0}
{"name":"solid-stream-aggregator","hostname":"pop-os","pid":190945,"level":30,"msg":"http_server_started","time":"2024-02-20T15:31:43.029Z","v":0}
{"name":"solid-stream-aggregator","hostname":"pop-os","pid":193242,"level":30,"msg":"http_server_started","time":"2024-02-20T15:34:49.727Z","v":0}
{"name":"solid-stream-aggregator","hostname":"pop-os","pid":199555,"level":30,"msg":"http_server_started","time":"2024-02-20T15:43:28.443Z","v":0}
7 changes: 4 additions & 3 deletions logs/processLog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ interface TimeDiffData {
}

/**
*
* @param logFilePath
* @param outputCsvPath
* Process the log file and write the time differences to a CSV file.
* @param {string} logFilePath - The path to the log file.
* @param {string} outputCsvPath - The path to the output CSV file.
* @returns {void}
*/
function processLog(logFilePath: string, outputCsvPath: string): void {
const logs: LogEntry[] = [];
Expand Down
Loading
Loading