Comments (4)
I say we go with Google's style guide for now, and if for some reason there's a disagreement with the guide we can revisit the discussion then. It will provide a clear answer for how to style things, and we can potentially validate against it for consistency.
That said, the only thing that's important to me is to be consistent, and to as much as possible follow industry best practices on formatting.
from gsd-tools.
The Google guide makes some good general points, but in some parts is very google specific.
For example the section "Top-Level Reserved Property Names".
Regarding the casing of the keys, I would say it doesn't matter just pick one and stay with it.
Preferable is the decisions which requires the least changes to make it consistent.
Here is a list of all keys from GSD, so the norm is to use snake case
keys.txt
.
'.GSD.affected'
'.GSD.affected_component'
'.GSD.affects.ranges'
'.GSD.alias'
'.GSD.attack_vector'
'.GSD.credit'
'.GSD.data_format'
'.GSD.data_type'
'.GSD.data_version'
'.GSD.description'
'.GSD.details'
'.GSD.duplicate'
'.GSD.extended_references'
'.GSD.id'
'.GSD.impact'
'.GSD.impact.cvss.attackComplexity'
'.GSD.impact.cvss.attackVector'
'.GSD.impact.cvss.availabilityImpact'
'.GSD.impact.cvss.baseScore'
'.GSD.impact.cvss.baseSeverity'
'.GSD.impact.cvss.confidentialityImpact'
'.GSD.impact.cvss.exploitCodeMaturity'
'.GSD.impact.cvss.integrityImpact'
'.GSD.impact.cvss.privilegesRequired'
'.GSD.impact.cvss.remediationLevel
'.GSD.impact.cvss.reportConfidence'
'.GSD.impact.cvss.scope'
'.GSD.impact.cvss.temporalScore'
'.GSD.impact.cvss.temporalSeverity'
'.GSD.impact.cvss.userInteraction'
'.GSD.impact.cvss.vectorString'
'.GSD.impact.cvss.version'
'.GSD.modified'
'.GSD.notes'
'.GSD.product_name'
'.GSD.product_version'
'.GSD.published'
'.GSD.references'
'.GSD.reporter'
'.GSD.reporter_id'
'.GSD.summary'
'.GSD.vendor_name'
'.GSD.vulnerability_type'
'.GSD.withdrawn'
from gsd-tools.
I agree that the important thing is consistency. I'd be fine using either snake_case or camelCase, as I use both frequently between Ruby and JavaScript respectively.
With the style guide, if there's a community sourced guide similar to the Ruby Style Guide, that would be preferable. I don't know of any currently, and the Google style guide was handily available (and I think is what OSV follows).
from gsd-tools.
@kurtseifried, let's use Google's style guide as discussed, and if someone wants us to switch to something else, we can explore it further.
from gsd-tools.
Related Issues (20)
- Update Edit Button to disable submission while already processing API requests
- Replicate the requests form for the Create GSD Form in GSD Web HOT 1
- Reach out to the OpenSSF community on participating with GSD
- Reach out to Ruby Advisory Database community about participation with GSD
- API Endpoint to request/reserve a GSD ID HOT 1
- Update gsd-web to use jsonschema validator HOT 2
- Update gsd-schema with kurtseifried/gsd-schema changes
- Link in https://github.com/cloudsecurityalliance/gsd-tools/blob/main/securitylist/README.md goes to 404 HOT 1
- schema.gsd.id Cloudflare Worker for schema $refs HOT 7
- Fix GSD Bot creating multiple affected packages instead of using multiple ranges
- Update GSD Bot to use INTRODUCED/FIX for reference types HOT 2
- Add tooltips for data.gsd.id add reference type
- Add text box for commit message when editing on data.gsd.id
- Update GSD Web to update modified at when changing a GSD
- Update Edit Button to support all OSV fields HOT 3
- GSD data normalization and format cross-compatibility/conversion
- Vulnerability Data Source Landscape HOT 1
- Update data.gsd.id show page to include all OSV values
- Create an OpenAPI v3.1 Spec for GSD API
- Create Python Interface for GSD HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gsd-tools.