Research: package.json and Gemfile information extaction
package.json
Language: JSON
Parsing Method: Python's json module
Relevant Issues: Not any existing issue regarding this, to be created once the ideas are agreed upon.
Information of interest to coala
- We can extract the dependencies matching to the
NPMRequirements
of bears incoala-bears
. - Version details of the dependencies.
- As the project is already using these packages, it'd be then a good idea to suggest the corresponding bear based on this info.
- Also, we can use the license field information in
package.json
for ourLicenseCheckBear
- The
files
field can be used as information for file paths to include in analysis. - The
man
field can be used to analyze if the relative paths specified in the field actually exist or not. - The installed packages info might also be of interest to "cib"
Gemfile
Language: Ruby
Parsing Mehod: Regex may be preferred because the use-case is easy and there are no maintained and reliable libraries that parse ruby or Gemfile
Information of interest to coala
- Similar to
package.json
, we can extract the dependencies matching to theGemequirements
of bears incoala-bears
, their version details, and then suggest bears based on this info. - The installed packages info might also be of interest to "cib"
Sub-issue of https://gitlab.com/coala/GSoC-2017/issues/21
Edited by Satwik Kansal