Commit Graph

44 Commits

Author SHA1 Message Date
michael-sena 371f2cd469 Upgrade NLog from 4.4.11 to 4.4.13 (#4772) 2020-09-28 21:52:22 -03:00
Martin Molinero 891cf4d69b Update to .Net 4.6.2 2020-05-15 17:32:46 -03:00
Stefano Raggi e0a08cbb8d Add XML documentation generation for release builds 2019-12-14 13:50:10 +01:00
Martin Molinero 1d43dcd601 Add BaseData.AdjustResolution
- Adding `BaseData.AdjustResolution()` that should return a valid
resolution for the given data and security type.
This allows us to set a limitation which is useful to avoid invalid data
requests or unnecessary fill forward situations. The user will be
notified through a console message.
- Adding unit and regression test
- Updating example algorithms custom data resolution
- Some performance improvements. Wont change console color if
`SelectedOptimization` is defined
2019-11-04 20:38:26 -03:00
Michael Handschuh c7df4e9fb3 Add StringExtensions and Parse utilizing CultureInfo.InvariantCulture
Adds static methods of the form Parse.<TypeName>(string str) that use
CultureInfo.InvariantCulture. These are to be used when parsing strings.
It's still safe (from the CA1304/CA1305 perspective) to use the ToDecimal
extension method for decimals.

Adds string extension methods for common operations that will now require
CultureInfo.InvariantCulture. These are to be used when converting values
to strings, such as ToStringInvariant()/ToStringInvariant(format), but also
useful for searching within strings, StartsWithInvariant, EndsWithInvariant
 and IndexOfInvariant.
2019-08-16 18:08:28 -03:00
Michael Handschuh 703f915182 Configure QuantConnect.ruleset in all projects
The initial ruleset is specifically aimed at addressing #3045. When we'd like
to start addressing other issues available via the FxCopAnalyzers, we can update
the action in QuantConnect.ruleset. A nice way to do it is to first set it to
warning, then go through the solution, project-by-project, fixing each warning.
At the end you can flip it to error and ensure it still builds. Moving forward,
any changes will fail if they violate the rule.

In support of #3045, we'll be configuring the following rules:
> CA1304: https://docs.microsoft.com/en-us/visualstudio/code-quality/ca1304-specify-cultureinfo?view=vs-2017
> CA1305: https://docs.microsoft.com/en-us/visualstudio/code-quality/ca1305-specify-iformatprovider?view=vs-2017
2019-08-16 18:08:18 -03:00
Michael Handschuh c42057809d Add Microsoft.CodeAnalysis.FxCopAnalyzers to all projects
FxCop has various rulesets for enforcing things within our codebase.
For this particular issue, we'll be enforcing CA1304 and CA1305 to
ensure we're always using an IFormatProvider or a CultureInfo where
applicable.

Linked Issue: #3045
2019-08-16 18:08:05 -03:00
Martin Molinero f6b5e92a96 Add conditional optimization flag 2019-06-19 16:11:15 -03:00
Andrew e116709b24 Specify <LangVersion> of 6 in all csproj files 2017-08-07 15:27:26 -04:00
Stefano Raggi 2ef90140c9 Update "Copy to output directory" setting from Always to PreserveNewest
When building the solution, this setting (on a few files) was always triggering almost a full rebuild, even if no files changed.
2017-07-14 00:26:23 +02:00
Stefano Raggi 4f483abcd9 Upgrade libraries Accord.NET, CloneExtensions, MathNet, QLNet 2017-07-08 00:31:40 +02:00
Stefano Raggi 087a69f002 Upgrade libraries AsyncIO, Castle.Core, Moq, NetMQ, NUnit, NLog 2017-07-08 00:07:17 +02:00
Stefano Raggi e463ccf088 Upgrade all projects to target .NET Framework 4.5.2
In the advanced build settings, Language version was also upgraded from C# 5.0 to C# 6.0. The minimum Visual Studio version required will now be VS2015.
2017-07-07 22:49:17 +02:00
Ray Bohac e09e2a43f4 Adds NLogHandler and CompositeNLogHandler 2017-03-20 14:58:42 -04:00
Ray Bohac aa31b9b988 adds nlog.config package and its deps 2017-03-20 12:41:39 -04:00
Andrew Hart 5a633df6e9 Make xml comment file names consistent across projects
For project that have xml comment files, make the comment file end with .xml instead of .Xml or .XML.
2016-12-30 16:18:54 -05:00
jaredbroad dd8a6442b6 Tidy unneccessary TravisCI build configuration 2016-04-19 19:51:51 -04:00
jaredbroad e93006b6a5 Added Travis CI release configuration and disabled views from building in linux 2016-04-15 12:44:37 -04:00
jaredbroad 1cff84ab81 Bux fixes on local charting, and solve logged with queue logger 2016-04-12 21:21:12 -04:00
jaredbroad 2429de3509 Remove unused references 2016-04-12 14:06:10 -04:00
jaredbroad a45183cd17 Removed unused logger 2016-04-11 20:14:27 -04:00
David Hsieh e28a3cc2a0 Merge https://github.com/QuantConnect/Lean 2016-04-07 20:53:27 +10:00
Michael Handschuh 644f255caa Add RegressionFileLogHandler
Set in confiugration using 'log-handler': 'QuantConnect.Logging.RegressionFileLogHandler'
2016-04-05 15:52:25 -04:00
David Hsieh 1bf0dff0ed Reorganised Lean Desktop to be launched from the Launcher. Moved UI Layout to mainly use VS Winforms Designer
Reorganised Lean Desktop to be launched from the Launcher.
Moved UI Layout to mainly use VS Winforms Designer.
//TODO reorganise Result Handler properly.
2016-02-21 18:14:10 +10:00
Michael Handschuh 40d47d5523 Set c# language version to 5.0 2016-01-29 17:41:20 -05:00
snugs 7c2261f172 Removed warnings as errors for obsoletes
This is causing issues for mono users, seems to be something different
in the compilers (mono vs msft) with method resolution in ambiguos situations.
2015-11-24 18:56:21 -05:00
snugs 0ae568d980 Remove warnings as errors from Release
This is a temporary fix until we figure out why travis complains about implicits but visual studio doesn't
2015-11-23 15:45:24 -05:00
snugs 7689ae505d Update warnings as error 612 (obsolete w/ no msg) 2015-11-19 20:36:59 -05:00
snugs b6603ffd01 Set Obsolete warnings as errors 2015-11-18 13:42:40 -05:00
QuantConnect dd506279b7 Version bump Newtonsoft and MathNumerics, strip unnessary refs 2015-06-29 12:00:46 -04:00
QuantConnect ca4a49e70d Rework GetResultHandler to use type loader; first desktop UX implementation; functional logger 2015-06-07 03:08:33 -04:00
snugs abd1092db1 Adds Log.Error(exception) methods 2015-05-12 18:16:25 -04:00
snugs a29a06a002 Removing broken references 2015-04-30 23:51:03 -04:00
snugs 6fdca883ed Adds SharedAssemblyInfo to common
This allows all projects to use the same version number which is used to see if jobs are the same version as the node to process them
2015-04-27 20:30:37 -04:00
snugs ce1cebf143 MEF ILogHandler 2015-04-24 16:40:54 -04:00
Michael d769521df3 Merge pull request #54 from ammachado/log
Adds LogHandlerExtensions

Thanks @ammachado!
2015-04-07 16:39:27 -04:00
Adriano Marcondes Machado e144681b75 Added a few extension methods to ILogHandler interface. 2015-04-07 15:31:36 -03:00
snugs ba9f2b4875 Adds CompositeLogHandler
The default ctor for the CompositeLogHandler will log to console and log.txt
2015-04-07 14:26:06 -04:00
snugs d023a271fb Adds FileLogHandler
ILogHandler now implements IDisposable
Adds test for FileLogHandler
Adds banners
Removed call to 'logger' from ConsoleLogHandler
2015-03-31 16:29:34 -04:00
bdilber 9546aedce7 Refactored the Log class into ILogHandler interface and the ConsoleLogHandler implementation. 2015-02-20 19:49:51 +02:00
Jared Broad 0fa15beda8 Removed Newtonsoft from dependencies in logging 2015-02-17 23:00:31 -03:00
Jared Broad f87e463074 Version bump for numerics and json.net 2015-02-16 14:18:57 -03:00
Jared Broad 2d2b606389 Fix runtime backtest error, tidy up live logging, sent partial OrderEvents to IDE 2015-01-26 23:18:43 -03:00
Jared Broad b3de520915 Initial commit 2015-01-12 12:03:33 -03:00