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

Suggest fixits #16

Merged
merged 11 commits into from
Feb 7, 2022
Merged

Suggest fixits #16

merged 11 commits into from
Feb 7, 2022

Conversation

ZedThree
Copy link
Owner

@ZedThree ZedThree commented May 1, 2021

Closes #4

Uses the --export-fixes argument to read in a yaml file of fixes, which are more easily turned into github suggestions.

- use absolute paths in offset lookup dict
- fix off-by-one errors in converting offsets <=> line numbers
- use correct bit of dictionary
- add some debug output
@ZedThree
Copy link
Owner Author

ZedThree commented May 1, 2021

This works, but there's still some hard-to-use bits that need ironing out. If a line needs changing in multiple places, it currently comes out as separate suggestions:

image

which github won't let you apply in a single commit (easily).

So I need to work out how to squash them into a single suggestion

@ZedThree
Copy link
Owner Author

ZedThree commented May 4, 2021

Almost complete, now need to handle the "Notes" attributes, which can appear when expanding a macro for instance

* master:
  Add `config_file` and `cmake_command` to README
  Group some log messages
  Make sure compilers, cmake, make, etc are in the image
  Flush some info messages
  Strip enclosing quotes from passed arguments
  Less quoting in yaml
  Try using review.py directly as entrypoint
  Try more quoting of cmake-command
  Quote cmake-command
  Add `cmake_command` argument to run CMake as part of Action
  Add `config_file` argument to use `.clang-tidy` config file
  Add `--dry-run` argument for local testing
  Add clang-tidy-12 as an option
  Add some timing information
  #20 author revisions
  #20 - Fix path replace problem
  Update README.md
  Update Dockerfile, scripts to allow clang-tidy-11 from focal
* master:
  Add some instructions for how to set `base_dir` in README
  Fix trying to serialise pathlib.Path
  Strip quotes from cmake command before checking if it's empty
  Add `base_dir` argument to more accurately fix absolute paths
@ZedThree ZedThree merged commit 554b36c into master Feb 7, 2022
@ZedThree ZedThree deleted the suggest-fixits branch February 7, 2022 17:53
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.

Turn fixits into suggestions
1 participant