-
Notifications
You must be signed in to change notification settings - Fork 154
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
Limit Linter to Specific Files or Patterns #68
Comments
I think the appropriate thing to do here, for now. Is to allow a person to configure if the YAML completion is enabled or disabled. I'm trying to figure out a clever way to enable/disable as needed but it may be messy. |
It would be useful to exclude specific patterns as well. In my case, I use Serverless Framework to do deploys, and rely on this VSCode plugin + cfn-python-lint to do validation of the yml resources. This works reasonably well, except that the plugin tries to be smart and runs linting on the autogenerated .serverless/*.json files, which contains a json file that's not a CloudFormation template but seems to be picked as such. A simple way to ignore a path via e.g. plugin settings would be great for my use case. Thoughts? |
+1 |
Just ran into this issue today as well working with |
I ran into this today with it picking up my local I decided to simply disable format on paste for JSON files specifically, as this isn't the only formatter that's given me grief with files of that format. |
@dead-claudia as far as I'm aware, the |
@sgtoj the current version of the plugin will only validate against CloudFormation templates. It no longer overrides the settings of @dead-claudia I will look into it. You can set |
Looking into better logic on the formatting functionality now. Agreed let me see what it would look like to add some file pattern matching |
Can a setting be added to use cfn-lint extension to lint specific GLOB patterns? I would like to set
yaml.validate
VS Code setting toenable
for non-CloudFormation templates.The text was updated successfully, but these errors were encountered: