C#: Fix whitespaces

This commit is contained in:
Tom Hvitved
2018-11-07 08:52:38 +01:00
parent b38effd55b
commit 67e64f21d8
23 changed files with 78 additions and 80 deletions

View File

@@ -8,7 +8,7 @@ cat > "$BASEDIR/reformat.vim" <<"EOF"
:wq
EOF
find "$BASEDIR" \( -name "*.ql" -or -name "*.qll" -or -name "*.csv" \) -exec vim -u /dev/null -s reformat.vim {} \;
find "$BASEDIR" \( -name "*.ql" -or -name "*.qll" -or -name "*.csv" -or -name "*.config" \) -exec vim -u /dev/null -s reformat.vim {} \;
cat > reformat.vim <<"EOF"
:set ff=unix ts=4 et

View File

@@ -6,36 +6,35 @@
<appSettings>
<add key="service-dir" value="/opt/deki/bin" />
<add key="root-uri" value="http://localhost/@api" />
<add key="root-uri" value="http://localhost/@api" />
<add key="apikey" value="12345" />
<add key="script" value="/opt/deki/bin/mindtouch.deki.startup.xml" />
</appSettings>
<connectionStrings>
<add name="connectionstring" providerName="System.Data.SqlClient"
connectionString="Server=(local);Database=admtest;Trusted_Connection=False;uid=sa;pwd= ;" /> <!-- VIOLATION -->
<add name="connectionstring2" providerName="System.Data.SqlClient"
connectionString="Server=(local);Database=admtest;Trusted_Connection=False;uid=sa;password = whatever;" /> <!-- NON-VIOLATION -->
</connectionStrings>
<add name="connectionstring" providerName="System.Data.SqlClient"
connectionString="Server=(local);Database=admtest;Trusted_Connection=False;uid=sa;pwd= ;" /> <!-- VIOLATION -->
<add name="connectionstring2" providerName="System.Data.SqlClient"
connectionString="Server=(local);Database=admtest;Trusted_Connection=False;uid=sa;password = whatever;" /> <!-- NON-VIOLATION -->
</connectionStrings>
<system.web>
<httpHandlers>
<add verb="*" path="*"
type="MindTouch.Dream.Http.HttpHandler, mindtouch.core"/>
</httpHandlers>
<!--<customErrors mode="Off"/>-->
<authentication mode="Windows|Forms|Passport|None">
<forms name="name"
loginUrl="url"
protection="All|None|Encryption|Validation"
timeout="30" path="/" >
<credentials passwordFormat="Clear|SHA1|MD5">
<user name="username" password="" /> <!-- VIOLATION -->
</credentials>
</forms>
<passport redirectUrl="internal"/>
</authentication>
<!--<customErrors mode="Off"/>-->
<authentication mode="Windows|Forms|Passport|None">
<forms name="name"
loginUrl="url"
protection="All|None|Encryption|Validation"
timeout="30" path="/" >
<credentials passwordFormat="Clear|SHA1|MD5">
<user name="username" password="" /> <!-- VIOLATION -->
</credentials>
</forms>
<passport redirectUrl="internal"/>
</authentication>
</system.web>
<system.net>

View File

@@ -6,36 +6,35 @@
<appSettings>
<add key="service-dir" value="/opt/deki/bin" />
<add key="root-uri" value="http://localhost/@api" />
<add key="root-uri" value="http://localhost/@api" />
<add key="apikey" value="12345" />
<add key="script" value="/opt/deki/bin/mindtouch.deki.startup.xml" />
</appSettings>
<connectionStrings>
<add name="connectionstring" providerName="System.Data.SqlClient"
connectionString="Server=(local);Database=admtest;Trusted_Connection=False;uid=sa;pwd=whatever;" /> <!-- VIOLATION -->
<add name="connectionstring2" providerName="System.Data.SqlClient"
connectionString="Server=(local);Database=admtest;Trusted_Connection=False;uid=sa;password = whatever;" /> <!-- VIOLATION -->
</connectionStrings>
<add name="connectionstring" providerName="System.Data.SqlClient"
connectionString="Server=(local);Database=admtest;Trusted_Connection=False;uid=sa;pwd=whatever;" /> <!-- VIOLATION -->
<add name="connectionstring2" providerName="System.Data.SqlClient"
connectionString="Server=(local);Database=admtest;Trusted_Connection=False;uid=sa;password = whatever;" /> <!-- VIOLATION -->
</connectionStrings>
<system.web>
<httpHandlers>
<add verb="*" path="*"
type="MindTouch.Dream.Http.HttpHandler, mindtouch.core"/>
</httpHandlers>
<!--<customErrors mode="Off"/>-->
<authentication mode="Windows|Forms|Passport|None">
<forms name="name"
loginUrl="url"
protection="All|None|Encryption|Validation"
timeout="30" path="/" >
<credentials passwordFormat="Clear|SHA1|MD5">
<user name="username" password="password" /> <!-- VIOLATION -->
</credentials>
</forms>
<passport redirectUrl="internal"/>
</authentication>
<!--<customErrors mode="Off"/>-->
<authentication mode="Windows|Forms|Passport|None">
<forms name="name"
loginUrl="url"
protection="All|None|Encryption|Validation"
timeout="30" path="/" >
<credentials passwordFormat="Clear|SHA1|MD5">
<user name="username" password="password" /> <!-- VIOLATION -->
</credentials>
</forms>
<passport redirectUrl="internal"/>
</authentication>
</system.web>
<system.net>