Skip to content

Terraform: How to only check comments? #1381

Answered by Jason3S
staranto asked this question in Q&A
Discussion options

You must be logged in to vote

Try adding the following to your project:

cspell.json

{
    "patterns": [
        {
            "name": "terraform.comment.single-line",
            "description": "Matches Terraform single-line comments",
            "pattern": "/(#|\\/\\/).*/g"
        },
        {
            "name": "terraform.comment",
            "description": "Matches Terraform comments",
            "pattern": ["CStyleComment", "terraform.comment.single-line"]
        }
    ],
    "languageSettings": [
        {
            "languageId": "terraform,tf",
            "includeRegExpList": ["terraform.comment"]
        }
    ],
    "overrides": [
        {
            "filename": ["*.tf", "*.tfvars"],
            "la…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@staranto
Comment options

@Jason3S
Comment options

Answer selected by Jason3S
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants