Skip to content

Commit 45e1461

Browse files
authored
Merge pull request #577 from clearlydefined/master
merge master into prod in prep for v1.1.0 release
2 parents f408fd2 + 779ab81 commit 45e1461

File tree

111 files changed

+2036
-1051
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+2036
-1051
lines changed

.eslintrc.json

Lines changed: 0 additions & 18 deletions
This file was deleted.

.prettierrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

.prettierrc.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"arrowParens": "avoid",
3+
"printWidth": 120,
4+
"singleQuote": true,
5+
"semi": false,
6+
"trailingComma": "none"
7+
}

.vscode/extensions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["esbenp.prettier-vscode", "dbaeumer.vscode-eslint"]
3+
}

.vscode/settings.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
// Place your settings in this file to overwrite default and user settings.
22
{
3-
"jshint.options": {
4-
"esnext": true
5-
},
63
"editor.folding": false,
74
"editor.tabSize": 2,
5+
"editor.defaultFormatter": "esbenp.prettier-vscode",
86
"editor.detectIndentation": false,
97
"editor.formatOnSave": false,
108
"editor.formatOnType": true,

CODE_OF_CONDUCT.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@ In the interest of fostering an open and welcoming environment, we as contributo
88

99
Examples of behavior that contributes to creating a positive environment include:
1010

11-
* Using welcoming and inclusive language
12-
* Being respectful of differing viewpoints and experiences
13-
* Gracefully accepting constructive criticism
14-
* Focusing on what is best for the community
15-
* Showing empathy towards other community members
11+
- Using welcoming and inclusive language
12+
- Being respectful of differing viewpoints and experiences
13+
- Gracefully accepting constructive criticism
14+
- Focusing on what is best for the community
15+
- Showing empathy towards other community members
1616

1717
Examples of unacceptable behavior by participants include:
1818

19-
* The use of sexualized language or imagery and unwelcome sexual attention or advances
20-
* Trolling, insulting/derogatory comments, and personal or political attacks
21-
* Public or private harassment
22-
* Publishing others' private information, such as a physical or electronic address, without explicit permission
23-
* Other conduct which could reasonably be considered inappropriate in a professional setting
19+
- The use of sexualized language or imagery and unwelcome sexual attention or advances
20+
- Trolling, insulting/derogatory comments, and personal or political attacks
21+
- Public or private harassment
22+
- Publishing others' private information, such as a physical or electronic address, without explicit permission
23+
- Other conduct which could reasonably be considered inappropriate in a professional setting
2424

2525
## Our Responsibilities
2626

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The ClearlyDefined project welcomes your suggestions and contributions! Before o
55

66
## Contribution Licensing
77

8-
Most of our code is distributed under the terms of the [MIT license](LICENSE), and when you contribute code that you wrote to our repositories,
8+
Most of our code is distributed under the terms of the [MIT license](LICENSE), and when you contribute code that you wrote to our repositories,
99
you agree that you are contributing under those same terms. In addition, by submitting your contributions you are indicating that
1010
you have the right to submit those contributions under those terms.
1111

DevDockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ RUN gem install nokogiri:1.12.5 --no-document && \
3838

3939
# REUSE
4040
RUN pip3 install setuptools
41-
RUN pip3 install reuse
41+
RUN pip3 install reuse==3.0.1
4242

4343
RUN git config --global --add safe.directory '*'
4444

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ RUN gem install nokogiri:1.12.5 --no-document && \
4444

4545
# REUSE
4646
RUN pip3 install setuptools
47-
RUN pip3 install reuse
47+
RUN pip3 install reuse==3.0.1
4848

4949
# FOSSology
5050
# WORKDIR /opt

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,16 +81,20 @@ Process the source, if any:
8181
The crawler's output is stored for use by the rest of the ClearlyDefined infrastructure -- it is not intended to be used directly by humans. Note that each tool's output is stored separately and the results of processing the component and the component source are also separated.
8282

8383
### <a id="more-on-type"></a>More on `type`
84+
8485
The `type` in the request object typically corresponds to an internal processor in CD.
85-
1. `component` is the most generic type. Internally, it is converted to a `package` or `source` request by the component processor.
86-
2. `package` request is processed by the package processor and is further converted to a request with a specific type (`crate`, `deb`, `gem`, `go`, `maven`, `npm`, `nuget`, `composer`, `pod`, `pypi`). For a `package` typed request, if the mentioned specific binary package type is known, the specific type (e.g. `npm`) can be used (instead of `package`) in the harvest request and skip the conversion step. For example,
86+
87+
1. `component` is the most generic type. Internally, it is converted to a `package` or `source` request by the component processor.
88+
2. `package` request is processed by the package processor and is further converted to a request with a specific type (`crate`, `deb`, `gem`, `go`, `maven`, `npm`, `nuget`, `composer`, `pod`, `pypi`). For a `package` typed request, if the mentioned specific binary package type is known, the specific type (e.g. `npm`) can be used (instead of `package`) in the harvest request and skip the conversion step. For example,
89+
8790
```json
8891
{
8992
"type": "npm",
9093
"url": "cd:/npm/npmjs/-/redie/0.3.0"
9194
}
9295
```
93-
3. `source` requests are processed by the source processor, which subsequently dispatches a `clearlydefined` typed request for the supported source types and other requests (one for each scanning tool). These are the more advanced scenarios where the request type and the coordinate type differ.
96+
97+
3. `source` requests are processed by the source processor, which subsequently dispatches a `clearlydefined` typed request for the supported source types and other requests (one for each scanning tool). These are the more advanced scenarios where the request type and the coordinate type differ.
9498

9599
# Configuration
96100

@@ -238,7 +242,8 @@ Make sure you started the container with the 5000 port forwarded for this to wor
238242
-X POST \
239243
http://crawler:5000/requests
240244

241-
On windows:
245+
On Windows:
246+
242247
curl -d "{\"type\":\"npm\", \"url\":\"cd:/npm/npmjs/-/redie/0.3.0\"}" -H "Content-Type: application/json" -H "X-token: secret" -X POST http://localhost:5000/requests
243248

244249
Expose dashboard port:

0 commit comments

Comments
 (0)