Showing 8 of 30 total issues
Method Execute
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void Execute(GeneratorExecutionContext context)
{
var formats = context.GetClassesImplementing("IAtomFileFormat").ToList();
var sb = new StringBuilder(@"
using System.IO;
Method CountElements
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static Dictionary<string, double> CountElements(this string formula, CultureInfo ci)
{
formula = formula.RemoveAbbreviations(); //remove special abbreviations
var parse = RegexUtil.SumFormula.Matches(formula);
var stack = new Stack<Dictionary<string, double>>();
Method ExportToString
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static string ExportToString(Spectrum spc, char separator,
SpectrumExportFlags flags = SpectrumExportFlags.Experimental)
{
var exp = flags.HasFlag(SpectrumExportFlags.Experimental);
var deriv = flags.HasFlag(SpectrumExportFlags.Derivative);
Method Export
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public override void Export(IExportable exportable, Stream stream)
{
base.Export(exportable, stream);
if (Molecule == null) return;
var atomsCount = Molecule.Atoms.Count;
Method SetPickingIndicator
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void SetPickingIndicator(ReadOnlySpan<char> line)
{
//determine whether to check for atoms or bonds
if (line.StartsWith(AtomsBlock.AsSpan()))
{
Function addBond
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
export function addBond(x: number, y: number, z: number, qx: number, qy: number, qz: number, qw: number, length: number) {
Function addAtom
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
export function addAtom(name: string, symbol: string, x: number, y: number, z: number, radius: number, color: string) {
Method ConversionMatrix
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static Matrix4x4 ConversionMatrix(float a, float b, float c, float alpha, float beta, float gamma)