Skip to content

Commit

Permalink
Adding copyright header to all source code files.
Browse files Browse the repository at this point in the history
Changes to .csv files are from previous PR where changes to BD coefficients were made but I did not rerun the tests with that PR
  • Loading branch information
HamishBrownPFR committed Mar 29, 2024
1 parent 6a66888 commit 6cdfb5f
Show file tree
Hide file tree
Showing 109 changed files with 31,963 additions and 31,761 deletions.
76 changes: 76 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,79 @@

# IDE0005: Using directive is unnecessary.
dotnet_diagnostic.IDE0005.severity = none
csharp_indent_labels = one_less_than_current
csharp_using_directive_placement = outside_namespace:silent
csharp_prefer_simple_using_statement = true:suggestion
csharp_prefer_braces = true:silent
csharp_style_namespace_declarations = block_scoped:silent
csharp_style_prefer_method_group_conversion = true:silent
csharp_style_prefer_top_level_statements = true:silent
csharp_style_prefer_primary_constructors = true:suggestion
csharp_style_expression_bodied_methods = false:silent
csharp_style_expression_bodied_constructors = false:silent
csharp_style_expression_bodied_operators = false:silent
csharp_style_expression_bodied_properties = true:silent
csharp_style_expression_bodied_indexers = true:silent
csharp_style_expression_bodied_accessors = true:silent
csharp_style_expression_bodied_lambdas = true:silent
csharp_style_expression_bodied_local_functions = false:silent
csharp_space_around_binary_operators = before_and_after

[*.{cs,vb}]
#### Naming styles ####

# Naming rules

dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion
dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i

dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion
dotnet_naming_rule.types_should_be_pascal_case.symbols = types
dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case

dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion
dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members
dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case

# Symbol specifications

dotnet_naming_symbols.interface.applicable_kinds = interface
dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.interface.required_modifiers =

dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.types.required_modifiers =

dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.non_field_members.required_modifiers =

# Naming styles

dotnet_naming_style.begins_with_i.required_prefix = I
dotnet_naming_style.begins_with_i.required_suffix =
dotnet_naming_style.begins_with_i.word_separator =
dotnet_naming_style.begins_with_i.capitalization = pascal_case

dotnet_naming_style.pascal_case.required_prefix =
dotnet_naming_style.pascal_case.required_suffix =
dotnet_naming_style.pascal_case.word_separator =
dotnet_naming_style.pascal_case.capitalization = pascal_case

dotnet_naming_style.pascal_case.required_prefix =
dotnet_naming_style.pascal_case.required_suffix =
dotnet_naming_style.pascal_case.word_separator =
dotnet_naming_style.pascal_case.capitalization = pascal_case
dotnet_style_operator_placement_when_wrapping = beginning_of_line
tab_width = 4
indent_size = 4
end_of_line = crlf
dotnet_style_coalesce_expression = true:suggestion
dotnet_style_null_propagation = true:suggestion
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
dotnet_style_prefer_auto_properties = true:silent
dotnet_style_object_initializer = true:suggestion

file_header_template = FieldNBalance is a program that estimates the N balance and provides N fertilizer recommendations for cultivated crops.\nAuthor: Hamish Brown.\nCopyright (c) 2024 The New Zealand Institute for Plant and Food Research Limited
6 changes: 5 additions & 1 deletion SVSModel.Excel/ExcelInterface.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
using System;
// FieldNBalance is a program that estimates the N balance and provides N fertilizer recommendations for cultivated crops.
// Author: Hamish Brown.
// Copyright (c) 2024 The New Zealand Institute for Plant and Food Research Limited

using System;
using System.Collections.Generic;
using SVSModel.Configuration;
using ExcelDna.Integration;
Expand Down
6 changes: 5 additions & 1 deletion SVSModel.Tests/Configuration/CropConfigTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
using System;
// FieldNBalance is a program that estimates the N balance and provides N fertilizer recommendations for cultivated crops.
// Author: Hamish Brown.
// Copyright (c) 2024 The New Zealand Institute for Plant and Food Research Limited

