Skip to content

Commit

Permalink
misc cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mschuchard committed Sep 29, 2024
1 parent 3ee9722 commit 4b96e4a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:

jobs:
lint:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
container: node:14-alpine
steps:
- name: checkout
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
### 1.6.3 (Next)
- Warn on automatic formatting errors returned for non-config Terraform files.
improve warn to only display non-config file issues?
improve warn to only trigger when all issues derive from only non-config files?
line/col parseint?

### 1.6.2
- Refactor auto formatting config options.
Expand Down
4 changes: 2 additions & 2 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export default {
if (!(/\.tf$/.exec(editorFile))) {
// catch format errors and display as pulsar warning
atom.notifications.addWarning(
'An error occurred during automatic formatting.',
'An error occurred during automatic formatting of a non-config file.',
{
detail: error.message,
dismissable: true
Expand All @@ -144,7 +144,7 @@ export default {
// parse json output
const info = JSON.parse(output);
// assign formatVersion for future use
const formatVersion = info.format_version;
// const formatVersion = info.format_version;

// command is reporting an issue
if (info.valid === false) {
Expand Down
1 change: 1 addition & 0 deletions spec/fixtures/bad_tfvars/test.tfvars
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
foo = "bar

0 comments on commit 4b96e4a

Please sign in to comment.