Skip to content

Create Coding Conventions page - #1422

Merged
celinval merged 7 commits into
model-checking:mainfrom
celinval:issue-1416-guidelines
Aug 8, 2022
Merged

celinval merged 7 commits into
model-checking:mainfrom
celinval:issue-1416-guidelines

Conversation

@celinval

Copy link
Copy Markdown
Contributor

Description of changes:

This commit creates a coding guidelines page. I used rustc coding conventions as a good model to follow.

Resolved issues:

Resolves #1416

Call-outs:

Testing:

  • How is this change tested? build docs script

  • Is this a refactor change? No

Checklist

  • Each commit message has a non-empty body, explaining why the change was made
  • Methods or procedures are documented
  • Regression or unit tests are included, or existing tests cover the modified code
  • My PR is restricted to a single feature or bugfix

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.

@celinval
celinval requested a review from a team as a code owner July 29, 2022 04:18
Comment thread docs/src/conventions.md Resolved
Comment thread docs/src/conventions.md Resolved
Comment thread docs/src/conventions.md Resolved
Comment thread docs/src/conventions.md Resolved
Comment thread docs/src/conventions.md Resolved
Comment thread docs/src/conventions.md Resolved
Comment thread docs/src/conventions.md Resolved
Comment thread rustfmt.toml
"tests/perf/s2n-quic",
"tools/bookrunner/rust-doc/nomicon",
"tools/bookrunner/rust-doc/reference",
"tools/bookrunner/rust-doc/rust-by-example"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this missing the unstable-book on purpose?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

no... I just ran git submodule status and for some reason it didn't get included. Now, that I am taking a look at it, it is not a submodule. Is there a reason why this is not a submodule?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No reason as far as I know.

Comment thread docs/src/conventions.md Resolved
Comment thread docs/src/conventions.md Resolved
Comment thread docs/src/conventions.md Resolved
Comment thread docs/src/conventions.md Resolved
Comment thread docs/src/conventions.md Resolved
Comment thread docs/src/conventions.md Resolved
Comment thread docs/src/conventions.md Resolved

@zhassan-aws zhassan-aws left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

A couple of initial comments. More comments to follow.

Comment thread docs/src/conventions.md Resolved
Comment thread docs/src/conventions.md Resolved
Comment thread docs/src/conventions.md Resolved
Comment thread docs/src/conventions.md Resolved
@YoshikiTakashima

YoshikiTakashima commented Aug 2, 2022 •

Copy link
Copy Markdown
Contributor

@celinval Should we be modifying ./scripts/ci/copyright_check.py? I believe it should be changed because it is currently rejecting. It only accepts them when this commend block is at the very top (modulo-shebang). // ... existing licensing headers ... is rejected.

 // ... existing licensing headers ...

 // Modifications Copyright Kani Contributors
 // See GitHub history for details.

@celinval

celinval commented Aug 2, 2022

Copy link
Copy Markdown
Contributor Author

@celinval Should we be modifying ./scripts/ci/copyright_check.py? I believe it should be changed because it is currently rejecting. It only accepts them when this commend block is at the very top (modulo-shebang). // ... existing licensing headers ... is rejected.

 // ... existing licensing headers ...

 // Modifications Copyright Kani Contributors
 // See GitHub history for details.

Is the script rejecting the space?

@zhassan-aws zhassan-aws left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks great! Thanks @celinval!

Comment thread docs/src/conventions.md Resolved
Comment thread docs/src/conventions.md Resolved
Comment thread docs/src/SUMMARY.md Resolved
Comment thread docs/src/conventions.md Resolved
Comment thread docs/src/conventions.md Resolved
Comment thread docs/src/conventions.md Resolved
@YoshikiTakashima

YoshikiTakashima commented Aug 3, 2022 •

Copy link
Copy Markdown
Contributor

@celinval No, the script is only trying to match at the top. #1447 should resolve the issue.

P.S. The new copyright script is merged.

YoshikiTakashima pushed a commit to YoshikiTakashima/kani that referenced this pull request Aug 3, 2022
YoshikiTakashima pushed a commit that referenced this pull request Aug 3, 2022
* Changed copyright check to the new standard PR 1422.

* Fixed debug print.

* Added doc comment.

* Changed to proper doc-comment

* reverted test cases

* Changed generator test cases to new format.

* Added check that above our license is empty or comments

* Fixed merge fail

* Escaped backslash.

* Allowed empty 2nd line pattern discussed in #1422

* Test case for maybe empty lines above.

* Changed from list to generator.
@celinval
celinval merged commit ef7639e into model-checking:main Aug 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create a Kani coding conventions page

7 participants