This repository has been archived by the owner on Jun 25, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added cleanupcode linting via commit hooks
- Loading branch information
1 parent
a5c71d1
commit 3403b01
Showing
11 changed files
with
2,703 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"hooks": { | ||
"pre-commit": "lint-staged" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"*.{cs,vb}": ["dotnet nuke lint --no-logo --lint-files", "git add"], | ||
"*.{js,ts,jsx,tsx,json,yml,yaml}": ["prettier --write", "git add"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"trailingComma": "es5", | ||
"tabWidth": 4, | ||
"semi": true, | ||
"singleQuote": true, | ||
"arrowParens": "avoid", | ||
"bracketSpacing": true, | ||
"printWidth": 120 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,195 @@ | ||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> | ||
<s:Boolean x:Key="/Default/CodeInspection/Highlighting/IncludeWarningsInSwea/@EntryValue">True</s:Boolean> | ||
<s:Boolean x:Key="/Default/CodeInspection/Roslyn/UseRoslynInSwea/@EntryValue">True</s:Boolean> | ||
<s:String x:Key="/Default/CodeStyle/CodeCleanup/Profiles/=Full_0020Cleanup/@EntryIndexedValue"><?xml version="1.0" encoding="utf-16"?><Profile name="Full Cleanup"><CSReorderTypeMembers>True</CSReorderTypeMembers><CSCodeStyleAttributes ArrangeTypeAccessModifier="True" ArrangeTypeMemberAccessModifier="True" SortModifiers="True" RemoveRedundantParentheses="True" AddMissingParentheses="True" ArrangeBraces="True" ArrangeAttributes="True" ArrangeArgumentsStyle="True" ArrangeCodeBodyStyle="True" ArrangeVarStyle="True" /><RemoveCodeRedundancies>True</RemoveCodeRedundancies><CSUseAutoProperty>True</CSUseAutoProperty><CSMakeFieldReadonly>True</CSMakeFieldReadonly><CSMakeAutoPropertyGetOnly>True</CSMakeAutoPropertyGetOnly><CSArrangeQualifiers>True</CSArrangeQualifiers><CSFixBuiltinTypeReferences>True</CSFixBuiltinTypeReferences><CSOptimizeUsings><OptimizeUsings>True</OptimizeUsings><EmbraceInRegion>False</EmbraceInRegion><RegionName></RegionName></CSOptimizeUsings><CSShortenReferences>True</CSShortenReferences><CSReformatCode>True</CSReformatCode><CSharpFormatDocComments>True</CSharpFormatDocComments><XAMLCollapseEmptyTags>False</XAMLCollapseEmptyTags><IDEA_SETTINGS>&lt;profile version="1.0"&gt;
 | ||
&lt;option name="myName" value="Full Cleanup" /&gt;
 | ||
&lt;inspection_tool class="ES6ShorthandObjectProperty" enabled="false" level="INFORMATION" enabled_by_default="false" /&gt;
 | ||
&lt;inspection_tool class="JSArrowFunctionBracesCanBeRemoved" enabled="false" level="INFORMATION" enabled_by_default="false" /&gt;
 | ||
&lt;inspection_tool class="JSPrimitiveTypeWrapperUsage" enabled="false" level="WARNING" enabled_by_default="false" /&gt;
 | ||
&lt;inspection_tool class="JSRemoveUnnecessaryParentheses" enabled="false" level="INFORMATION" enabled_by_default="false" /&gt;
 | ||
&lt;inspection_tool class="JSUnnecessarySemicolon" enabled="false" level="WARNING" enabled_by_default="false" /&gt;
 | ||
&lt;inspection_tool class="TypescriptExplicitMemberType" enabled="false" level="INFORMATION" enabled_by_default="false" /&gt;
 | ||
&lt;inspection_tool class="UnnecessaryContinueJS" enabled="false" level="WARNING" enabled_by_default="false" /&gt;
 | ||
&lt;inspection_tool class="UnnecessaryLabelJS" enabled="false" level="WARNING" enabled_by_default="false" /&gt;
 | ||
&lt;inspection_tool class="UnnecessaryLabelOnBreakStatementJS" enabled="false" level="WARNING" enabled_by_default="false" /&gt;
 | ||
&lt;inspection_tool class="UnnecessaryLabelOnContinueStatementJS" enabled="false" level="WARNING" enabled_by_default="false" /&gt;
 | ||
&lt;inspection_tool class="UnnecessaryReturnJS" enabled="false" level="WARNING" enabled_by_default="false" /&gt;
 | ||
&lt;inspection_tool class="UnterminatedStatementJS" enabled="false" level="WARNING" enabled_by_default="false" /&gt;
 | ||
&lt;inspection_tool class="WrongPropertyKeyValueDelimiter" enabled="false" level="WEAK WARNING" enabled_by_default="false" /&gt;
 | ||
&lt;/profile&gt;</IDEA_SETTINGS></Profile></s:String> | ||
<s:String x:Key="/Default/CodeStyle/CodeCleanup/SilentCleanupProfile/@EntryValue">Full Cleanup</s:String> | ||
<s:String x:Key="/Default/CodeStyle/CSharpFileLayoutPatterns/Pattern/@EntryValue"><?xml version="1.0" encoding="utf-16"?>
 | ||
<Patterns xmlns="urn:schemas-jetbrains-com:member-reordering-patterns">
 | ||
<TypePattern DisplayName="Non-reorderable types">
 | ||
<TypePattern.Match>
 | ||
<Or>
 | ||
<And>
 | ||
<Kind Is="Interface" />
 | ||
<Or>
 | ||
<HasAttribute Name="System.Runtime.InteropServices.InterfaceTypeAttribute" />
 | ||
<HasAttribute Name="System.Runtime.InteropServices.ComImport" />
 | ||
</Or>
 | ||
</And>
 | ||
<Kind Is="Struct" />
 | ||
<HasAttribute Name="JetBrains.Annotations.NoReorderAttribute" />
 | ||
<HasAttribute Name="JetBrains.Annotations.NoReorder" />
 | ||
</Or>
 | ||
</TypePattern.Match>
 | ||
</TypePattern>
 | ||
<TypePattern DisplayName="xUnit.net Test Classes" RemoveRegions="All">
 | ||
<TypePattern.Match>
 | ||
<And>
 | ||
<Kind Is="Class" />
 | ||
<HasMember>
 | ||
<And>
 | ||
<Kind Is="Method" />
 | ||
<HasAttribute Name="Xunit.FactAttribute" Inherited="True" />
 | ||
</And>
 | ||
</HasMember>
 | ||
</And>
 | ||
</TypePattern.Match>
 | ||
<Entry Priority="100" DisplayName="Test Methods">
 | ||
<Entry.Match>
 | ||
<And>
 | ||
<Kind Is="Method" />
 | ||
<HasAttribute Name="Xunit.FactAttribute" />
 | ||
</And>
 | ||
</Entry.Match>
 | ||
</Entry>
 | ||
<Entry DisplayName="Setup/Teardown Methods">
 | ||
<Entry.Match>
 | ||
<Or>
 | ||
<Kind Is="Constructor" />
 | ||
<And>
 | ||
<Kind Is="Method" />
 | ||
<ImplementsInterface Name="System.IDisposable" />
 | ||
</And>
 | ||
</Or>
 | ||
</Entry.Match>
 | ||
<Entry.SortBy>
 | ||
<Kind Order="Constructor" />
 | ||
</Entry.SortBy>
 | ||
</Entry>
 | ||
<Entry DisplayName="All other members" />
 | ||
</TypePattern>
 | ||
<TypePattern DisplayName="NUnit Test Fixtures" RemoveRegions="All">
 | ||
<TypePattern.Match>
 | ||
<And>
 | ||
<Kind Is="Class" />
 | ||
<HasAttribute Name="NUnit.Framework.TestFixtureAttribute" Inherited="True" />
 | ||
</And>
 | ||
</TypePattern.Match>
 | ||
<Entry DisplayName="Setup/Teardown Methods">
 | ||
<Entry.Match>
 | ||
<And>
 | ||
<Kind Is="Method" />
 | ||
<Or>
 | ||
<HasAttribute Name="NUnit.Framework.SetUpAttribute" Inherited="True" />
 | ||
<HasAttribute Name="NUnit.Framework.TearDownAttribute" Inherited="True" />
 | ||
<HasAttribute Name="NUnit.Framework.FixtureSetUpAttribute" Inherited="True" />
 | ||
<HasAttribute Name="NUnit.Framework.FixtureTearDownAttribute" Inherited="True" />
 | ||
</Or>
 | ||
</And>
 | ||
</Entry.Match>
 | ||
</Entry>
 | ||
<Entry DisplayName="All other members" />
 | ||
<Entry Priority="100" DisplayName="Test Methods">
 | ||
<Entry.Match>
 | ||
<And>
 | ||
<Kind Is="Method" />
 | ||
<HasAttribute Name="NUnit.Framework.TestAttribute" />
 | ||
</And>
 | ||
</Entry.Match>
 | ||
<Entry.SortBy>
 | ||
<Name />
 | ||
</Entry.SortBy>
 | ||
</Entry>
 | ||
</TypePattern>
 | ||
<TypePattern DisplayName="Default Pattern">
 | ||
<Entry Priority="100" DisplayName="Public Delegates">
 | ||
<Entry.Match>
 | ||
<And>
 | ||
<Access Is="Public" />
 | ||
<Kind Is="Delegate" />
 | ||
</And>
 | ||
</Entry.Match>
 | ||
<Entry.SortBy>
 | ||
<Name />
 | ||
</Entry.SortBy>
 | ||
</Entry>
 | ||
<Entry Priority="100" DisplayName="Public Enums">
 | ||
<Entry.Match>
 | ||
<And>
 | ||
<Access Is="Public" />
 | ||
<Kind Is="Enum" />
 | ||
</And>
 | ||
</Entry.Match>
 | ||
<Entry.SortBy>
 | ||
<Name />
 | ||
</Entry.SortBy>
 | ||
</Entry>
 | ||
<Entry DisplayName="Statics">
 | ||
<Entry.Match>
 | ||
<Or>
 | ||
<Kind Is="Constant" />
 | ||
<Static />
 | ||
</Or>
 | ||
</Entry.Match>
 | ||
<Entry.SortBy>
 | ||
<Access />
 | ||
</Entry.SortBy>
 | ||
</Entry>
 | ||
<Entry DisplayName="Fields">
 | ||
<Entry.Match>
 | ||
<And>
 | ||
<Kind Is="Field" />
 | ||
<Not>
 | ||
<Static />
 | ||
</Not>
 | ||
</And>
 | ||
</Entry.Match>
 | ||
<Entry.SortBy>
 | ||
<Access />
 | ||
<Readonly />
 | ||
</Entry.SortBy>
 | ||
</Entry>
 | ||
<Entry DisplayName="Constructors">
 | ||
<Entry.Match>
 | ||
<Kind Is="Constructor" />
 | ||
</Entry.Match>
 | ||
<Entry.SortBy>
 | ||
<Static />
 | ||
</Entry.SortBy>
 | ||
</Entry>
 | ||
<Entry DisplayName="Properties, Indexers">
 | ||
<Entry.Match>
 | ||
<Or>
 | ||
<Kind Is="Property" />
 | ||
<Kind Is="Indexer" />
 | ||
</Or>
 | ||
</Entry.Match>
 | ||
<Entry.SortBy>
 | ||
<Access />
 | ||
</Entry.SortBy>
 | ||
</Entry>
 | ||
<Entry DisplayName="All other members" />
 | ||
<Entry Priority="100" DisplayName="Interface Implementations">
 | ||
<Entry.Match>
 | ||
<And>
 | ||
<Kind Is="Member" />
 | ||
<ImplementsInterface />
 | ||
</And>
 | ||
</Entry.Match>
 | ||
<Entry.SortBy>
 | ||
<ImplementsInterface Immediate="True" />
 | ||
</Entry.SortBy>
 | ||
</Entry>
 | ||
<Entry DisplayName="Nested Types">
 | ||
<Entry.Match>
 | ||
<Kind Is="Type" />
 | ||
</Entry.Match>
 | ||
</Entry>
 | ||
</TypePattern>
 | ||
</Patterns></s:String> | ||
|
||
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ESettingsUpgrade_002EAlwaysTreatStructAsNotReorderableMigration/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.