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 Dockerfile highlighting support #135

Merged
merged 5 commits into from
Aug 4, 2024

Conversation

kburton-dev
Copy link
Contributor

Based on keywords listed here: https://docs.docker.com/reference/dockerfile/#overview

With support for AS keyword when aliasing image names, and highlighting image names and tags:

image

{
public function getName(): string
{
return 'Dockerfile';
Copy link
Member

Choose a reason for hiding this comment

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

Should this be dockerfile? Maybe add docker as an alias as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I had the same thought as you regarding the alias. And ChatGPT would also describe it this way, so I think dockerfile and docker will be enough.

@brendt
Copy link
Member

brendt commented Aug 3, 2024

Let me know your thoughts about that one comment, otherwise I'm good merging it 👍

@coveralls
Copy link

coveralls commented Aug 3, 2024

Pull Request Test Coverage Report for Build 10227678571

Details

  • 11 of 40 (27.5%) changed or added relevant lines in 7 files are covered.
  • 12 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-2.3%) to 92.977%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/Languages/Dockerfile/Patterns/ImageAliasKeywordPattern.php 1 2 50.0%
src/Languages/Dockerfile/Patterns/ImageAliasNamePattern.php 1 2 50.0%
src/Languages/Dockerfile/Patterns/ImageNamePattern.php 1 2 50.0%
src/Languages/Dockerfile/Patterns/ImageTagPattern.php 1 2 50.0%
src/Languages/Dockerfile/Patterns/KeywordPattern.php 2 3 66.67%
src/Languages/Dockerfile/DockerfileLanguage.php 4 28 14.29%
Files with Coverage Reduction New Missed Lines %
src/Themes/InlineTheme.php 12 57.58%
Totals Coverage Status
Change from base Build 9266627087: -2.3%
Covered Lines: 1549
Relevant Lines: 1666

💛 - Coveralls

@brendt
Copy link
Member

brendt commented Aug 4, 2024

Cool, thanks!

@brendt brendt merged commit 415db5f into tempestphp:main Aug 4, 2024
4 checks passed
@brendt
Copy link
Member

brendt commented Aug 4, 2024

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