Skip to content

Commit

Permalink
Updated codacy code review and doc
Browse files Browse the repository at this point in the history
  • Loading branch information
andresWeitzel committed Jul 23, 2023
1 parent 5263177 commit 4c6b20e
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 8 deletions.
9 changes: 9 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
*.js linguist-detectable=true
*.ts linguist-detectable=true
*.py linguist-detectable=true
*.sql linguist-detectable=true

*.js linguist-language=javascript
*.ts linguist-language=typescript
*.py linguist-language=python
*.sql linguist-language=sql
7 changes: 7 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
//https://stackoverflow.com/questions/27441803/why-does-jshint-throw-a-warning-if-i-am-using-const
//https://github.com/dense-analysis/ale/issues/2354
"esversion": 6,
//https://stackoverflow.com/questions/15894193/disabling-warning-about-require-function-in-jshint
"node": true
}
Binary file modified doc/assets/CRUD_Bucket_s3.drawio.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions src/helpers/validator/http/requestBodyAddObjectParams.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ const validateBodyAddObjectParams = async (eventBody) => {
if (eventBody != null) {
eventBodyObj = {
data: {
type: await eventBody["type"],
format: await eventBody["format"],
description: await eventBody["description"],
url: await eventBody["url"],
type: await eventBody.type,
format: await eventBody.format,
description: await eventBody.description,
url: await eventBody.url,
},
};

Expand Down
8 changes: 4 additions & 4 deletions src/helpers/validator/http/requestBodyUpdateObjectParams.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ const validateBodyUpdateObjectParams = async (eventBody) => {
if (eventBody != null) {
eventBodyObj = {
data: {
type: await eventBody["type"],
format: await eventBody["format"],
description: await eventBody["description"],
url: await eventBody["url"],
type: await eventBody.type,
format: await eventBody.format,
description: await eventBody.description,
url: await eventBody.url,
},
};

Expand Down

0 comments on commit 4c6b20e

Please sign in to comment.