Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add cpplint #74

Merged
merged 2 commits into from
Oct 6, 2023
Merged

ci: add cpplint #74

merged 2 commits into from
Oct 6, 2023

Conversation

Insun35
Copy link
Contributor

@Insun35 Insun35 commented Oct 5, 2023

Description

This PR adds cpplint to ci to follow the Google style guide and catch minor mistakes.
This linter filters files in the tachyon/base and tachyon/device locations.

For future contributions, it is recommended to install cpplint locally.
See https://github.com/cpplint/cpplint

Disabled feature:

  • legal/copyright
  • whitespace/line_length
  • build/namespaces
  • runtime/references

I've also made many trivial fixes throughout the library to pass this linter.
Most of the fixes are of the following types:

  • Include required headers
  • Fix invalid header guard name

@Insun35 Insun35 mentioned this pull request Oct 5, 2023
@chokobole chokobole changed the title ci/add cpplint ci: add cpplint Oct 5, 2023
benchmark/ec/simple_ec_benchmark_reporter.h Outdated Show resolved Hide resolved
tachyon/math/elliptic_curves/msm/variable_base_msm.h Outdated Show resolved Hide resolved
tachyon/math/elliptic_curves/msm/variable_base_msm_gpu.h Outdated Show resolved Hide resolved
tachyon/math/finite_fields/generator/generator_util.cc Outdated Show resolved Hide resolved
tachyon/math/geometry/point2.h Show resolved Hide resolved
tachyon/math/matrix/sparse/sparse_matrix.h Outdated Show resolved Hide resolved
tachyon/math/matrix/sparse/sparse_matrix.h Outdated Show resolved Hide resolved
@Insun35 Insun35 force-pushed the ci/add-cpplint branch 4 times, most recently from d6d82fb to e3673eb Compare October 6, 2023 01:53
benchmark/msm/msm_runner.h Outdated Show resolved Hide resolved
tachyon/math/elliptic_curves/msm/algorithms/cuzk/cuzk.h Outdated Show resolved Hide resolved
Copy link
Contributor

@chokobole chokobole left a comment

Choose a reason for hiding this comment

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

LGTM

@Insun35 Insun35 merged commit bd1e1d8 into main Oct 6, 2023
3 checks passed
@Insun35 Insun35 deleted the ci/add-cpplint branch October 6, 2023 08:02
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.

2 participants