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

✨ Added ability to sort by files #130

Merged
merged 2 commits into from
Aug 9, 2018
Merged

Conversation

kirrg001
Copy link
Contributor

@kirrg001 kirrg001 commented Aug 8, 2018

refs #122

  • gscan.format accepts a new flag to return a different format
    • sort by errors & warnings files

This PR does not sort the passed rules by files, because we never push the reference and this is too much work now

@kirrg001 kirrg001 force-pushed the sort-by-files branch 5 times, most recently from 58cfddf to 9df3bae Compare August 9, 2018 12:47
@kirrg001 kirrg001 changed the title [WIP] ✨ Added ability to sort by files ✨ Added ability to sort by files Aug 9, 2018
@kirrg001 kirrg001 force-pushed the sort-by-files branch 2 times, most recently from b98afd3 to e96f066 Compare August 9, 2018 13:20
refs TryGhost#122

- `gscan.format` now accepts a new option to return a different format
  - sort by errors & warnings files (sortByFiles: true)
  - sort by rules by default
- it's currently hard to sort the passed rules, because no rule is pushed with the file reference
  - too much effort for no usage
no issue

- failures[..].ref is always the target file reference
- ensure consistency
@kirrg001 kirrg001 merged commit 437c99f into TryGhost:2.0 Aug 9, 2018
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.

1 participant