using System;
using System.Collections.Generic;
using SVSModel.Configuration;
using SVSModel.Models;
Expand Down
6 changes: 5 additions & 1 deletion SVSModel.Tests/Configuration/FieldConfigTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
using System.Collections.Generic;
// FieldNBalance is a program that estimates the N balance and provides N fertilizer recommendations for cultivated crops.
// Author: Hamish Brown.
// Copyright (c) 2024 The New Zealand Institute for Plant and Food Research Limited

using System.Collections.Generic;
using SVSModel.Configuration;
using SVSModel.Models;
using Xunit;
Expand Down
7 changes: 5 additions & 2 deletions SVSModel/Configuration/Config.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
using System;
// FieldNBalance is a program that estimates the N balance and provides N fertilizer recommendations for cultivated crops.
// Author: Hamish Brown.
// Copyright (c) 2024 The New Zealand Institute for Plant and Food Research Limited

using System;
using System.Collections.Generic;
using System.Data;

namespace SVSModel.Configuration
{
Expand Down
6 changes: 5 additions & 1 deletion SVSModel/Configuration/Constants.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
using System.Collections.Generic;
// FieldNBalance is a program that estimates the N balance and provides N fertilizer recommendations for cultivated crops.
// Author: Hamish Brown.
// Copyright (c) 2024 The New Zealand Institute for Plant and Food Research Limited

using System.Collections.Generic;

namespace SVSModel.Configuration
{
Expand Down
6 changes: 5 additions & 1 deletion SVSModel/Configuration/CropConfig.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
using System;
// FieldNBalance is a program that estimates the N balance and provides N fertilizer recommendations for cultivated crops.
// Author: Hamish Brown.
// Copyright (c) 2024 The New Zealand Institute for Plant and Food Research Limited

using System;
using System.Collections.Generic;
using SVSModel.Models;

Expand Down
6 changes: 5 additions & 1 deletion SVSModel/Configuration/CropParams.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
using System.Collections.Generic;
// FieldNBalance is a program that estimates the N balance and provides N fertilizer recommendations for cultivated crops.
// Author: Hamish Brown.
// Copyright (c) 2024 The New Zealand Institute for Plant and Food Research Limited

using System.Collections.Generic;

namespace SVSModel.Configuration
{
Expand Down
6 changes: 5 additions & 1 deletion SVSModel/Configuration/FieldConfig.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
using System.Collections.Generic;
// FieldNBalance is a program that estimates the N balance and provides N fertilizer recommendations for cultivated crops.
// Author: Hamish Brown.
// Copyright (c) 2024 The New Zealand Institute for Plant and Food Research Limited

using System.Collections.Generic;

namespace SVSModel.Configuration
{
Expand Down
6 changes: 5 additions & 1 deletion SVSModel/Configuration/Functions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
using System;
// FieldNBalance is a program that estimates the N balance and provides N fertilizer recommendations for cultivated crops.
// Author: Hamish Brown.
// Copyright (c) 2024 The New Zealand Institute for Plant and Food Research Limited

using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Data.Analysis;
Expand Down
6 changes: 5 additions & 1 deletion SVSModel/ModelInterface.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
using System;
// FieldNBalance is a program that estimates the N balance and provides N fertilizer recommendations for cultivated crops.
// Author: Hamish Brown.
// Copyright (c) 2024 The New Zealand Institute for Plant and Food Research Limited

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
Expand Down
6 changes: 5 additions & 1 deletion SVSModel/Models/Crop.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
using System;
// FieldNBalance is a program that estimates the N balance and provides N fertilizer recommendations for cultivated crops.
// Author: Hamish Brown.
// Copyright (c) 2024 The New Zealand Institute for Plant and Food Research Limited

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.IO;
Expand Down
6 changes: 5 additions & 1 deletion SVSModel/Models/Defaults.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
using System;
// FieldNBalance is a program that estimates the N balance and provides N fertilizer recommendations for cultivated crops.
// Author: Hamish Brown.
// Copyright (c) 2024 The New Zealand Institute for Plant and Food Research Limited

using System;

namespace SVSModel.Models;

Expand Down
6 changes: 5 additions & 1 deletion SVSModel/Models/Fertiliser.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
using System;
// FieldNBalance is a program that estimates the N balance and provides N fertilizer recommendations for cultivated crops.
// Author: Hamish Brown.
// Copyright (c) 2024 The New Zealand Institute for Plant and Food Research Limited

using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices.ComTypes;
Expand Down
6 changes: 5 additions & 1 deletion SVSModel/Models/InterfaceModels.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
using System;
// FieldNBalance is a program that estimates the N balance and provides N fertilizer recommendations for cultivated crops.
// Author: Hamish Brown.
// Copyright (c) 2024 The New Zealand Institute for Plant and Food Research Limited

using System;
using System.Collections.Generic;
using CsvHelper.Configuration;

Expand Down
6 changes: 5 additions & 1 deletion SVSModel/Models/Losses.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
using System;
// FieldNBalance is a program that estimates the N balance and provides N fertilizer recommendations for cultivated crops.
// Author: Hamish Brown.
// Copyright (c) 2024 The New Zealand Institute for Plant and Food Research Limited

using System;
using System.Collections.Generic;
using System.Linq;
using SVSModel.Configuration;
Expand Down
6 changes: 5 additions & 1 deletion SVSModel/Models/MetData.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
namespace SVSModel.Models
// FieldNBalance is a program that estimates the N balance and provides N fertilizer recommendations for cultivated crops.
// Author: Hamish Brown.
// Copyright (c) 2024 The New Zealand Institute for Plant and Food Research Limited

namespace SVSModel.Models
{
public class MetData
{
Expand Down
6 changes: 5 additions & 1 deletion SVSModel/Models/Residues.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
using System;
// FieldNBalance is a program that estimates the N balance and provides N fertilizer recommendations for cultivated crops.
// Author: Hamish Brown.
// Copyright (c) 2024 The New Zealand Institute for Plant and Food Research Limited

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
Expand Down
6 changes: 5 additions & 1 deletion SVSModel/Models/SoilNitrogen.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
using System;
// FieldNBalance is a program that estimates the N balance and provides N fertilizer recommendations for cultivated crops.
// Author: Hamish Brown.
// Copyright (c) 2024 The New Zealand Institute for Plant and Food Research Limited

using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices.ComTypes;
Expand Down
6 changes: 5 additions & 1 deletion SVSModel/Models/SoilOrganic.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
using System;
// FieldNBalance is a program that estimates the N balance and provides N fertilizer recommendations for cultivated crops.
// Author: Hamish Brown.
// Copyright (c) 2024 The New Zealand Institute for Plant and Food Research Limited

using System;
using System.Collections.Generic;
using System.Linq;
using SVSModel.Configuration;
Expand Down
6 changes: 5 additions & 1 deletion SVSModel/Models/SoilWater.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
using System;
// FieldNBalance is a program that estimates the N balance and provides N fertilizer recommendations for cultivated crops.
// Author: Hamish Brown.
// Copyright (c) 2024 The New Zealand Institute for Plant and Food Research Limited

using System;
using System.Collections.Generic;
using System.Linq;
using SVSModel.Configuration;
Expand Down
6 changes: 5 additions & 1 deletion SVSModel/Simulation.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
using System;
// FieldNBalance is a program that estimates the N balance and provides N fertilizer recommendations for cultivated crops.
// Author: Hamish Brown.
// Copyright (c) 2024 The New Zealand Institute for Plant and Food Research Limited

using System;
using System.Collections.Generic;
using SVSModel.Configuration;
using SVSModel.Models;
Expand Down
6 changes: 5 additions & 1 deletion TestComponents/Test.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
using System.Net;
// FieldNBalance is a program that estimates the N balance and provides N fertilizer recommendations for cultivated crops.
// Author: Hamish Brown.
// Copyright (c) 2024 The New Zealand Institute for Plant and Food Research Limited

using System.Net;
using System.IO;
using System.Reflection;
using Microsoft.Data.Analysis;
Expand Down
6 changes: 5 additions & 1 deletion TestComponents/TestConfig.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
using Microsoft.Data.Analysis;
// FieldNBalance is a program that estimates the N balance and provides N fertilizer recommendations for cultivated crops.
// Author: Hamish Brown.
// Copyright (c) 2024 The New Zealand Institute for Plant and Food Research Limited

using Microsoft.Data.Analysis;
using System;
using System.Collections.Generic;
using System.Diagnostics;
Expand Down
Loading

0 comments on commit 6cdfb5f

Please sign in to comment.