<OutputType>Exe</OutputType>
<TargetFramework>tizen80</TargetFramework>
<TargetFrameworkIdentifier>Tizen</TargetFrameworkIdentifier>
+ <CodeAnalysisRuleSet>Settings.StyleCop</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<ItemGroup>
<Folder Include="lib\"/>
<Folder Include="res\"/>
+ <AdditionalFiles Include="stylecop.json" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Tizen.NET.Sdk" Version="1.1.2" />
<PackageReference Include="Tizen.NET" Version="8.0.0.15595" />
+ <PackageReference Include="StyleCop.Analyzers" Version="1.1.118">
+ <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
+ <PrivateAssets>all</PrivateAssets>
+ </PackageReference>
</ItemGroup>
</Project>
using Tizen.NUI;
using Tizen.NUI.BaseComponents;
-namespace fitness
+namespace Fitness
{
- class Program : NUIApplication
+ public class FitnessApp : NUIApplication
{
- protected override void OnCreate()
+ public static void Main(string[] args)
{
- base.OnCreate();
- Initialize();
+ var app = new FitnessApp();
+ app.Run(args);
}
- void Initialize()
+ public void Initialize()
{
Window.Instance.KeyEvent += OnKeyEvent;
}
}
- static void Main(string[] args)
+ protected override void OnCreate()
{
- var app = new Program();
- app.Run(args);
+ base.OnCreate();
+ Initialize();
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<RuleSet Name="Rules for ConsoleApp" Description="Code analysis rules" ToolsVersion="16.0">
+ <IncludeAll Action="Warning" />
+ <Rules AnalyzerId="StyleCop.CSharp" RuleNamespace="StyleCop.CSharp">
+ <!-- SA1101PrefixLocalCallsWithThis -->
+ <!-- https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1101.md -->
+ <Rule Id="SA1101" Action="None" />
+ <!-- UsingDirectivesMustBePlacedCorrectly -->
+ <!-- https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1200.md -->
+ <Rule Id="SA1200" Action="None" />
+ <!-- Check XML style -->
+ <Rule Id="SA0001" Action="None" />
+ <!-- Currently use no license -->
+ <Rule Id="SA1633" Action="None" />
+ </Rules>
+</RuleSet>
--- /dev/null
+{
+ "settings": {
+ "indentation": {
+ "indentationSize": 4,
+ "useTabs": false
+ },
+ "layoutRules": {
+ "newlineAtEndOfFile": "require"
+ }
+ }
+}