From 4b92c25a4b88f58b2c20f14683c5acadfad0fdc3 Mon Sep 17 00:00:00 2001 From: Marco Ferrari Date: Fri, 6 Nov 2020 23:18:48 +0100 Subject: [PATCH] Fix editorconfig-checker errors --- .automation/test/arm/arm_good_1.json | 2 +- .automation/test/clojure/clojure_good_1.clj | 8 +-- .../cloudformation/cloudformation_good_1.json | 66 +++++++++---------- .../cloudformation/cloudformation_good_3.json | 28 ++++---- .../coffeescript/coffeescript_good_1.coffee | 4 +- .automation/test/go/golang_good_01.go | 2 +- .automation/test/groovy/README.md | 2 +- .automation/test/groovy/groovy_good_01.groovy | 8 +-- .automation/test/html/html_good_01.html | 19 +++--- .automation/test/latex/README.md | 4 +- .automation/test/latex/latex_good_1.tex | 2 +- .automation/test/lua/README.md | 2 +- .automation/test/lua/lua_good_1.lua | 6 +- .../test/powershell/powershell_bad_1.ps1 | 1 - .../test/powershell/powershell_good_1.ps1 | 2 +- .../test/powershell/powershell_good_1.psd1 | 2 +- .../test/powershell/powershell_good_1.psm1 | 2 +- 17 files changed, 81 insertions(+), 79 deletions(-) diff --git a/.automation/test/arm/arm_good_1.json b/.automation/test/arm/arm_good_1.json index df09afb7..635144fa 100644 --- a/.automation/test/arm/arm_good_1.json +++ b/.automation/test/arm/arm_good_1.json @@ -50,4 +50,4 @@ "value": "[reference(resourceId('Microsoft.Network/virtualNetworks',variables('Network.Name')), '2019-12-01', 'Full')]" } } -} \ No newline at end of file +} diff --git a/.automation/test/clojure/clojure_good_1.clj b/.automation/test/clojure/clojure_good_1.clj index 391f4688..f10b9497 100644 --- a/.automation/test/clojure/clojure_good_1.clj +++ b/.automation/test/clojure/clojure_good_1.clj @@ -1,6 +1,6 @@ (ns foo (:require - [clojure.string :as str])) + [clojure.string :as str])) (butlast [1 2 3]) @@ -11,8 +11,8 @@ (y))) (letfn - [(f [g] (h g)) - (h [i] (f i))]) + [(f [g] (h g)) + (h [i] (f i))]) (defn foo [] 1) (inc (foo)) @@ -31,4 +31,4 @@ (ns bar-test (:require [clojure.test :as t])) (t/deftest my-tests - (t/is (odd? (inc 1)))) \ No newline at end of file + (t/is (odd? (inc 1)))) diff --git a/.automation/test/cloudformation/cloudformation_good_1.json b/.automation/test/cloudformation/cloudformation_good_1.json index dc944bca..d3ff11e2 100644 --- a/.automation/test/cloudformation/cloudformation_good_1.json +++ b/.automation/test/cloudformation/cloudformation_good_1.json @@ -1,35 +1,35 @@ { - "AWSTemplateFormatVersion": "2010-09-09", - "Description": "A sample template", - "Resources": { - "DNS": { - "Type": "AWS::Route53::HostedZone", - "Properties": { - "HostedZoneConfig": { - "Comment": "Myhostedzoneforexample.com" - }, - "Name": "example.com", - "VPCs": [ - { - "VPCId": "vpc-abcd1234", - "VPCRegion": "ap-northeast-1" - }, - { - "VPCId": "vpc-efgh5678", - "VPCRegion": "us-west-2" - } - ], - "HostedZoneTags": [ - { - "Key": "SampleKey1", - "Value": "SampleValue1" - }, - { - "Key": "SampleKey2", - "Value": "SampleValue2" - } - ] - } - } - } + "AWSTemplateFormatVersion": "2010-09-09", + "Description": "A sample template", + "Resources": { + "DNS": { + "Type": "AWS::Route53::HostedZone", + "Properties": { + "HostedZoneConfig": { + "Comment": "Myhostedzoneforexample.com" + }, + "Name": "example.com", + "VPCs": [ + { + "VPCId": "vpc-abcd1234", + "VPCRegion": "ap-northeast-1" + }, + { + "VPCId": "vpc-efgh5678", + "VPCRegion": "us-west-2" + } + ], + "HostedZoneTags": [ + { + "Key": "SampleKey1", + "Value": "SampleValue1" + }, + { + "Key": "SampleKey2", + "Value": "SampleValue2" + } + ] + } + } + } } diff --git a/.automation/test/cloudformation/cloudformation_good_3.json b/.automation/test/cloudformation/cloudformation_good_3.json index f8602d7a..e38194ce 100644 --- a/.automation/test/cloudformation/cloudformation_good_3.json +++ b/.automation/test/cloudformation/cloudformation_good_3.json @@ -1,16 +1,16 @@ { - "Resources" : { - "myDNSRecord" : { - "Type" : "AWS::Route53::RecordSet", - "Properties" : { - "HostedZoneId" : "Z8VLZEXAMPLE", - "Name" : "test.example.com", - "ResourceRecords" : [ - "192.0.2.99" - ], - "TTL" : 300, - "Type" : "A" - } - } - } + "Resources": { + "myDNSRecord": { + "Type": "AWS::Route53::RecordSet", + "Properties": { + "HostedZoneId": "Z8VLZEXAMPLE", + "Name": "test.example.com", + "ResourceRecords": [ + "192.0.2.99" + ], + "TTL": 300, + "Type": "A" + } + } + } } diff --git a/.automation/test/coffeescript/coffeescript_good_1.coffee b/.automation/test/coffeescript/coffeescript_good_1.coffee index 064f850e..388f28d7 100644 --- a/.automation/test/coffeescript/coffeescript_good_1.coffee +++ b/.automation/test/coffeescript/coffeescript_good_1.coffee @@ -62,8 +62,8 @@ module.exports = (robot) -> # Drop the hammer # ################### robot.respond /drop the hammer/i, (msg) -> - msg.send "Commencing the hammer dropping..." - msg.send msg.random dropHammer + msg.send "Commencing the hammer dropping..." + msg.send msg.random dropHammer ############### # Vape Nation # diff --git a/.automation/test/go/golang_good_01.go b/.automation/test/go/golang_good_01.go index c0481191..87595e3c 100644 --- a/.automation/test/go/golang_good_01.go +++ b/.automation/test/go/golang_good_01.go @@ -3,5 +3,5 @@ package main import "fmt" func main() { - fmt.Println("hello world") + fmt.Println("hello world") } diff --git a/.automation/test/groovy/README.md b/.automation/test/groovy/README.md index b08a3b4f..8dc5badf 100644 --- a/.automation/test/groovy/README.md +++ b/.automation/test/groovy/README.md @@ -1,5 +1,5 @@ # Groovy Test Cases -This folder holds the test cases for **Groovy**. +This folder holds the test cases for **Groovy**. ## Additional Docs No Additional information is needed for this test case. diff --git a/.automation/test/groovy/groovy_good_01.groovy b/.automation/test/groovy/groovy_good_01.groovy index d0375dab..90941461 100644 --- a/.automation/test/groovy/groovy_good_01.groovy +++ b/.automation/test/groovy/groovy_good_01.groovy @@ -1,6 +1,6 @@ class Example { - static void main(String[] args) { - File file = new File("E:/Example.txt") - println "The file ${file.absolutePath} has ${file.length()} bytes" - } + static void main(String[] args) { + File file = new File("E:/Example.txt") + println "The file ${file.absolutePath} has ${file.length()} bytes" + } } diff --git a/.automation/test/html/html_good_01.html b/.automation/test/html/html_good_01.html index 1b10ca4e..d3a039bf 100644 --- a/.automation/test/html/html_good_01.html +++ b/.automation/test/html/html_good_01.html @@ -1,10 +1,13 @@ - - - Document - - - Good HTML! - - \ No newline at end of file + + + + Document + + + + Good HTML! + + + diff --git a/.automation/test/latex/README.md b/.automation/test/latex/README.md index d3369dcd..c48b1437 100644 --- a/.automation/test/latex/README.md +++ b/.automation/test/latex/README.md @@ -1,5 +1,5 @@ # LaTeX Test Cases -This folder holds the test cases for **LaTeX**. +This folder holds the test cases for **LaTeX**. ## Additional Docs No Additional information is needed for this test case. @@ -10,4 +10,4 @@ The test cases denoted: `LANGUAGE_good_FILE.EXTENSION` are all valid, and should ## Bad Test Cases The test cases denoted: `LANGUAGE_bad_FILE.EXTENSION` are **NOT** valid, and should trigger errors when linted. -- **Note:** They are linted utilizing the default linter rules. \ No newline at end of file +- **Note:** They are linted utilizing the default linter rules. diff --git a/.automation/test/latex/latex_good_1.tex b/.automation/test/latex/latex_good_1.tex index a34c6f7a..5b7de792 100644 --- a/.automation/test/latex/latex_good_1.tex +++ b/.automation/test/latex/latex_good_1.tex @@ -115,7 +115,7 @@ Is this an `example', or is it an `example'. %Indexing text \index{text} is fun! Indexing text\index{text} is fun! Indexing text% - \index{text} is fun! + \index{text} is fun! %Indexing text % \index{text} is fun! diff --git a/.automation/test/lua/README.md b/.automation/test/lua/README.md index db695378..01aef10a 100644 --- a/.automation/test/lua/README.md +++ b/.automation/test/lua/README.md @@ -10,4 +10,4 @@ The test cases denoted: `LANGUAGE_good_FILE.EXTENSION` are all valid, and should ## Bad Test Cases The test cases denoted: `LANGUAGE_bad_FILE.EXTENSION` are **NOT** valid, and should trigger errors when linted. -- **Note:** They are linted utilizing the default linter rules. \ No newline at end of file +- **Note:** They are linted utilizing the default linter rules. diff --git a/.automation/test/lua/lua_good_1.lua b/.automation/test/lua/lua_good_1.lua index f7ade80b..4826fc02 100644 --- a/.automation/test/lua/lua_good_1.lua +++ b/.automation/test/lua/lua_good_1.lua @@ -1,12 +1,12 @@ local embracer = {} local function helper() - -- NYI wontfix + -- NYI wontfix end function embracer.embrace(opt) - opt = opt or "default" - return helper(opt.."?") + opt = opt or "default" + return helper(opt.."?") end return embracer diff --git a/.automation/test/powershell/powershell_bad_1.ps1 b/.automation/test/powershell/powershell_bad_1.ps1 index f1709a0a..12a9f272 100644 --- a/.automation/test/powershell/powershell_bad_1.ps1 +++ b/.automation/test/powershell/powershell_bad_1.ps1 @@ -11,4 +11,3 @@ function BadFunction { 'Empty Catch Block' } catch {} } - diff --git a/.automation/test/powershell/powershell_good_1.ps1 b/.automation/test/powershell/powershell_good_1.ps1 index d762886f..b427aaed 100644 --- a/.automation/test/powershell/powershell_good_1.ps1 +++ b/.automation/test/powershell/powershell_good_1.ps1 @@ -1 +1 @@ -Write-Output "hello world!" \ No newline at end of file +Write-Output "hello world!" diff --git a/.automation/test/powershell/powershell_good_1.psd1 b/.automation/test/powershell/powershell_good_1.psd1 index 68432ff9..1768688e 100644 --- a/.automation/test/powershell/powershell_good_1.psd1 +++ b/.automation/test/powershell/powershell_good_1.psd1 @@ -1,3 +1,3 @@ @{ 'Hello'='World' -} \ No newline at end of file +} diff --git a/.automation/test/powershell/powershell_good_1.psm1 b/.automation/test/powershell/powershell_good_1.psm1 index d762886f..b427aaed 100644 --- a/.automation/test/powershell/powershell_good_1.psm1 +++ b/.automation/test/powershell/powershell_good_1.psm1 @@ -1 +1 @@ -Write-Output "hello world!" \ No newline at end of file +Write-Output "hello world!"