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

Add lint as the first class, separate target to CMake #952

Merged
merged 1 commit into from
Jun 11, 2019
Merged

Add lint as the first class, separate target to CMake #952

merged 1 commit into from
Jun 11, 2019

Conversation

JanuszL
Copy link
Contributor

@JanuszL JanuszL commented Jun 7, 2019

  • adds separate build step with lint
  • removes lint test

Signed-off-by: Janusz Lisiecki jlisiecki@nvidia.com

@JanuszL JanuszL requested review from klecki and mzient June 7, 2019 15:51
@dali-automaton
Copy link
Collaborator

CI MESSAGE: [773772]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [773772]: BUILD FAILED

cmake/lint.cmake Outdated
add_custom_target(${LINT_FILENAME}
DEPENDS ${LINT_STAMP_PATH})
add_dependencies(lint ${LINT_FILENAME})
endforeach(LINT_FILE)
Copy link
Contributor

Choose a reason for hiding this comment

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

You could wrap this in function that takes the list of files, root and additional arguments to lint (linelenght).
And just call it twice.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Contributor

@klecki klecki left a comment

Choose a reason for hiding this comment

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

Please refactor the common code.
I also wonder how much time do we save when we do not run the whole lint (probably in parallel), vs checking all the dependencies.

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [773913]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [773913]: BUILD FAILED

- adds separate build step with lint
- removes lint test

Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
@dali-automaton
Copy link
Collaborator

CI MESSAGE: [774213]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [774213]: BUILD FAILED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [774701]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [774701]: BUILD FAILED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [774701]: BUILD PASSED

@JanuszL JanuszL merged commit 5d986f9 into NVIDIA:master Jun 11, 2019
@JanuszL JanuszL deleted the lint_target branch June 11, 2019 11:44
haoxintong pushed a commit to haoxintong/DALI that referenced this pull request Jul 16, 2019
- adds separate build step with lint
- removes lint test

Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
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.

4 participants