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

SEC-1493 Added the ability to group linters via linter packs. #111

Merged
merged 3 commits into from
Jul 13, 2021

Conversation

sarahc23
Copy link

@sarahc23 sarahc23 commented Jun 28, 2021

Completely changed VALIDATE_* logic:

  • Removed the 'if there's a single true, default to false and vice versa' logic. Instead, all languages/linters will default to false.
  • Introduced the ability to add named packs of linters, to turn on groups of linters at a time.
  • A single linter/language can appear in multiple linter packs. It will run if any of the linter packs are marked true, EXCEPT...
  • If there is an explicit VALIDATE_<language> flag for that specific linter, that will override all linter pack settings.

@sarahc23 sarahc23 force-pushed the SEC-1493-linter-packs branch from 6e7bb9f to 2a0bcc9 Compare June 28, 2021 14:55
@sarahc23
Copy link
Author

Ah doh, I should update the README as well, huh...

@sarahc23 sarahc23 force-pushed the SEC-1493-linter-packs branch from c3b5cad to 8545696 Compare June 30, 2021 12:35
@sarahc23 sarahc23 force-pushed the SEC-1493-linter-packs branch from 8545696 to c161a2a Compare June 30, 2021 12:38
# Build the RUN_*_TOOLS variable
RUN_LINTER_PACK="RUN_${PACK}"

for LANGUAGE in "${!LINTERS}"; do
Copy link
Author

Choose a reason for hiding this comment

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

Or should I call it LANGUAGE_PACKS to be consistent with their existing use of LANGUAGE (although it'd be more confusing to an end user -- e.g., what the hell's a 'security language pack'?).

Choose a reason for hiding this comment

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

Yes I just feel let's keep it LANGUAGE what they have used just to maintain uniformity.

@sarahc23 sarahc23 merged commit a7a2a4f into master Jul 13, 2021
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.

3 participants